Android fragment嵌套viewpager兼容问题
viewpager内容会在fragment切换后隐藏,解决方法
//fragmentmanager 不要用getSurrpotFragmentmanager 用getChildFragmentManager baseFragmentAdapter = new BaseFragmentAdapter(getChildFragmentManager(), fragmentList);
最近在写Java后台, 编译时出现:No enclosing instance of type E is accessible. Must qualify the allocation with an enclosing instance of type E(e.g. x.new...
对于==,如果作用于基本数据类型的变量,则直接比较其存储的 “值”是否相等; 如果作用于引用类型的变量,则比较的是所指向的对象的地址对于equals方法,注意:equals方法不能作用于基本数据类型的变量 如果没有对equals方法进行重写,则比较的是引用类型的变量所指向的对象的地址; ...
xml: android:overScrollMode="never"java: view.setOverScrollMode(ScrollView.OVER_SCROLL_NEVER);...
今天用Tablayout——ViewPage出现getCustomView为空的问题通过源码发现,ViewPage的adapter更新会吧TabLayout 的customViewc置空。这个时候自动调用OnTabSelectedListener的onTabSelected方法去获取Cu...
NotificationChannel notificationChannel = new NotificationChannel (NOTIFICATION_C...
RecyclerView设置的OnItemClick点击最后一个无效,在点击最后一个无效后在部分手机上点击其他item会触发最后一个view的onclick事件,有的手机始终无反应。是因为popwindow里RecyclerView宽度设置为match_parent的原因改为wrap_content...