
utils+片段
xfh001
这个作者很懒,什么都没留下…
展开
-
倒计时
/** * 倒计时 */ private class TimeCount extends CountDownTimer { public TimeCount(long millisInFuture, long countDownInterval) { super(millisInFuture, countDownInterval原创 2016-07-25 18:07:03 · 318 阅读 · 0 评论 -
网络是否连接
private boolean isNetworkConnected(Context context) { if (context != null) { ConnectivityManager mConnectivityManager = (ConnectivityManager) context .getSystemService(Context.CONNECTIVITY_SER原创 2014-09-15 15:24:22 · 521 阅读 · 0 评论 -
金额正则表达式
要求如下: 1.非负整数输入,如0、100等 2.两位小数的非负浮点数输入 Pattern p = Pattern.compile("^(([1-9]\\d{0,9})|0)(\\.\\d{1,2})?$"); Matcher m = p.matcher(text); if (m.matches()) { // TODO return; }原创 2016-07-28 18:22:04 · 447 阅读 · 0 评论 -
Button 提交按钮+颜色变化选择器 shape 实现
xml version="1.0" encoding="utf-8"?> selector xmlns:android="http://schemas.android.com/apk/res/android"> item android:state_pressed="false"> shape> solid android:color="#009A原创 2016-07-16 14:05:33 · 890 阅读 · 0 评论 -
android自定义弹出框样式实现
android自定义弹出框样式实现转载 2016-08-09 10:31:49 · 569 阅读 · 0 评论