- 博客(3)
- 资源 (1)
- 收藏
- 关注
原创 Android搜索历史本地保存
//保存搜索历史,保存到SharedPreferences const val PREFERENCE_NAME = "save_city_search_history" const val SEARCH_HISTORY = "search_city_search_history" @Suppress("NULLABILITY_MISMATCH_BASED_ON_JAVA_ANNOTATIONS")...
2019-10-31 09:52:53
419
2
原创 RecyclerView键盘遮挡EditText,实现和scrollView一样。
ScrollView,键盘弹出后,视图会自动上移; RecyclerView: 1.在当前的manifest的对应的activity属性中添加 android:windowSoftInputMode=“stateHidden|adjustPan” 2.设置layoutManager: mLayoutManager.setStackFromEnd(true); ...
2019-09-19 11:06:45
1398
原创 AndroidStudio 3.5格式化xml 格式化后布局错乱
操作: 设置 -> code style -> xml 右上角 set from -> predefined style -> Android -> apply -> ok
2019-08-22 11:49:00
2703
10
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人