本文实例为大家分享了Android使用ViewFlipper实现上下滚动消息的具体代码,供大家参考,具体内容如下
1.在界面布局中加入ViewFlipper的布局
<?xml version=1.0 encoding=utf-8?>
<LinearLayout xmlns:android=http://schemas.android.com/apk/res/android
android:id=@+id/ll_notice_root
android:layout_width=match_parent
android:layout_