上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 14 下一页

2018年11月25日

摘要: 一、多种布局的保存 1.Type->getItemViewType(int position) 2.RecylerView.Holder : 定一个holder的内部类,里面保存一些view的元素 3.RecylerView.Recycler : 保存一些缓存机制,类似于之前的content Vie 阅读全文
posted @ 2018-11-25 22:09 zhang11111wei 阅读(100) 评论(0) 推荐(0) 编辑

2018年11月23日

摘要: public LocalVPNService() { mHandlerThread = new HandlerThread(TAG); mHandlerThread.start(); mBackgroundHandler = new Handler(mHandlerThread.getLooper( 阅读全文
posted @ 2018-11-23 17:12 zhang11111wei 阅读(80) 评论(0) 推荐(0) 编辑

2018年11月22日

摘要: 一、抛出异常,打出异常的的堆信息 System.err.print("ceshi"); e.printStackTrace(); Log.i("ceshi", "exception "+e); 阅读全文
posted @ 2018-11-22 00:49 zhang11111wei 阅读(126) 评论(0) 推荐(0) 编辑

2018年11月19日

摘要: 1.Uri uri = Intent.getData() >可以获得Uri的地址 2.Cursor cursor = getContentResolver().query(uri , null , null , null ,null); >这句话相当得到空行那个位置 3.cursor.moveToF 阅读全文
posted @ 2018-11-19 21:46 zhang11111wei 阅读(276) 评论(0) 推荐(0) 编辑

2018年11月18日

摘要: https://www.jianshu.com/p/2b2bb6be83a8 主要放在 > Design库中的TabLayout的使用。 margin和padding的区别 外边距(margin): 属于布局参数,决定两个组件之间的距离。作用于多个组件之间。(组件与组件之间的使用) 内边距(padd 阅读全文
posted @ 2018-11-18 14:39 zhang11111wei 阅读(164) 评论(0) 推荐(0) 编辑

2018年11月16日

摘要: 一、Application的对象回调函数 1.onCreate : Application对象被创建时候会调用 2.onConfigurationChanged : 屏幕方向变化、系统语言的更改等 3.onLowMemory : 释放内存 阅读全文
posted @ 2018-11-16 17:43 zhang11111wei 阅读(102) 评论(0) 推荐(0) 编辑

2018年11月13日

摘要: 一、Activity的启动方式 1.显示启动 Intent intent=new Intent(MainActivity.this,SettingActivity.class); //还可以这样写 Intent intent=new Intent(); intent.setClass(MainAct 阅读全文
posted @ 2018-11-13 15:40 zhang11111wei 阅读(169) 评论(0) 推荐(0) 编辑

2018年11月7日

摘要: 一、广播的注册方式 发送广播: Intent mIntent = new Intent("com.simware.BroadcastReceiverDemo"); BroadcastReceiver的静态注册 >就是在xml文件中加入 AndroidManifest.xml文件 <receiver 阅读全文
posted @ 2018-11-07 00:02 zhang11111wei 阅读(112) 评论(0) 推荐(0) 编辑

2018年11月4日

摘要: 一、ServiceManager的方法: 此方法getService,用于根据名称获取当前的IBinder的代理(并没有直接获取服务), 服务提供的功能是依靠IBinder间接调用的(返回值IBinder) // 在真机的环境中是有此类: android.os.ServiceManager 因此我们 阅读全文
posted @ 2018-11-04 23:30 zhang11111wei 阅读(225) 评论(0) 推荐(0) 编辑
摘要: 一、activity向fragment的数值之间的传递 关键点:fragment.setArguments(bundle); >activity发出的信息 Bundle bundle = getArguments(); >在fragment里面去接受信息 之间传递的关键函数fragemnt(自己创建 阅读全文
posted @ 2018-11-04 15:52 zhang11111wei 阅读(420) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 14 下一页

导航