码迷,mamicode.com
首页 >  
搜索关键字:match    ( 5193个结果
(转)适配注意事项
一、关于布局适配1、不要使用绝对布局2、尽量使用match_parent 而不是fill_parent 。3、能够使用权重的地方尽量使用权重(android:layout_weight)4、如果是纯色背景,尽量使用android的shape 自定义。5、如果需要在特定分辨率下适配,可以在res目录上...
分类:其他好文   时间:2015-03-04 20:48:23    阅读次数:212
Git 初学解决错误
git init 产生的目录解释 error: src refspec master does not match any. 引起该错误的原因是,目录中没有文件,空目录是不能提交上去的 error: insufficient permission for adding an object to repository da...
分类:其他好文   时间:2015-03-04 19:35:08    阅读次数:119
Android学习——ViewPage实现多页面滑动效果
第一步<RelativeLayoutxmlns: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"tools:context=".MainActivity"> <android.support.v4..
分类:移动开发   时间:2015-03-04 06:24:04    阅读次数:185
WebView的简单入门
(1)使用WebView则需要在布局文件中使用相应的布局控件 布局文件如下: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_p...
分类:Web程序   时间:2015-03-03 20:43:23    阅读次数:214
建一个简单的用户界面
Create a Linear Layout(创建一个线性布局)注释:android:orientation="vertical"水平线性布局,"horizontal"垂直水平线性 match_parent:This value declares that the view should expan...
分类:其他好文   时间:2015-03-03 20:11:56    阅读次数:131
ruby regular Expressions
#!/usr/local/bin/ruby?-w def?show_regexp(a,re) ??if?a?=~?re ????"#{$`}<<#{$&}>>#{$‘}" ??else ????"no?match" ??end end puts?show_regexp(‘very?interesting‘,/t/) puts?show_re...
分类:其他好文   时间:2015-03-03 12:01:38    阅读次数:143
Android学习——HorizontalScollview水平滚动控件
<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_par...
分类:移动开发   时间:2015-03-03 11:42:19    阅读次数:137
Android倒计时
感谢极客学院的视频布局文件:<LinearLayoutxmlns: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" android:orientation="vertical" and..
分类:移动开发   时间:2015-03-02 19:16:05    阅读次数:209
判断当前设备是移动设备还是PC
var system={ userAgent:navigator.userAgent.toLowerCase(), name:function() { var bIsIpad = this.userAgent.match(/ipad/i) == "ipad"; var bIsIphoneOs = t...
分类:移动开发   时间:2015-03-02 16:40:23    阅读次数:174
正则表达式
boostregex_match 函数 regex_search 函数 regex_replace 函数 regex_format 函数 regex_grep 函数 regex_split 函数 RegEx 类regex_iterator 迭代器 regex_token_iterator 迭代器 字...
分类:其他好文   时间:2015-03-02 14:34:33    阅读次数:108
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!