文本框:存放文本的<TextViewandroid:id="@+id/textView1"//控件的身份android:layout_width="wrap_content"android:layout_height="wrap_content"//wrap_content适应内容//match_parent填充容器//fill_parent跟match_parent一样的//直接使用整数单位dpandroid:layout_align..
分类:
移动开发 时间:
2015-05-24 06:40:31
阅读次数:
261
1、对于这个案例来说:<?xmlversion="1.0"encoding="utf-8"?><LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android"android:layout_width="match_parent"android:layout_height="match_parent"android:orientation="vertical"android:weightSum="..
分类:
移动开发 时间:
2015-05-23 06:40:43
阅读次数:
187
33 xmlns:internal="http://schemas.android.com/apk/prv/res/android"34 android:id="@+id/swn_expanded_hitspace"35 android:layout_width="match_parent"36 a...
分类:
其他好文 时间:
2015-05-22 19:01:45
阅读次数:
443
1.Array 属性: constructor 所建立对象的函数参考 prototype 能够为对象加入的属性和方法 index For an array created by a regularexpression match, the zero-based index of the match ...
分类:
Web程序 时间:
2015-05-22 18:41:02
阅读次数:
117
1、php 字符串截取函数2、php取得当前时间函数3、php 字符串长度函数4、几种php 删除数组元素方法5、php中var_dump()函数的详解说明6、PHP preg_match正则表达式的使用7、php 判断文件或目录是否存在8、php get_magic_quotes_gpc()函数用...
分类:
Web程序 时间:
2015-05-22 12:55:59
阅读次数:
149
android中常见空间的使用方法1.TextViewTextView主要用于在界面上显示一段文本信息,如下面代码所示: 其中,在TextView标签中:android:id 给当前控件定义了一个唯一标识符;android:layout_width 指定了控件的宽度,其中match_paren...
分类:
移动开发 时间:
2015-05-22 00:23:01
阅读次数:
218
function isWeiXin(){ var ua = window.navigator.userAgent.toLowerCase(); if(ua.match(/MicroMessenger/i) == 'micromessenger' || ua.match(/_SQ_/i) ...
分类:
微信 时间:
2015-05-22 00:00:07
阅读次数:
373
function isWeiXin(){ var ua = window.navigator.userAgent.toLowerCase(); if(ua.match(/MicroMessenger/i) == 'micromessenger' || ua.match(/_SQ_/i...
分类:
微信 时间:
2015-05-21 12:19:37
阅读次数:
296
接上一篇的日志格式,我们已经筛选出了所有的IP地址、做法稍有不同。nginx正则把IP写进文件里、还是那句话数据太大我们不能写进列表里边:defgetIP():
f=open(log,‘r‘)
IPdic={}
forloglineinf.readlines():
matchs=p.match(logline)
ifmatchs!=None:
allGroups=matchs.groups(..
分类:
其他好文 时间:
2015-05-20 18:53:07
阅读次数:
181
Android的布局风格 布局应该从外往里写
1.LinearLayout(线性布局)
xml version="1.0" encoding="utf-8"?>
LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"...
分类:
移动开发 时间:
2015-05-20 16:30:25
阅读次数:
218