ViewPager的简单实现在上一篇博客提到了,如果希望ViewPager的每一页更复杂,那就可以和ListView一样,写一个item的layout,用Adapter绑定。
1.item_launch.xml:
显示一张图片,下面有一组按钮组,显示第i张图片时,第i个按钮会选中。
然后最后一页有一个enter按钮,进入APP主界面
<?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_parent"
android:orientation="vertical"
>
<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/iv"
android:scaleType="fitXY"
></ImageView>
<RadioGroup
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/rg"
android:layout_alignParentBottom="true"

最低0.47元/天 解锁文章

被折叠的 条评论
为什么被折叠?



