- 博客(9)
- 收藏
- 关注
原创 bottomsheet
<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="match_paren.
2021-02-25 08:45:50
122
转载 2021-02-20
使用RecyclerView替代ListView已经是老生常谈的话题了,RecyclerView的优秀和灵活已经经过了大量项目的实践。最近在完成一个分组列表的需求时,使用到ItemDecoration,故在此对其做一番总结,加深对其的理解。ItemDecoration介绍An ItemDecoration allows the application to add a special drawing and layout offset to specific item views from the
2021-02-20 13:25:15
105
原创 recyclerview 添加decorator
1.写一个工具类htmlpublic class DisplayUtils{ public static class SpacesItemDecoration extends RecyclerView.ItemDecoration { @Override public void getItemOffsets(Rect outRect, View view, RecyclerView parent, RecyclerView.State state) {
2021-02-20 12:40:15
153
转载 2021-02-19
ConstraintLayout 用法全解析62018.08.15 20:34:25字数 3,156阅读 42,345*本篇文章已授权微信公众号 guolin_blog (郭霖)独家发布本文是基于constraint-layout:1.1.2一、前言在以前,android是使用布局如LinearLayout 、RelativeLayout等来构建页面,但这些布局使用起来很麻烦,并且经常需要一层一层嵌套,写一个简单的页面就需要费很大的劲。所以在16年I/O大会上,google.
2021-02-19 19:24:07
718
原创 fragment生命周期
fragment生命周期包括onAttach()//onCreate()onCreateView()onActivityCreated()onStart()onResume()onPause()onStop()onDestoryView()//onDestory()onDetach()
2016-02-28 13:48:04
233
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人