一、关于布局适配1、不要使用绝对布局2、尽量使用match_parent 而不是fill_parent 。3、能够使用权重的地方尽量使用权重(android:layout_weight)4、如果是纯色背景,尽量使用android的shape 自定义。5、如果需要在特定分辨率下适配,可以在res目录上...
分类:
其他好文 时间:
2015-03-04 20:48:23
阅读次数:
212
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
第一步<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
(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
#!/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
<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
感谢极客学院的视频布局文件:<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
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