使用HttpClient方式请求网络
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
andr...
分类:
移动开发 时间:
2016-04-29 18:55:34
阅读次数:
293
样式效果
1、创建底部的布局 layout_footer.xml
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
...
分类:
移动开发 时间:
2016-04-29 17:23:11
阅读次数:
231
1.下拉列表Spinner
1.1.activity_main.xml
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_par...
分类:
其他好文 时间:
2016-04-29 15:18:38
阅读次数:
407
match 方法 使用正则表达式模式对字符串执行查找,并将包含查找的结果作为数组返回。 stringObj.match(rgExp) 参数 stringObj 必选项。对其进行查找的 String 对象或字符串文字。 rgExp 必选项。为包含正则表达式模式和可用标志的正则表达式对象。也可以是包含正 ...
分类:
Web程序 时间:
2016-04-29 14:26:10
阅读次数:
236
Technorati 标签: elastic search,query,commands 基本查询:最简单的查询方式 query:{“term”:{“title”:“crime”}} terms:目标列包含指定词 match:会把输入的“短语”进行分解成词 bool match:match分解成多个... ...
分类:
其他好文 时间:
2016-04-29 00:15:58
阅读次数:
408
之前一直没有区别好 fill_parent 和 match_parent, 其实,在 api 8 以后,两者的作用几乎一样,都是填充控件 在这里延伸到android 的版本变化导致方法的变化问题 我对于android l、android m 、 android n之间的演变,感觉还不算很大。 我接下 ...
分类:
其他好文 时间:
2016-04-29 00:01:52
阅读次数:
385
1、android:layout_height属性: 必须将ListView的布局高度属性设置为非“wrap_content”(可以是“match_parent / fill_parent / 400dp等绝对数值”),如果ListView的布局高度为“wrap_content”,那么getView ...
分类:
其他好文 时间:
2016-04-28 21:21:12
阅读次数:
208
#/usr/bin/env python#coding:utf-8 import reimport MySQLdbimport time while True: start_time = raw_input("\033[33m输入开始日期:\033[0m") m = re.match('\d{4}- ...
分类:
其他好文 时间:
2016-04-27 20:17:57
阅读次数:
173
ConversationFragment的布局:
首先我们找到我们要写的Fragment布局文件。
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_p...
分类:
移动开发 时间:
2016-04-26 21:14:23
阅读次数:
187