Android之HorizontalScrollView(一)
16lz
2021-12-04
结果如图
main.xml
<?xml version="1.0" encoding="utf-8"?><HorizontalScrollView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:fillViewport="true" > <LinearLayout android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="horizontal" > <ImageView android:id="@+id/myImageView1" android:layout_width="320dp" android:layout_height="480dp" android:background="@drawable/image0" android:paddingRight="5dip" /> <ImageView android:id="@+id/myImageView2" android:layout_width="320dp" android:layout_height="480dp" android:background="@drawable/image1" android:paddingRight="5dip" /> <ImageView android:id="@+id/myImageView3" android:layout_width="320dp" android:layout_height="480dp" android:background="@drawable/image2" android:paddingRight="5dip" /> </LinearLayout></HorizontalScrollView>
源代码
更多相关文章
- android socket通信
- android socket通信
- Android通讯-Socket(TCP/IP)
- android短信和彩信探秘threads
- Android应用程序安装过程源代码分析(3)
- Ubuntu 13.04 编译环境配置及android 2.3 源代码编译时出现了以
- 45个android实例源码
- Android应用程序安装过程源代码分析(4)
- Android(安卓)之经典源码