【问题标题】:Vertical Seekbar fill parent won't work垂直 Seekbar 填充父级不起作用
【发布时间】:2011-11-02 22:36:06
【问题描述】:

我终于得到了垂直搜索栏示例

How can I get a working vertical SeekBar in Android?

(感谢 Paul Tsupikoff)

但我现在有一个垂直线性布局,只实现了看起来像的垂直搜索栏

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:orientation="vertical" >
    <com.example.layouts.VerticalSeekbar 
           android:id="@+id/v_seekbar" 
           android:layout_width="wrap_content" 
           android:layout_height="fill_parent"/>
</LinearLayout>

而不是绘制垂直搜索栏直到屏幕结束它绘制它没有限制。也许是正在工作的 Vertical SeekBar 类中负责这种行为的东西? (How can I get a working vertical SeekBar in Android?) 还是我缺少什么?

更新: 将 layout_height 更改为超过 40dip 也可以将垂直搜索栏无限制地绘制到屏幕外

【问题讨论】:

    标签: android seekbar


    【解决方案1】:

    我的垂直搜索栏只适用于从Modifying the Android seekbar widget to operate vertically 派生的不同类(感谢 pengwang)这里是他的解决方案的 zip 文件。

    http://560b.sakura.ne.jp/android/VerticalSlidebarExample.zip

    这些垂直搜索栏现在可以做 fill_parent

    【讨论】:

      猜你喜欢
      • 2018-12-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多