随笔分类 -  Android

摘要:对于ScrollView内嵌ListView,我们需要解决两个问题。 1.ListView在layout_height为以下三种任何一种情况的时候,仅一个item可见的问题。 wrap_content match_parent 0dp+ layout_weight = 1 解决方案: 1.给List 阅读全文
posted @ 2017-09-08 18:34 天长地久-无为 阅读(461) 评论(0) 推荐(0)
摘要:https://jaq.alibaba.com/community/art/show?articleid=352 阅读全文
posted @ 2017-09-07 17:38 天长地久-无为 阅读(187) 评论(0) 推荐(0)
摘要:In Android,we almost have less chance to define our own permission,and sometimes we need,so as in a contentprovider here is how to define our own perm 阅读全文
posted @ 2017-09-07 17:37 天长地久-无为 阅读(154) 评论(0) 推荐(0)
摘要:In Android,we always use dirty to describe something has changed already but has not refresh to the screen. A dirty object is an object that has chang 阅读全文
posted @ 2017-09-04 09:16 天长地久-无为 阅读(226) 评论(0) 推荐(0)
摘要:it is so concise./** * Simple cache adapter interface. If provided to the ImageLoader, it * will be used as an L1 cache before dispatch to Volley. Imp 阅读全文
posted @ 2017-08-31 16:20 天长地久-无为 阅读(196) 评论(0) 推荐(0)
摘要:When overriding the onPause() and the onResume() methods of the activity, where is the proper location to call the super.onPause() and super.onResume( 阅读全文
posted @ 2017-08-31 13:26 天长地久-无为 阅读(143) 评论(0) 推荐(0)
摘要:In Activity life cycle we can go from onPause to onResume directly ,this can occur if our activity leaves the foreground but is still visible, i.e. a 阅读全文
posted @ 2017-08-31 11:47 天长地久-无为 阅读(214) 评论(0) 推荐(0)
摘要:最近,笔者花了很多时间学习了一些Google官方推荐的RecycleView的用法,发现相比于原来的ListView,RecycleView的功能实在是太强大,很值得大家去学习一下。 基本的使用 我们就不讲如何导入包什么的了吧,我们直接进入主题。 xml <android.support.v7.wi 阅读全文
posted @ 2017-08-31 08:52 天长地久-无为 阅读(202) 评论(0) 推荐(0)
摘要:added in API level 12 A cache that holds strong references to a limited number of values.Each time a value is accessed,it is moved to the headof a que 阅读全文
posted @ 2017-08-31 08:30 天长地久-无为 阅读(153) 评论(0) 推荐(0)
摘要:Base class for activities that use the support library action bar features.You can add an ActionBar to your activity when running on API level 7 or hi 阅读全文
posted @ 2017-08-31 08:09 天长地久-无为 阅读(226) 评论(0) 推荐(0)
摘要:https://www.captechconsulting.com/blogs/understanding-density-independence-in-android Background Android is a mobile operating system with very few li 阅读全文
posted @ 2017-08-30 17:43 天长地久-无为 阅读(283) 评论(0) 推荐(0)
摘要:public void setConnectTimeout (int timeoutMillis)Sets the maximum time in milliseconds to wait while connecting. Connecting to a server will fail with 阅读全文
posted @ 2017-08-30 16:49 天长地久-无为 阅读(506) 评论(0) 推荐(0)
摘要:retrieve to get something back scrap to discard or discontinue something because it is considered useless or ineffective measure to find out the size, 阅读全文
posted @ 2017-08-29 09:52 天长地久-无为 阅读(196) 评论(0) 推荐(0)