11 2015 档案

摘要:我们知道xUtils中的bitmapUtils与listview相配合可以实现滚动时暂停加载只需要一句话:listview.addOnScrollListener(new PauseOnScrollListener( bitmapUtils, false, true))... 阅读全文
posted @ 2015-11-25 22:06 BlogCommunicator 阅读(585) 评论(0) 推荐(0)
摘要:原文链接:http://jijiaxin89.com/2015/08/30/Android-s-Runtime-Permission/Android M 新的运行时权限开发者需要知道的一切android M 的名字官方刚发布不久,最终正式版即将来临!android在不断发展,最近的更新 M 非常不同... 阅读全文
posted @ 2015-11-22 23:06 BlogCommunicator 阅读(300) 评论(0) 推荐(0)
摘要:StackTraceElement caller = Thread.currentThread().getStackTrace()[4]; String className = caller.getClassName();// 带有包名信息 className = cla... 阅读全文
posted @ 2015-11-22 22:59 BlogCommunicator 阅读(170) 评论(0) 推荐(0)
摘要:原文地址:http://blog.csdn.net/x_i_a_o_h_a_i/article/details/40449847其实网上的3D旋转的例子很多,在这里我只是想把其代码做一个解释。先上图:代码:TurnAroundActivity/** * 图片浏览器的主Activity。 * * @... 阅读全文
posted @ 2015-11-19 09:59 BlogCommunicator 阅读(1380) 评论(0) 推荐(0)
摘要:原文地址:http://blog.sina.com.cn/s/blog_4c277ad30100yfqo.html客户需求需要增加对手机尺寸的读取于是找了两个方法第一种:通过activity引用调用getWindowManager()但是我的客户端是没有界面的因此使用另一种方法第二种:只需要传入co... 阅读全文
posted @ 2015-11-19 09:53 BlogCommunicator 阅读(165) 评论(0) 推荐(0)
摘要:第一个,计算字符串的md5值public static String getMD5(String s){ String newString = null; byte[] inputByteArray = s.getBytes(); char hexDigi... 阅读全文
posted @ 2015-11-17 13:53 BlogCommunicator 阅读(267) 评论(0) 推荐(0)
摘要:1、Rect的变量使用int类型,而RectF使用float类型。2、一些方法区别、Rect类equals(Object obj) (for some reason it as it's own implementation of equals)exactCenterX()exactCenterY(... 阅读全文
posted @ 2015-11-15 21:03 BlogCommunicator 阅读(411) 评论(0) 推荐(0)
摘要:摘要:widget(窗口小部件)可以增强应用程序的交互性,是很多应用中都会用到的功能,本文不求大而全,但是会给出程序与widget交互的关键代码正文:其实widget是嵌入(embedded)在桌面(launcher2)应用中的,它与自己的应用是在两个进程中分别执行的,所以与widget的交互就涉及... 阅读全文
posted @ 2015-11-13 15:58 BlogCommunicator 阅读(1468) 评论(0) 推荐(0)
摘要:摘要:alertdialog中加入edittext但是不弹出软键盘等问题网上有很多不管用的解决方案, 本文意在给出更有效的解决办法,并初步探究其原因 正文 在对话框中插入文本框是十分常见的需求 通常我们选择在代码中创建edittext对象 这个时候就需要在代码中给edittext设置输入属性了 但是 阅读全文
posted @ 2015-11-12 23:24 BlogCommunicator 阅读(2992) 评论(0) 推荐(0)
摘要:原文地址:http://blog.csdn.net/chenyufei1013/article/details/8363619摘要 本文介绍了android单位dp,dip的概念,并给出了它的确切含义。概述 Android中,dp是Density-independent Pixels简写,... 阅读全文
posted @ 2015-11-11 21:18 BlogCommunicator 阅读(455) 评论(0) 推荐(0)
摘要:原文地址:http://www.cnblogs.com/ttylinux/p/4069513.htmlActivity有四种启动模式:1.standard(标准) 2.singleTop 3.singleTask 4.singleInstance标识某个Activity的启动模式,有两种方式:1.一... 阅读全文
posted @ 2015-11-05 15:29 BlogCommunicator 阅读(164) 评论(0) 推荐(0)
摘要:原文地址:http://mypyg.iteye.com/blog/968646目标:实现textview和ImageButton组合,可以通过Xml设置自定义控件的属性。1.控件布局:以Linearlayout为根布局,一个TextView,一个ImageButton。Xml代码2.自定义控件代码,... 阅读全文
posted @ 2015-11-03 16:13 BlogCommunicator 阅读(148) 评论(0) 推荐(0)
摘要:比如说一段旋转动画RotateAnimation animation = new RotateAnimation(0, 360, mMoveCircle.getMeasuredWidth() / 2, mMoveCircle.getMeas... 阅读全文
posted @ 2015-11-02 21:32 BlogCommunicator 阅读(398) 评论(0) 推荐(0)
摘要:public class ScoreButton extends ViewGroup在类中重写onTouchEvent方法@Override public boolean onTouchEvent(MotionEvent event) {switch (event.getAction()) { c... 阅读全文
posted @ 2015-11-02 20:58 BlogCommunicator 阅读(333) 评论(0) 推荐(0)