![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Fragment
dandelionsnow
自己平时所学习的一些东西,方便自己以后用到
展开
-
记一次Fragment 报错: Could not find Fragment constructor
本次排查Bug的fragment基于AndroidX1.1.0线上bugly报了一个Could not find Fragment constructor,先看一下Fragment的构造函数/** * Constructor used by the default {@link FragmentFactory}. You must * {@link FragmentManager#setFragmentFactory(FragmentFactory) set a custom F转载 2020-09-02 11:49:00 · 10693 阅读 · 0 评论 -
Android 在 ViewPager 中使用 Fragment 的懒加载
转载:https://www.jb51.net/article/129574.htmViewPager+Fragment的搭配在日常开发中也比较常见,可用于切换展示不同类别的页面,我们日常所见的咨询、购物、金融、社交等类型的APP都有机会用到这种控件组合.如:ViewPager控件有个特有的预加载机制,即默认情况下当前页面左右两侧的1个页面会被加载,以方便用户滑动切换到相邻的界面时,可...转载 2018-09-11 16:25:48 · 903 阅读 · 0 评论