11 2018 档案

Android ------------------ 带边框的圆角矩形
摘要:<?xml version="1.0" encoding="utf-8"?><shape xmlns:android="http://schemas.android.com/apk/res/android" > <!-- 填充颜色 --> <solid android:color="#8d7eb9" 阅读全文

posted @ 2018-11-27 17:26 zhang11111wei 阅读(176) 评论(0) 推荐(0) 编辑

Android------------------的快捷键的使用
摘要:https://www.cnblogs.com/shidian/p/6937630.html 阅读全文

posted @ 2018-11-25 22:10 zhang11111wei 阅读(51) 评论(0) 推荐(0) 编辑

Android------------------RecyclerView学习
摘要:一、多种布局的保存 1.Type->getItemViewType(int position) 2.RecylerView.Holder : 定一个holder的内部类,里面保存一些view的元素 3.RecylerView.Recycler : 保存一些缓存机制,类似于之前的content Vie 阅读全文

posted @ 2018-11-25 22:09 zhang11111wei 阅读(102) 评论(0) 推荐(0) 编辑

Android---------------Handler的学习
摘要:public LocalVPNService() { mHandlerThread = new HandlerThread(TAG); mHandlerThread.start(); mBackgroundHandler = new Handler(mHandlerThread.getLooper( 阅读全文

posted @ 2018-11-23 17:12 zhang11111wei 阅读(81) 评论(0) 推荐(0) 编辑

Android---------------解决bug的关键点
摘要:一、抛出异常,打出异常的的堆信息 System.err.print("ceshi"); e.printStackTrace(); Log.i("ceshi", "exception "+e); 阅读全文

posted @ 2018-11-22 00:49 zhang11111wei 阅读(128) 评论(0) 推荐(0) 编辑

Android---------------ContentProvider的学习
摘要: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 阅读(286) 评论(0) 推荐(0) 编辑

Android------TabLayout的使用
摘要:https://www.jianshu.com/p/2b2bb6be83a8 主要放在 > Design库中的TabLayout的使用。 margin和padding的区别 外边距(margin): 属于布局参数,决定两个组件之间的距离。作用于多个组件之间。(组件与组件之间的使用) 内边距(padd 阅读全文

posted @ 2018-11-18 14:39 zhang11111wei 阅读(174) 评论(0) 推荐(0) 编辑

Android-----application的学习
摘要:一、Application的对象回调函数 1.onCreate : Application对象被创建时候会调用 2.onConfigurationChanged : 屏幕方向变化、系统语言的更改等 3.onLowMemory : 释放内存 阅读全文

posted @ 2018-11-16 17:43 zhang11111wei 阅读(106) 评论(0) 推荐(0) 编辑

Android---------------Activity的学习
摘要:一、Activity的启动方式 1.显示启动 Intent intent=new Intent(MainActivity.this,SettingActivity.class); //还可以这样写 Intent intent=new Intent(); intent.setClass(MainAct 阅读全文

posted @ 2018-11-13 15:40 zhang11111wei 阅读(171) 评论(0) 推荐(0) 编辑

Android--------------BroadcastReceiver的学习
摘要:一、广播的注册方式 发送广播: Intent mIntent = new Intent("com.simware.BroadcastReceiverDemo"); BroadcastReceiver的静态注册 >就是在xml文件中加入 AndroidManifest.xml文件 <receiver 阅读全文

posted @ 2018-11-07 00:02 zhang11111wei 阅读(113) 评论(0) 推荐(0) 编辑

Android------------------系统服务调用的学习
摘要:一、ServiceManager的方法: 此方法getService,用于根据名称获取当前的IBinder的代理(并没有直接获取服务), 服务提供的功能是依靠IBinder间接调用的(返回值IBinder) // 在真机的环境中是有此类: android.os.ServiceManager 因此我们 阅读全文

posted @ 2018-11-04 23:30 zhang11111wei 阅读(242) 评论(0) 推荐(0) 编辑

Android------------fragment数据传递
摘要:一、activity向fragment的数值之间的传递 关键点:fragment.setArguments(bundle); >activity发出的信息 Bundle bundle = getArguments(); >在fragment里面去接受信息 之间传递的关键函数fragemnt(自己创建 阅读全文

posted @ 2018-11-04 15:52 zhang11111wei 阅读(442) 评论(0) 推荐(0) 编辑

Service的学习代码
摘要:1. startService(new Intent(MainActivity.this, MyService.class)) >stopService(new Intent(MainActivity.this, MyService.class)) 2.bindService(new Intent( 阅读全文

posted @ 2018-11-03 16:57 zhang11111wei 阅读(186) 评论(0) 推荐(0) 编辑

Android------------------的资源文件的学习
摘要:一、style的学习 用法: 使用: 使用系统自带的style的风格 使用: 效果: 二、drawable的使用 selector是一个xml文件进行加载使用的: 文件名叫做buttonselector 使用的方法 阅读全文

posted @ 2018-11-03 00:10 zhang11111wei 阅读(82) 评论(0) 推荐(0) 编辑

导航

点击右上角即可分享
微信分享提示