摘要: AndroidManifest.xml: 在res新建XML文件配置辅助参数: 阅读全文
posted @ 2016-08-18 14:47 呼啦啦,,啦啦呼呼 阅读(655) 评论(0) 推荐(0) 编辑
摘要: View popuView = LayoutInflater.from(this).inflate(R.layout.purrify_main_poupow, null); popuView.measure(MeasureSpec.UNSPECIFIED, MeasureSpec.UNSPECIFIED); popupWidth = popuView.getMeasuredWidth()... 阅读全文
posted @ 2016-05-27 11:14 呼啦啦,,啦啦呼呼 阅读(337) 评论(0) 推荐(0) 编辑
摘要: package com.text; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; public class Text1 { /** * TODO(description of this ... 阅读全文
posted @ 2016-04-26 12:31 呼啦啦,,啦啦呼呼 阅读(280) 评论(0) 推荐(0) 编辑
摘要: 一、从Eclipse中导出:1、将你的ADT插件版本升级到22.0以上。2、在Eclipse中,选择File-->Export。3、在弹出的导出窗口中,打开Android的文件夹,选择“Generate Gradle Build Files”。4、选中你想要导入到Android Studio中的项目 阅读全文
posted @ 2016-04-12 10:58 呼啦啦,,啦啦呼呼 阅读(174) 评论(0) 推荐(0) 编辑
摘要: 转自:http://www.cnblogs.com/xingfuzzhd/archive/2013/06/25/3154674.html 一、结构 二、概述 三、内部类 四、公共方法 阅读全文
posted @ 2016-04-12 09:22 呼啦啦,,啦啦呼呼 阅读(150) 评论(0) 推荐(0) 编辑
摘要: Android Https通信 https与http的通信,在我看来主要的区别在于https多了一个安全验证机制,而Android采用的是X509验证,首先我们需要这重写X509类,建立我们的验证规则、、不过对于特定的项目,我们一般都是无条件信任服务端的,因此我们可以对任何证书都无条件信任(其实本质上我们只是信任了特定url的证书,为了偷懒,才那么选择的)/** * 信任所有主机-对于任何证书... 阅读全文
posted @ 2016-04-08 09:20 呼啦啦,,啦啦呼呼 阅读(243) 评论(0) 推荐(0) 编辑
摘要: public class MainActivity extends Activity implements LoaderCallbacks{ private ListView listView=null; private Uri uri=null; private ContentResolver resolver=null; private CursorLoad... 阅读全文
posted @ 2016-02-24 19:39 呼啦啦,,啦啦呼呼 阅读(441) 评论(0) 推荐(0) 编辑
摘要: 1.定义布局文件 2,定义样式主题 3,定义动画 4,写一个类继承Dialog 阅读全文
posted @ 2016-02-24 12:58 呼啦啦,,啦啦呼呼 阅读(223) 评论(0) 推荐(0) 编辑
摘要: //定义布局 public class MainActivity extends Activity { private GestureOverlayView gestureOverlayView = null; private void initView() { gestureOverlayView = (GestureOverlayView) findViewB... 阅读全文
posted @ 2016-02-24 10:24 呼啦啦,,啦啦呼呼 阅读(156) 评论(0) 推荐(0) 编辑
摘要: public class MainActivity extends Activity { private static WindowManager windowManger = null; // 悬浮窗的属性都在这里设置 private static WindowManager.LayoutParams lp = null; // 定义一个悬浮的view private stat... 阅读全文
posted @ 2016-02-23 16:01 呼啦啦,,啦啦呼呼 阅读(142) 评论(0) 推荐(0) 编辑