<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res/com.example.myviewdemo"
android:layout_width="match_parent"
android:l...
分类:
其他好文 时间:
2015-01-30 10:47:54
阅读次数:
99
StackView的使用效果:
使用方法:
在Xml布局文件中使用:<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent...
分类:
其他好文 时间:
2015-01-29 14:37:30
阅读次数:
138
function GetQueryString(name) { var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i"); var r = window.location.search.substr(1).match(reg)...
分类:
Web程序 时间:
2015-01-29 11:56:09
阅读次数:
198
function GetQueryString(name) { var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i"); var r = window.location.search.substr(1).match(reg)...
分类:
移动开发 时间:
2015-01-29 11:49:25
阅读次数:
195
题目链接:Regular Expression Matching
Implement regular expression matching with support for '.' and '*'.
'.' Matches any single character.
'*' Matches zero or more of the preceding element.
The match...
分类:
其他好文 时间:
2015-01-28 21:29:00
阅读次数:
318
查看一个web应用的时候查看源代码无意发现的,记录一下,万能什么时候能用得着呢!function isMobile(){ var mobile = navigator.userAgent.match(/iphone|android|phone|mobile|wap|netfront|x11|j...
分类:
移动开发 时间:
2015-01-28 19:13:15
阅读次数:
180
安装了最新的ATD 18之后,新加的Lint Warnings插件会给我们检测出许多xml布局中不当的地方,例如:
Use a layout_height of 0dip instead of fill_parent for better performance
什么意思呢?举个简单的例子:
这是一个垂直布局,上下的线性布局各占高度50.0dp,中间的的TextView设...
分类:
其他好文 时间:
2015-01-28 13:09:50
阅读次数:
1974
Notes from C++ PrimerInitializationWhen copy a container to another, the containertype and element type must be match at the same time:vector ivec;vec...
分类:
其他好文 时间:
2015-01-28 12:57:37
阅读次数:
157
智者创造机会,强者把握机会,弱者等待机会。
本讲内容:定时器
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_par...
分类:
其他好文 时间:
2015-01-28 09:48:53
阅读次数:
162
主布局
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="ma...
分类:
移动开发 时间:
2015-01-27 23:32:26
阅读次数:
211