自定义一个Dialog,继承了系统Dialog的样式。这时候会发现,即使布局文件中写的width和height都是match_parent,依然无法达到全屏的效果。原因是:系统dialog的样式。默认有padding=10dip,所以即使设置为全屏,也是有10dip的间隙。如果不得不继承这个样式,还...
分类:
移动开发 时间:
2015-05-28 19:40:44
阅读次数:
411
1 //hdu1853 2 #include 3 #include 4 #define INF 99999999 5 int map[103][103],pr[103],pl[103],visr[103],visl[103],slack[103],match[103]; 6 int ...
分类:
编程语言 时间:
2015-05-28 15:53:06
阅读次数:
134
<?php
$base64?=?file_get_contents("php://input");?//获取输入流
$base64?=?json_decode($base64,1);
$data?=?$base64[‘base64‘];
preg_match("/data:image\/(.*);base64,/",$data,$res);
$ext?=?$re...
分类:
Web程序 时间:
2015-05-28 11:06:13
阅读次数:
231
最近项目用SSM框架,在利用mybatis generator反向生成数据库对应的model实体时,报如下错误:
The content of element type "context" must match
"(property*,plugin*,commentGenerator?,jdbcConnection,javaTypeResolver?,javaModelGenerator,...
分类:
其他好文 时间:
2015-05-28 11:00:36
阅读次数:
3390
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_...
分类:
其他好文 时间:
2015-05-28 02:04:50
阅读次数:
206
String类型定义了几个用于在字符串中匹配模式的方法。第一个方法就是macth(),在字符串上调用这个方法,本质上与调用RegExp()的exec()方法相同。match()方法只接收一个参数,要么是一个正则表达式,要么是一个RegExp()对象。例如:var text="cat,bat,sa.....
分类:
其他好文 时间:
2015-05-28 00:36:36
阅读次数:
171
两个服务互相守护 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layo...
分类:
移动开发 时间:
2015-05-27 23:08:44
阅读次数:
516
使用通知管理者 NotificationManager <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_pare...
分类:
其他好文 时间:
2015-05-27 16:10:38
阅读次数:
226
test()var str = "cat";var reStr = /cat/;alert(reStr.test(str));输出为:true它的返回值为true or false ;exec()var str = "a bat , a Cat , a fat cat";var reStr = /a...
分类:
编程语言 时间:
2015-05-27 09:49:02
阅读次数:
164
通过隐式意图来打开照相机 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
andr...
分类:
其他好文 时间:
2015-05-26 23:32:15
阅读次数:
312