码迷,mamicode.com
首页 >  
搜索关键字:match    ( 5193个结果
vs2005_the breakpoint will not currently be hit. The source code is different from the original verison.
公司开发只能用英文版的VS2005 (雅蠛蝶)Tool-->Options-->Debugging->General:把Require source files to exactly match the orginal version的复选勾去掉就OK了。
分类:其他好文   时间:2015-05-19 20:34:28    阅读次数:289
Android 屏幕适配
一、关于布局适配1、不要使用绝对布局2、尽量使用match_parent 而不是fill_parent 。3、能够使用权重的地方尽量使用权重(android:layout_weight)4、如果是纯色背景,尽量使用android的shape 自定义。5、如果需要在特定分辨率下适配,可以在res目录上...
分类:移动开发   时间:2015-05-19 18:53:58    阅读次数:223
Android Studio开发基础之使用XML和Java代码混合控制UI界面
<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_parent"...
分类:移动开发   时间:2015-05-19 16:36:20    阅读次数:167
Android中如何为ListView设置静态数据
有的时候我们需要为一个listview设置固定的数据,下边就是如何设置静态的数据布局文件listview 的主页面 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_...
分类:移动开发   时间:2015-05-18 18:57:43    阅读次数:176
Android中GridView的使用方法
布局文件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:la...
分类:移动开发   时间:2015-05-18 18:56:57    阅读次数:159
KMP算法(蛮力法)
1 #include 2 #include 3 void next(char T[],int nextArr[],int n); 4 5 int match(char S[],int tn,char T[],int sn,int nextArr[]); 6 7 int main(void){ ...
分类:编程语言   时间:2015-05-18 16:17:26    阅读次数:172
php实例-正则获取网站音频地址的实例(Listen to this 1)
主要用到了:file_get_contents();preg_match_all(); 这2个函数查看地址:http://git.oschina.net/xiaoz6/phpExample
分类:Web程序   时间:2015-05-18 14:17:15    阅读次数:125
JavaScript:查找/匹配
一、string中提供的 charAt()    返回在指定位置的字符。 示例:'abc'.charAt(1);    //"b" charCodeAt()    返回在指定的位置的字符的 Unicode 编码。 示例:'abc'.charCodeAt(1);    //98 indexOf(searchvalue,fromindex)    检索字符串,返回对应下标。 示例:'a...
分类:编程语言   时间:2015-05-18 09:05:38    阅读次数:115
括号匹配算法求解(用栈实现)
1.括号匹配算法 //括号匹配算法 public void pipei()throws Exception{ char temp,ch; int match; //记录匹配结果 BufferedRea...
分类:编程语言   时间:2015-05-16 19:59:48    阅读次数:119
php正则
1 PHP - 验证 E-mail 2 3 $email = test_input($_POST["email"]); 4 if (!preg_match("/([\w\-]+\@[\w\-]+\.[\w\-]+)/",$email)){ 5 $emailErr = "无效的 email 格...
分类:Web程序   时间:2015-05-16 11:46:48    阅读次数:107
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!