Android 垂直Seekbar填充父项赢得';行不通
我终于得到了垂直seekbar样本 (感谢保罗·祖皮科夫) 但我现在有了一个垂直线性布局,只实现了垂直seekbarAndroid 垂直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
<?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文件用于解决方案 这些垂直搜索栏现在可以填充父对象