- 博客(3)
- 资源 (1)
- 收藏
- 关注
原创 浅谈DrawerLayout
DrawerLayout 是谷歌官方推出的侧滑控件,使用时首先添加相关的包并将DrawerLayout作为跟布局:implementation 'com.android.support:design:26.1.0'DrawerLayout主要分为两部分内容:1.主内容区域,即当前页面显示的内容.(注:主内容区域必须为跟布局下第一个子视图内容)2.侧滑菜单区域.可以左滑和右滑,跟自己需求定.(注:侧...
2018-02-08 11:04:40
279
原创 浅谈SwipeRefreshLayout
今天专门看了下android原生的SwipeRefreshLayout,理下思路加深印象SwipeRefreshLayout经常使用的方法有:setProgressBackgroundColorSchemeColor //设置圆圈的背景色setColorSchemeResources(android.R.color.holo_blue_bright, android.R.col
2018-01-26 19:05:36
124
原创 button、TextView等设置drawableLift
Drawable drawable = getResources().getDrawable(R.drawable.icon_boy);//未添加则不显示drawable.setBounds(0,0,drawable.getMinimumWidth(),drawable.getMinimumHeight());textView_nickName.setCompoundDrawables(
2018-01-03 19:27:35
179
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人