会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
美梦纵然还是忧伤而逝
首页
管理
2016年4月9日
Android—判断当前时间段
摘要: 思路:获取当前时间相对于当天的分钟数,然后按照时间顺序依次与时间段后面的时间(转化为分钟数)比较(如8:00-9:00,跟9:00比较)。 部分代码: 当前时间 时间段时间:String time="8:00-9:00"
阅读全文
posted @ 2016-04-09 17:02 美梦纵然还是忧伤而逝
阅读(813)
评论(0)
推荐(0)
2016年4月5日
fragment 监听返回
摘要: @Override public void onResume() { super.onResume(); getView().setFocusableInTouchMode(true); getView().requestFocus(); getView().setOnKeyListener(new View.OnKeyListener() { ...
阅读全文
posted @ 2016-04-05 10:44 美梦纵然还是忧伤而逝
阅读(107)
评论(0)
推荐(0)
2016年3月28日
TextInputLayout setError() setErrorEnable()
摘要: public void afterTextChanged(Editable s) { if (textInputLayout.getEditText().getText().toString().length() != length) { textInputLayout.setError(errorInfo); ...
阅读全文
posted @ 2016-03-28 09:42 美梦纵然还是忧伤而逝
阅读(945)
评论(0)
推荐(0)
2016年3月24日
Android—定位
摘要: 详细见官网
阅读全文
posted @ 2016-03-24 18:12 美梦纵然还是忧伤而逝
阅读(134)
评论(0)
推荐(0)
2016年3月23日
Android—IMEI
摘要: 1 TelephonyManager telephonyManager= (TelephonyManager) getSystemService(TELEPHONY_SERVICE); 2 // Returns the unique device ID, for example, the IMEI for GSM and the MEID 3 // o...
阅读全文
posted @ 2016-03-23 17:13 美梦纵然还是忧伤而逝
阅读(280)
评论(0)
推荐(0)