文章
android 正则检测用户名 密码 邮箱
最常用的几个正则匹配://用户名:315任意字符组合usernameRegex/^\\w{3,15}$/;//密码:612任意字符组合passwordRegex/^\\w{6,12}$/;//邮箱:自己实现验证规则emailRegex/^\\w@\\w(\\.\\w)$/;//真实
android framework 私有res添加
在4.1以前,在系统framewor中添加资源文件通过Eclipse的一般应,我们可以联想到是否就是简单的把字符串放在res的各个文件夹里面。先来试试看,编译,系统立即报错。它提示你利用makeupdateapi这个命令来更新public.xml文件或者把这个声明称hide类型。这怎么办呢?方法有二:方法1:正常添加完资源
android dp和px之间转换
publicclassDensityUtil{/根据手机的分辨率从dip的单位转成为px(像素)/publicstaticintdip2px(Contextcontext,floatdpValue){
android WebView 使用实例
主布局文件:<?xmlversion"1.0"encoding"utf8"?<LinearLayoutxmlns:android"http://schemas.android.com/apk/res/android"android:layout_width"match_parent"
android SQLite数据库使用实例
创建数据库帮助类DbHelper.java:packagecom.example.db;importandroid.content.Context;importandroid.database.sqlite.SQLiteDatabase;importandroid.database.sqlite.S
android Notification 状态栏通知使用示例
ch7\_notification.xml:<?xmlversion"1.0"encoding"utf8"?<LinearLayoutxmlns:android"http://schemas.android.com/apk/res/android"android:layout_width"match_
android GPS定位代码
publicclassMainActivityextendsActivity{privateLocationManagerlm;privateMyLocationListenerlistener;@OverrideprotectedvoidonCr
android ContextMenu 上下文菜单示例
ch2\_contextmenu.xml:<?xmlversion"1.0"encoding"utf8"?<LinearLayoutxmlns:android"http://schemas.android.com/apk/res/android"android:layout_width"match_p
adb shell dumpsys [options]操作实例讲解
adbshelldumpsys\options\该命令用于打印出当前系统信息,默认打印出设备中所有service的信息。由于service比较多,这里选几个用的比较多的service来进行讲解:battery电池状态batteryp
activiti实战系列 排他网关(ExclusiveGateWay)
流程图!(http://static.oschina.net/uploads/img/201605/05215058_MBKk.jpg)12.2:部署流程定义启动流程实例!(http://static.oschina.net/uploads/img/201605/05215058_PqzD.jpg)12.
已加载文章中没有匹配内容,试试其他关键词或清空搜索。