activity_main.xml
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layou...
分类:
移动开发 时间:
2015-07-16 11:57:24
阅读次数:
221
activity_main.xml:<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"
android:layout_he...
分类:
其他好文 时间:
2015-07-15 17:07:48
阅读次数:
124
/** * 校验是否为手机号码 * @param string $mobile* @return boolean */function is_mobile($mobile) { if(preg_match('#^13[\d]{9}$|14^[0-9]\d{8}|^15[0-9]\d{8}$...
分类:
移动开发 时间:
2015-07-15 16:55:24
阅读次数:
129
/** * 判断是否为邮箱 * @param string $email* @param boolean */function is_email($email) { if(preg_match('/^[0-9a-z_][_.0-9a-z-]{0,32}@([0-9a-z][0-9a-z-]...
分类:
其他好文 时间:
2015-07-15 16:49:37
阅读次数:
87
cui@bug:~$ killall -h用法: killall [选项]... [--] 进程名... killall -l, --list killall -V, --version -e,--exact require exact match for...
分类:
系统相关 时间:
2015-07-15 12:37:11
阅读次数:
133
111111111 222222222 333333333 444444444'; // 如果内容很多,可以首先匹配出div中的内容preg_match('/(.*?)/is',$str,$re);// 匹配li中的内容preg_match_all('/(.*?)/is',$re[1],$...
分类:
其他好文 时间:
2015-07-14 15:27:11
阅读次数:
106
一丶首先创建一个手势库二丶手势实例布局文件:在布局文件中有:<android.gesture.GestureOverlayViewandroid:id="@+id/gv"android:layout_width="match_parent"android:layout_height="match_parent"android:background="#000000"android:gestureStrokeWidth="10"android:g..
分类:
移动开发 时间:
2015-07-13 18:54:47
阅读次数:
136
$str=''; $pattern="//i"; preg_match_all($pattern,$str,$match); echo ''; print_r($match);
分类:
Web程序 时间:
2015-07-13 18:02:15
阅读次数:
149
首先声明只有在Linearlayout中,该属性才有效。之所以android:layout_weight会引起争议,是因为在设置该属性的同时,设置android:layout_width为wrap_content和match_parent会造成两种截然相反的效果。如下所示: ...
分类:
移动开发 时间:
2015-07-12 17:15:45
阅读次数:
126
android:layout_weight的真实含义是:一旦View设置了该属性(假设有效的情况下),那么该 View的宽度等于原有宽度(android:layout_width)加上剩余空间的占比!含义:原有宽度+剩余空间占比设屏幕宽度为L,在两个view的宽度都为match_parent的情况下...
分类:
移动开发 时间:
2015-07-12 17:05:09
阅读次数:
127