码迷,mamicode.com
首页 >  
搜索关键字:match    ( 5193个结果
Android中关于系统Dialog无法全屏的问题
自定义一个Dialog,继承了系统Dialog的样式。这时候会发现,即使布局文件中写的width和height都是match_parent,依然无法达到全屏的效果。原因是:系统dialog的样式。默认有padding=10dip,所以即使设置为全屏,也是有10dip的间隙。如果不得不继承这个样式,还...
分类:移动开发   时间:2015-05-28 19:40:44    阅读次数:411
hdu1853 km算法
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获取图片数据流
<?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
The content of element type "context" must match "(property*,plugin*,commentGenerator?
最近项目用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
5.6.3.6 字符串的模式匹配方法
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
javascript中的正则匹配函数exec(),test(),match()
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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!