今天看到支付宝 中,有垂直滚动广告,所以联想到android ViewFlipper也可以实现这样的动画效果
所以就动手实现了
具体步骤如下 :
- 布局文件
viewfliper.xml
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_p