android ScrollView水平显示的问题这个是布局代码
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/ScrollView"
android:layout_width="500px"
android:layout_height="50px"
android:background="#ffd123"
android:scrollbars="horizontal">
<LinearLayout
android:orientation="horizontal"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/LinearLayout02">
</LinearLayout>
</ScrollView>本打算在LinearLayout水平布局中动态生成8个按钮,在一行显示,外面包一个ScrollView,如果超出屏幕就让它水平滑动显示,但是问题是随便怎么设置,都不能水平滑动,只在竖直方向才能滑动,请教这个问题该怎么解决
,有高手路过的讲讲!
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/ScrollView"
android:layout_width="500px"
android:layout_height="50px"
android:background="#ffd123"
android:scrollbars="horizontal">
<LinearLayout
android:orientation="horizontal"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/LinearLayout02">
</LinearLayout>
</ScrollView>本打算在LinearLayout水平布局中动态生成8个按钮,在一行显示,外面包一个ScrollView,如果超出屏幕就让它水平滑动显示,但是问题是随便怎么设置,都不能水平滑动,只在竖直方向才能滑动,请教这个问题该怎么解决
,有高手路过的讲讲!
解决方案 »
- android图片的抠图,求思路,求想法
- 求高手赐教,google maps API的问题
- 求科普:请问Android导出应用时要创建立的“keystoe”是什么东西?
- listview显示数据库内容的问题 SimpleCursorAdapter
- android 版本兼容问题
- 禁止usb充电
- Android程序中指定浏览器打开一个页面
- 请问如何使用HTTPClient在多线程的情况下保证cookies各自独立?
- 开发手机APP时如何做到历史数据展示?
- 机顶盒的一个launcher,我需要桌面一二级菜单的标题名字去掉。急急急。自己没有基础。不知如何下手。。
- android配置时,点击eclipse里Window->Preferences里的android选项出错
- android ActivityGoup加载WebView,WebView显示Flash显示一半
http://blog.sina.com.cn/s/blog_629b701e0100suyb.html