摘要: 回收每一帧的图片,释放内存资源private void tryRecycleAnimationDrawable(AnimationDrawable animationDrawables) { if (animationDrawables != null) { animationDrawabl... 阅读全文
posted @ 2015-08-19 18:31 蚂蚁小圆 阅读(5113) 评论(0) 推荐(0) 编辑
摘要: 在开发中总会因为用户设置了手机字体大小而影响到app得字体的大小,搞的有些地方因字体而面目全非/*防止系统字体影响到app的字体*/ public Resources getResources() { Resources res = super.getResources(); ... 阅读全文
posted @ 2015-08-19 18:23 蚂蚁小圆 阅读(920) 评论(0) 推荐(0) 编辑
摘要: 隐藏软键盘的函数/*隐藏软键盘*/ private boolean hideInputMethodManager(){ InputMethodManager mInputMethodManager = (InputMethodManager) getSystemService(INPU... 阅读全文
posted @ 2015-08-19 18:20 蚂蚁小圆 阅读(155) 评论(0) 推荐(0) 编辑