结果如图

Android之HorizontalScrollView(一)_第1张图片

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>

源代码

更多相关文章

  1. android 图片背景使用这种方式很爽
  2. android获得圆角图片
  3. Android在Button按钮上同时显示文字和图片
  4. android ViewFlipper实现图片轮播
  5. Android如何使用XML创建一个环形渐变颜色图片
  6. Android 旋转图片
  7. Android 获取网络图片
  8. Android 图片加载缓存
  9. Android 系统图片

随机推荐

  1. android 截屏
  2. Android中Intent的各种常见作用
  3. App Inventor for Android(安卓)使用总结
  4. Android常用UI组件 - EditText
  5. android 触摸事件
  6. Android 强大的JSON助手 GSON
  7. Android 平台的 Microsoft Office & Adob
  8. Android BaseWebLoad组件使用及与js方法
  9. Google C2Dm相关文章
  10. Android自定义Button背景色,弧度