摘要: 功能:滑动切换视图、标题栏。标题栏字体颜色随当前视图改变而改变。点击标题栏可切换视图。1.主页面布局: 2.为显示每个ViewPager页面新建xml文件:vp_page1.xml,vp_page2.xml,vp_page... 阅读全文
posted @ 2015-09-21 20:12 pepelu 阅读(679) 评论(0) 推荐(0) 编辑
摘要: 功能:滑动切换视图,具有标题栏。1.在布局文件中加入android.support.v4.view.ViewPager: 2.为显示每个ViewPager页面新建xml文件:vp_page1.xml,vp_page2.xml,vp_page3.xml 3.在Act... 阅读全文
posted @ 2015-09-21 19:05 pepelu 阅读(425) 评论(0) 推荐(0) 编辑
摘要: 调用Activity的getLayoutInflater()方法LayoutInflater inflater = getLayoutInflater();**View view = inflater.inflate(R.layout.xx);LayoutInflater inflater=Layo... 阅读全文
posted @ 2015-09-21 17:38 pepelu 阅读(189) 评论(0) 推荐(0) 编辑
摘要: 1.新建一个ActivityCollector类用于存放并操作Acitivity实例。public class ActivityCollector { public static List activities = new ArrayList(); // 添加 public sta... 阅读全文
posted @ 2015-09-21 11:42 pepelu 阅读(174) 评论(0) 推荐(0) 编辑