上一页 1 2 3 4 5 6 7 8 ··· 26 下一页

2016年4月14日

唯一id UUID

摘要: public static String getUUID() { String s = UUID.randomUUID().toString(); return s.substring(0, 8) + s.substring(9, 13) + s.substring(14, 18) + s.substring(19, 23) + s.substring(24);... 阅读全文

posted @ 2016-04-14 16:27 Z2 阅读(186) 评论(0) 推荐(0)

2016年4月12日

我已阅读用户协议 进入协议页面

摘要: 设置颜色是在主题里面:colorAccent颜色值 阅读全文

posted @ 2016-04-12 17:14 Z2 阅读(2212) 评论(0) 推荐(0)

数据库Dao类BaseDao(增删改)

摘要: package com.changim.patient.app.db; import android.content.ContentValues; import android.content.Context; import android.database.sqlite.SQLiteDatabase; import android.util.Log; import com.changim.... 阅读全文

posted @ 2016-04-12 14:21 Z2 阅读(2130) 评论(0) 推荐(0)

通过静态广播监听网络变化,在通过回调通知

摘要: 记得在AndroidManifest.xml中注册及加权限: 阅读全文

posted @ 2016-04-12 12:09 Z2 阅读(801) 评论(0) 推荐(0)

2016年4月1日

支付宝九宫格

摘要: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/home_adapter_item" 阅读全文

posted @ 2016-04-01 21:30 Z2 阅读(729) 评论(0) 推荐(0)

2016年3月31日

toolBar

摘要: theme 阅读全文

posted @ 2016-03-31 17:57 Z2 阅读(184) 评论(0) 推荐(0)

2016年3月18日

QQ发送位置(高德地图)

摘要: ... 阅读全文

posted @ 2016-03-18 16:08 Z2 阅读(1482) 评论(0) 推荐(0)

聊天消息 左右item

摘要: 点此下载 阅读全文

posted @ 2016-03-18 09:08 Z2 阅读(157) 评论(0) 推荐(0)

2016年3月15日

Scrollview 嵌套 RecyclerView 及在Android 5.1版本滑动时 惯性消失问题

摘要: scrollview 嵌套recyclerview 时,recyclerview不显示,这就需要我们自己计算recyclerview的高度,比如: 这中方法适合item高度比较好计算的情形,但要遇到里面的item高度不一定这就需要我们重写recyclerview的高度了,以前嵌套listview的时 阅读全文

posted @ 2016-03-15 17:01 Z2 阅读(4005) 评论(0) 推荐(0)

2016年3月12日

判断软键盘是否弹出 并且隐藏

摘要: //判断隐藏软键盘是否弹出 if (getWindow().getAttributes().softInputMode == WindowManager.LayoutParams.SOFT_INPUT_STATE_UNSPECIFIED) { //隐藏软键盘 InputMethodManager i 阅读全文

posted @ 2016-03-12 09:42 Z2 阅读(519) 评论(0) 推荐(0)

上一页 1 2 3 4 5 6 7 8 ··· 26 下一页

导航