Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/228.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 垂直Seekbar填充父项赢得';行不通_Android_Seekbar - Fatal编程技术网

Android 垂直Seekbar填充父项赢得';行不通

Android 垂直Seekbar填充父项赢得';行不通,android,seekbar,Android,Seekbar,我终于得到了垂直seekbar样本 (感谢保罗·祖皮科夫) 但我现在有了一个垂直线性布局,只实现了垂直seekbar <?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="fil

我终于得到了垂直seekbar样本

(感谢保罗·祖皮科夫)

但我现在有了一个垂直线性布局,只实现了垂直seekbar

<?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>

而不是绘制垂直搜索杆,直到屏幕结束,它绘制它没有限制。也许是工作垂直SeekBar类中的某些东西导致了这种行为?( ) 还是我遗漏了什么

更新:
将布局高度更改为40度以上也可以使垂直搜索杆不受限制地从屏幕中拉出

我得到的垂直搜索杆仅适用于派生的不同类(感谢pengwang)。以下是他的zip文件用于解决方案

这些垂直搜索栏现在可以填充父对象