- 博客(7)
- 资源 (3)
- 收藏
- 关注
原创 二叉搜索树
#include using namespace std; class tree{ public: class node{ public: int value; char key; node* left; node* right; node(int v,char k){ this->value=v; this->key=k; } };
2016-07-27 12:46:39 220
原创 Android视图自定义属性
1、在values文件夹下生成attr文件 / 2、在定义的view中,可将布局文件中的定义view的属性解析 public MyView(Context context, AttributeSet attrs) { super(context, attrs); // TODO Auto-generated constructo
2016-07-14 15:43:27 240
原创 android中的fragment
一、静态 android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" > android:layout_width="wrap_content" android:layou
2016-07-13 14:44:38 213
原创 Android中的broadcast
一、基本使用定义: 定义一个接收器,选择动态或静态注册,然后发送广播或信息。 动态注册: registerRecerver(broadcast,new IntentFilter("action")); 动态注销: unregisterReceiver(broadcast); 二、广播接收器的优先级: andr
2016-07-13 10:37:37 242
原创 Android中的service
一、定义和启动service 编写类继承service,在配置文件中注册service,利用intent桥梁,startservice(),启动service。 可通过intent通讯 二、绑定service方式 bindService(intent, conn,Service.BIND_AUTO_CREATE); //conn为ServiceConnection实例,监听绑定
2016-07-13 10:28:31 221
原创 andorid中的应用权限的检查
一、 1、声明权限: 2、 public static void hasPermision(Context context){ if(context.checkCallingOrSelfPermission(PERMISION_HELLO)!=PackageManager.PERMISSION_GRANTED){ throw new SecurityException("异常");
2016-07-12 16:22:46 394
原创 android中intent的作用
intent:android中的应用间或应用内部的通信桥梁。比如activity/service/broadcast.等。 1.显式intent Intent i=new Intent(MainActivity.this,AnotherActivity.class) 2.隐式intent 通过Android的筛选机制 ,可实现不同应用的通讯。
2016-07-12 15:31:44 6003
javascript轮播图
2018-01-06
gradle-2.4-all.zip
2017-08-12
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人