03 2015 档案

摘要:在MainActivity中添加: mRecyclerView.addOnItemTouchListener( new RecyclerItemClickListener(context, mRecyclerView, new RecyclerItemCl... 阅读全文
posted @ 2015-03-30 15:10 W君 阅读(3778) 评论(0) 推荐(0)
摘要:SimpleDividerItemDecoration.javapublic class SimpleDividerItemDecoration extends RecyclerView.ItemDecoration { private Drawable mDivider; publi... 阅读全文
posted @ 2015-03-28 18:06 W君 阅读(2035) 评论(0) 推荐(0)
摘要:在style或自定义theme(v21)中添加如下: #20000000并在item_roll.xml中加入:android:clickable="true"android:background="?attr/selectableItemBackground"问题产生原因:“It tu... 阅读全文
posted @ 2015-03-28 12:04 W君 阅读(427) 评论(0) 推荐(0)
摘要:将Navigation Drawer显示在Toolbar的前面,Statusbar的后面,并且Statusbar为semi-transparent的样子。在项目中加入ScrimInsetsFrameLayout.java:https://github.com/google/iosched/blob/... 阅读全文
posted @ 2015-03-26 16:20 W君 阅读(815) 评论(0) 推荐(0)
摘要:1.在activity_main.xml里的drawer layout与side drawer的layout中加入android:fitsSystemWindows="true"2.在 v21/styles.xml中加入一個有透明度的色码给android:statusBarColor 这个状态列颜色... 阅读全文
posted @ 2015-03-22 21:46 W君 阅读(214) 评论(0) 推荐(0)