郑德才博客 记录学习,记录工作,学习知识分享!

Android开发学习:图片左右滑动效果-自动切换图片

Android开发学习

图片左右滑动效果,第二种:自动切换图片,使用控件ViewFlipper

新建xml布局文件:activity_main.xml,代码内容:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:orientation="vertical" >

    <ViewFlipper
        android:id="@+id/ViewFlipper1"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:scaleType="fitXY" >
    </ViewFlipper>

2014年4月12日 | 发布:郑德才博客 | 分类:Android开发 | 评论:7

Android开发学习:图片左右滑动效果-手动切换图片

Android开发学习

图片左右滑动效果,第一种:手动切换图片,使用控件ViewFlipper

新建xml布局文件:activity_main.xml,代码内容:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:orientation="vertical" >

    <ViewFlipper
        android:id="@+id/ViewFlipper1"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:scaleType="fitXY" >
    </ViewFlipper>

2014年4月12日 | 发布:郑德才博客 | 分类:Android开发 | 评论:0

Android开发学习:App启动时-带自动加载效果

Android开发学习

App启动有很多效果,初体验自动加载效果

新建xml布局文件:activity_main.xml,代码内容:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@drawable/index"
    android:gravity="bottom|center"
    android:orientation="vertical" >

2014年4月5日 | 发布:郑德才博客 | 分类:Android开发 | 评论:0