
ViewPager
慕七儿
我是个小垃圾
展开
-
ViewPager导航图片——简单实现方法
//首先展示的是布局文件中的代码<?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="matc原创 2016-04-12 21:03:46 · 535 阅读 · 0 评论 -
ViewPager滑动--RadioButton标识滑动到第几页
//下面我们举一个三张导航页面的例子 我们先看看布局文件 贯穿整个页面的是ViewPager 上面还有三个小圆点使用的是RadioButton <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools"原创 2016-04-18 15:25:52 · 1129 阅读 · 0 评论 -
ViewPager无限自动轮播
布局中的实现代码<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="原创 2016-04-18 19:49:22 · 684 阅读 · 0 评论 -
自定义ViewPager指示器
首先我们先来看一下我们实现的效果 这个就是我们的效果 别看我们的效果简单 我们主要实现的功能有 viewpager和上面的tab标题可以联动 自定义的三角形角标指示器 文字选中高亮 动态加载布局 和fragment 下面就让我们一起看一下这个神奇的效果是怎么实现的吧 首先我们需要的是布局文件<LinearLayout xmlns:android="http://sch原创 2016-05-03 20:52:45 · 427 阅读 · 0 评论