摘要:
handler内存泄漏原因有两个: 第一:
阅读全文
posted @ 2017-09-22 14:04
跳动的米
阅读(196)
推荐(0)
摘要:
public class CashSoft { //bitmap对象用软引用保存 private Map<String,SoftReference<Bitmap>> imageCash = new HashMap<String,SoftReference<Bitmap>>(); public voi
阅读全文
posted @ 2017-09-22 11:59
跳动的米
阅读(106)
推荐(0)
摘要:
public class MemoryCache { private static final String TAG = "MemoryCache"; private Map<String, Bitmap> cache=Collections.synchronizedMap( new LinkedH
阅读全文
posted @ 2017-09-22 10:02
跳动的米
阅读(165)
推荐(0)
摘要:
问题描述:单选结果会混乱显示,如,选中123item,滑动时可能会显示到其他的item上。 解决思路:当你选中1,2,3 item时,滑动到下一页,下一页的1,2。3 item会默认显示选中效果,一个屏幕显示10个item,下一页11,12,13item会有显示效果 方法:当滑动listview时,
阅读全文
posted @ 2017-09-13 17:23
跳动的米
阅读(274)
推荐(0)
摘要:
Intent intent = new Intent(GocActivity.this.getApplicationContext(),GocActivity.class);intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACT
阅读全文
posted @ 2017-08-31 14:04
跳动的米
阅读(1713)
推荐(0)
摘要:
//取消状态栏getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);一定得在setContentView()上面隐藏虚拟按键: prot
阅读全文
posted @ 2017-05-04 18:20
跳动的米
阅读(10784)
推荐(0)
摘要:
Error:Execution failed for task ':app:clean'.> Unable to delete directory: D:\AndroidWorkPlace\HelloJni\app\build\intermediates\classes\debug Error:Ex
阅读全文
posted @ 2017-05-03 10:55
跳动的米
阅读(757)
推荐(0)
摘要:
解决方法: 在build.gradle(Project)下:
阅读全文
posted @ 2017-05-02 18:01
跳动的米
阅读(844)
推荐(0)
摘要:
第一种:private void doStartApplicationWithPackageName(String packagename) { // 通过包名获取此APP详细信息,包括Activities、services、versioncode、name等等 PackageInfo packag
阅读全文
posted @ 2017-04-28 16:23
跳动的米
阅读(2517)
推荐(0)
摘要:
public class MainActivity extends AppCompatActivity { private GridView gridview; private ListView listView; private ArrayList<HashMap<String, Object>>
阅读全文
posted @ 2017-04-21 10:21
跳动的米
阅读(584)
推荐(0)