Fragment设置主题
来源:互联网 发布:淘宝鸿星尔克优惠券 编辑:程序博客网 时间:2024/06/07 08:30
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { super.onCreate(savedInstanceState); final Context contextThemeWrapper = new ContextThemeWrapper(getActivity(), com.viewpagerindicator.R.style.Theme_PageIndicatorDefaults); // clone the inflater using the ContextThemeWrapper LayoutInflater localInflater = inflater.cloneInContext(contextThemeWrapper); View view = localInflater.inflate(R.layout.simple_tabs, container, false); FragmentPagerAdapter adapter = new GoogleMusicAdapter(fragmentManager); ViewPager pager = (ViewPager)view.findViewById(R.id.pager); pager.setAdapter(adapter); TabPageIndicator indicator = (TabPageIndicator)view.findViewById(R.id.indicator); indicator.setViewPager(pager); indicator.setFillViewport(true); return view; }
0 0
- Fragment 设置主题
- Fragment设置主题
- 动态设置Fragment、view主题
- fragment怎样应用主题
- fragment 中 切换主题
- echarts之图表主题设置,设置主题
- 设置iphone主题 代码
- android主题设置
- android 设置主题
- Emacs 主题设置
- putty 主题设置
- Android Studio主题设置
- Android Studio主题设置
- Android主题设置
- utuntu 主题颜色设置
- Qt主题风格设置
- emacs24 颜色主题设置
- UltraEdit设置主题
- hive的查询注意事项以及优化总结
- 【Python】TCP Socket的粘包和分包的处理
- SQL语句的优先级(执行顺序)
- hdu 4148 规律题
- gulp常用插件使用
- Fragment设置主题
- Android网络通信总结
- 关联增加属性runtime.h
- git reset 后代码丢失 代码未commit
- IOS Dev Intro - Object Instance Type
- nyoj 324猴子吃桃
- ios蓝牙开发学习笔记(三)peripheral角色的实现
- 【Ceph】基于Tornado的Ceph文件上传与下载及在线预览
- OkHttp使用完全教程