1、layout和layout-v26的区别
安卓第26个版本,就是8.0,使用layout-v26里的页面,其他版本使用layout里的页面。
2、ScrollView这嵌套recycleView显示不完全
解决方法:此方法还有一点BUG,就是recycleView中滑动不顺利。
//去掉 recyclerView的滑动
recyclerView.setNestedScrollingEnabled(false);
加上这一行滑动就顺畅多了!
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:descendantFocusability="blocksDescendants">
< RecycleView
android:id="@+id/playdate_recyclerview"
android:divider="@color/vr_gray"
android:dividerHeight="1dp"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</RelativeLayout>
3、json简单对象字符串——>javaBean
Student student = JSON.parseObject(JSON_OBJ_STR,newTypeReference() {});
json简单对象字符串——>javaBean组
ArrayList students = JSON.parseObject(JSON_ARRAY_STR,newTypeReference>() {});
4、
网友评论