垂直搜索栏填充父项将不起作用
我终于从
(感谢 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 类中的某些东西造成了这种行为? (如何在 Android 中获得可用的垂直 SeekBar?) 或者我缺少什么?
更新: 将layout_height更改为超过40dip也会使其将垂直搜索栏无限制地绘制出屏幕
I finally got the vertical seekbar sample working from
How can I get a working vertical SeekBar in Android?
(thanks for that Paul Tsupikoff)
But i now have a vertical linear layout with only the vertical seekbar implemented that looks
<?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>
Instead of drawing the vertical seekbar until the end of the screen it draw's it with no limit. maybe it's something in the working Vertical SeekBar class that is responsible for this behavior? ( How can I get a working vertical SeekBar in Android? )
Or is there something i'm missing?
Update:
changing the layout_height to more than 40dip also makes it draw the vertical seekbar out of the screen with no limit
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我让垂直搜索栏仅适用于源自 修改 Android 搜索栏的不同类垂直操作的小部件(感谢 pengwang)这里是他的解决方案的 zip 文件。
http://560b.sakura.ne.jp/android/VerticalSlidebarExample.zip
这些垂直搜索栏现在可以执行 fill_parent
i got the vertical seekbar working only with diffrent classes derived from Modifying the Android seekbar widget to operate vertically (thanks to pengwang) here are his zip files for the solution.
http://560b.sakura.ne.jp/android/VerticalSlidebarExample.zip
These vertical seekbars can now do fill_parent