好玩的水平滚动图,这个图片的原理很简单,就是一个火炬水平滚动足球的小小的一个源码的小案例,这个案例一看源码就会明白的,来看一下效果图:
\

  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="wrap_content"  >  <LinearLayout androidrientation="horizontal"  android:layout_width="fill_parent"  android:layout_height="fill_parent"  >  <TextView  android:layout_width="fill_parent"  android:layout_height="wrap_content"  android:text="滚动视图"  android:textSize="30dp"  />  <ImageView  android:layout_width="wrap_content"  android:layout_height="wrap_content"  android:text="@drawable/item1"  />  <TextView  android:layout_width="wrap_content"  android:layout_height="wrap_content"  android:text="水平滚动"  android:textSize="30dp"  />  <ImageView  android:layout_width="wrap_content"  android:layout_height="wrap_content"  android:text="@drawable/item2"  />  <ImageView  android:layout_width="wrap_content"  android:layout_height="wrap_content"  android:text="@drawable/item3"  />  <ImageView  android:layout_width="wrap_content"  android:layout_height="wrap_content"  android:text="@drawable/item4"  />  <ImageView  android:layout_width="wrap_content"  android:layout_height="wrap_content"  android:text="@drawable/item5"  />  </LinearLayout>  </HorizontalScrollView>  

\ 点击此处下载源码


转载:http://www.adobex.com/android/source/details/00000168.htm

更多相关文章

  1. [置顶] 我的Android进阶之旅------>Android中AsyncTask源码分析
  2. linux下用git下载android任意模块源码
  3. Android串口通信实例分析【附源码】
  4. 使用Android自带Gallery组件实现CoverFlow,源码+解析
  5. Android 开源项目源码分析第一期正式发布
  6. android的aidl机制案例
  7. Android AIDL分析例子源码
  8. 在eclipse中查看android源码
  9. Android so 文件进阶 从dlsym()源码看android 动态链接过程

随机推荐

  1. Android性能优化-线程性能优化
  2. Android调试方法大全
  3. Android(安卓)Q 带来哪些变化
  4. 基于android的远程视频监控系统——实现,
  5. 自定义获取WI-FI列表及相关设置
  6. 真正的系统-系统与UI即任务的分离
  7. 深入浅析Android坐标系统
  8. android基础2——android工程目录结构
  9. Java->Android并发编程引气入门篇
  10. Android里的Xmpp的理解(消息推送)