这是一个水平滚动的例子. main.xml HorizontalScrollView 对应的是Horizontal布局应用的. 水平滚动HorizontalScrollView" style="margin:0px; padding:0px; border:0px; list-style:none;border:1px solid black;">

看代码:
<?xml version="1.0" encoding="utf-8"?> <LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent"> <HorizontalScrollView android:layout_height="wrap_content" android:layout_width="fill_parent" android:scrollbarAlwaysDrawHorizontalTrack="false"> <LinearLayout android:id="@+id/LinearLayout02" android:layout_width="wrap_content" android:orientation="horizontal" android:layout_height="fill_parent"> <Button android:text="1" android:id="@+id/Button01" android:layout_width="200px" android:layout_height="wrap_content" /> <Button android:text="2" android:id="@+id/Button02" android:layout_height="wrap_content" android:layout_width="200px" /> <Button android:text="3" android:id="@+id/Button03" android:layout_width="200px" android:layout_height="wrap_content" /> <Button android:text="4" android:id="@+id/Button04" android:layout_width="200px" android:layout_height="wrap_content" /> <Button android:text="5" android:id="@+id/Button05" android:layout_width="200px" android:layout_height="wrap_content" /> <Button android:text="6" android:id="@+id/Button06" android:layout_height="wrap_content" android:layout_width="200px" /> <Button android:text="7" android:id="@+id/Button07" android:layout_width="200px" android:layout_height="wrap_content" /> <Button android:text="8" android:id="@+id/Button08" android:layout_width="200px" android:layout_height="wrap_content" /> </LinearLayout> </HorizontalScrollView>

</LinearLayout>

更多相关文章

  1. Android(安卓)api对应系统版本
  2. android 图片轮播(banner)无限轮播
  3. Android(安卓)实现跳转到Google Play 详情页
  4. Android(安卓)中颜色对应的值
  5. 如何避免输入法弹出时遮挡住按钮或输入框
  6. android HorizontalScrollView
  7. build.gradle(module)
  8. Android(安卓)超级水平仪 金属红色仪表风格发布
  9. 分享一个Android左右侧滑的效果实现 sliding layout

随机推荐

  1. android 自定义权限 permission
  2. 使用jenkins+Emma统计Android客户端单元
  3. Android打鸡蛋游戏源码
  4. Android图片堆叠效果实现
  5. Android EditText左右滑动
  6. Android PreferenceActivity 使用练习
  7. Unable to execute dex: Multiple dex fi
  8. Android APK文件安装过程小结
  9. android 一年过期
  10. Android(安卓)Nine-patch