随笔分类 -  Android

摘要:/** * @author zhy */public class DividerGridItemDecoration extends RecyclerView.ItemDecoration { private static final int[] ATTRS = new int[]{android.R.attr.listDivider}; private Drawable mDivide... 阅读全文

posted @ 2016-04-06 21:23 a0000 阅读(1292) 评论(0) 推荐(0)

摘要:自定义可点击的ImageSpan并在TextView中内置“View“ 阅读全文

posted @ 2016-04-06 12:27 a0000 阅读(689) 评论(0) 推荐(0)

摘要:android.support.v7.app.ActionBarDrawerToggle mDrawerToggle.setDrawerIndicatorEnabled(false); //disable "hamburger to arrow" drawable mDr... 阅读全文

posted @ 2015-09-02 15:31 a0000 阅读(139) 评论(0) 推荐(0)

摘要:取消RecyclerView顶部和底部阴影android:overScrollMode="never" 阅读全文

posted @ 2015-07-18 11:34 a0000 阅读(288) 评论(0) 推荐(0)

摘要:转:How to switch off download gradle distribution?如何使用本地gradledistributionUrl=file\:///C:/Users/johndoe/downloads/gradle-2.1-all.zip 阅读全文

posted @ 2015-05-19 08:12 a0000 阅读(1032) 评论(0) 推荐(0)

摘要:转自https://philio.me/styling-the-searchview-with-appcompat-v21/Earlier versions of the AppCompat-v7 library conveniently exposed a huge number of styli... 阅读全文

posted @ 2015-05-08 14:22 a0000 阅读(4848) 评论(0) 推荐(0)

摘要:在主题里设置spinner样式 阅读全文

posted @ 2015-05-07 11:32 a0000 阅读(4092) 评论(0) 推荐(0)

摘要:转自:http://blog.sina.com.cn/s/blog_5da93c8f0101p4y8.html最近做项目的时候用到webview加载 一段 html文本,使用 WebView 的 loadData(detail, "text/html", "UTF-8");测试发现出现中文乱码了,在... 阅读全文

posted @ 2015-05-06 21:21 a0000 阅读(361) 评论(0) 推荐(0)

摘要:查看没有用过的资源Improving Your Code with lint 阅读全文

posted @ 2015-04-21 10:33 a0000 阅读(114) 评论(0) 推荐(0)

摘要:Android 2013.11.20 代码中设置输入法 getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_HIDDEN | WindowManager.LayoutParams.SOFT_INPUT_AD 阅读全文

posted @ 2013-11-20 11:20 a0000 阅读(472) 评论(0) 推荐(0)

导航