实现代码:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.chenjun.jun_0710_gesture.MainActivity">
<ViewFlipper
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/vf_main_image"
></ViewFlipper>
</LinearLayout>
package com.chenjun.jun_0710_gesture;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.Ges