摘要: 一、使用xml文件定义动画 (在animator文件夹下) 1、定义 2、在代码中使用 //使用xml设置动画 //先获取到动画对象 ObjectAnimator oa=(ObjectAnimator) AnimatorInflater.loa... 阅读全文
posted @ 2016-03-16 16:15 云中鹤5786 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 1、设置动画布局文件(在drawable中添加xml文件) 2、播放动画 //设置开机动画 ImageView iv=(ImageView) findViewById(R.id.i... 阅读全文
posted @ 2016-03-16 15:25 云中鹤5786 阅读(90) 评论(0) 推荐(0) 编辑
摘要: 一、创建Fragment //继承fragment类 public class Fragment01 extends Fragment { @Override public View onCreateView(LayoutInflater inflater, Vi... 阅读全文
posted @ 2016-03-16 10:03 云中鹤5786 阅读(92) 评论(0) 推荐(0) 编辑
摘要: 1、创建openhelper类 public class MyOpenHelper extends SQLiteOpenHelper { public MyOpenHelper(Context context) { super(context, "student.db", null, 3)... 阅读全文
posted @ 2016-03-09 21:58 云中鹤5786 阅读(294) 评论(0) 推荐(0) 编辑
摘要: 一、android 内部存储路径 1、应用数据的路径 data/data/com.ppa.threadtest/login.txt" 2、getFilesDir() 获取的路径 data/data/com.ppa.threadtest/files/ getCacheDir... 阅读全文
posted @ 2016-03-08 16:31 云中鹤5786 阅读(125) 评论(0) 推荐(0) 编辑
摘要: 1、FrameLayout android:layout_gravity="right|bottom" 2、相对某个控件同时左对齐,右对齐,则此控件随着相对控件的大小变化而变化。 3、LinearLayout 中布局自由分配 layout_weight="1"; la... 阅读全文
posted @ 2016-03-08 14:23 云中鹤5786 阅读(67) 评论(0) 推荐(0) 编辑
摘要: 1、 //android动画 AlphaAnimation animation=new AlphaAnimation(0.0f, 1.0f); animation.setDuration(3000); btnSubmit.setAnimation(animation); 阅读全文
posted @ 2016-03-08 10:45 云中鹤5786 阅读(115) 评论(0) 推荐(0) 编辑
摘要: 1、代码 public class ToastUtils { private static Toast mToast; public static void showToast(Context context,CharSequence text,int dura... 阅读全文
posted @ 2016-03-04 14:54 云中鹤5786 阅读(362) 评论(0) 推荐(0) 编辑
摘要: 1、定义和引用数组指针 uint8 state[1]={0x64}; //一路开关,插座 DevResponseInfo(1,(uint8 *)state); //发送开关初始状态 阅读全文
posted @ 2015-12-13 20:51 云中鹤5786 阅读(100) 评论(0) 推荐(0) 编辑
摘要: virturebox+genymotion +jar 1、工具下载 http://pan.baidu.com/disk/home#path=%252Fandroid%252Fandroid_tool 2、安装教程 http://www.codeceo.com/article/android-... 阅读全文
posted @ 2015-11-30 14:00 云中鹤5786 阅读(153) 评论(0) 推荐(0) 编辑