Android ViewFlipper/ViewSwitcher/ViewPager/VerticalViewPager/ViewFlow/StackView/AdapterViewFli用法案例实现

讲述ViewFlipper,ViewSwitcher,ViewPager,VerticalViewPager,ViewFlow,AdapterViewFlipper,StackView的用法,主要作用于界面滑动。



一 Demo目录结构

src
└── src/com
    └── src/com/android
        └── src/com/android/viewflipperdemo
            ├── src/com/android/viewflipperdemo/AdapterViewFlipperActivity.java
            ├── src/com/android/viewflipperdemo/MainActivity.java
            ├── src/com/android/viewflipperdemo/StackViewActivity.java
            ├── src/com/android/viewflipperdemo/ViewFlipperActivity.java
            ├── src/com/android/viewflipperdemo/ViewFlipperCustomAnimActivity.java
            ├── src/com/android/viewflipperdemo/ViewFlowActivity.java
            ├── src/com/android/viewflipperdemo/ViewFlowImageAdapter.java
            ├── src/com/android/viewflipperdemo/ViewPagerActivity.java
            ├── src/com/android/viewflipperdemo/ViewPagerActivityTwo.java
            ├── src/com/android/viewflipperdemo/ViewPagerVerticalActivity.java
            ├── src/com/android/viewflipperdemo/ViewSwitcherActivity.java
            └── src/com/android/viewflipperdemo/widget
                ├── src/com/android/viewflipperdemo/widget/verticalViewPager
                │   └── src/com/android/viewflipperdemo/widget/verticalViewPager/VerticalViewPager.java
                └── src/com/android/viewflipperdemo/widget/viewflow
                    ├── src/com/android/viewflipperdemo/widget/viewflow/CircleFlowIndicator.java
                    ├── src/com/android/viewflipperdemo/widget/viewflow/FlowIndicator.java
                    └── src/com/android/viewflipperdemo/widget/viewflow/ViewFlow.java
res
├── res/anim
│   ├── res/anim/left_in.xml
│   ├── res/anim/left_out.xml
│   ├── res/anim/right_in.xml
│   └── res/anim/right_out.xml
├── res/drawable-hdpi
│   └── res/drawable-hdpi/ic_launcher.png
├── res/drawable-xhdpi
│   ├── res/drawable-xhdpi/fifth.png
│   ├── res/drawable-xhdpi/first.png
│   ├── res/drawable-xhdpi/fourth.png
│   ├── res/drawable-xhdpi/second.png
│   ├── res/drawable-xhdpi/sixth.png
│   └── res/drawable-xhdpi/third.jpg
├── res/drawable-xxhdpi
│   └── res/drawable-xxhdpi/ic_launcher.png
├── res/layout
│   ├── res/layout/activity_adapter_view_flipper.xml
│   ├── res/layout/activity_main.xml
│   ├── res/layout/activity_stack_view.xml
│   ├── res/layout/activity_view_flipper.xml
│   ├── res/layout/activity_view_flow.xml
│   ├── res/layout/activity_view_pager_vertical.xml
│   ├── res/layout/activity_view_pager.xml
│   ├── res/layout/activity_view_switcher.xml
│   ├── res/layout/stack_view_adapter_item.xml
│   └── res/layout/view_flow_adapter_item.xml
├── res/values
│   ├── res/values/attrs.xml
│   ├── res/values/dimens.xml
│   ├── res/values/strings.xml
│   └── res/values/styles.xml
├── res/values-v11
│   └── res/values-v11/styles.xml
└── res/values-v14
    └── res/values-v14/styles.xml
libs
└── libs/android-support-v4.jar

二 效果图

Android ViewFlipper/ViewSwitcher/ViewPager/VerticalViewPager/ViewFlow/StackView/AdapterViewFli用法案例实现_第1张图片



三 Demo下载


参考:

http://smallwoniu.blog.51cto.com/3911954/1308959

你可能感兴趣的:(Android,基础知识)