一个Android开发中常用对话框的小例子,共有五种对话框:普通弹出对话框,单选对话框,多选对话框,输入对话框及进度条样式对话框:
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_paren...
分类:
移动开发 时间:
2015-03-20 16:35:30
阅读次数:
171
<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"
tools:context=".MainActivity"&g..
分类:
其他好文 时间:
2015-03-20 14:34:38
阅读次数:
174
这几天一直在忙着开发一个新项目,写代码写得昏天黑地的,今天抽了几分钟时间写了下极简单的例子,改天有时间再写啦!
布局文件很简单,就一个Button:
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/LinearLayout1"
android:layout_width="match_...
分类:
其他好文 时间:
2015-03-20 14:33:27
阅读次数:
115
// http://www.a.com/db/bb4fgzyey?a=d%20ABC&r=efkk&rl=dfv3function query(param) { var regx = eval("/" + param + "=\\S*/gi"); var match = regx.exe...
分类:
Web程序 时间:
2015-03-20 12:49:38
阅读次数:
128
自定义的一个ListView放到布局文件中,设置width=match_parent,height=wrap_content。设置数据后执行notifyDatasetChanged。可以确定数据发生了变化,但是没有进入到getView中刷新数据。经过尝试,设置height为match_parent之...
分类:
其他好文 时间:
2015-03-20 12:20:07
阅读次数:
118
例一:匹配长度为1-15的域名#-*-encoding:utf-8-*-import reregex=re.compile('^www[.][a-z]{1,15}[.](com|org)')m1=re.match(regex, 'www.baidu.com')#m2=re.match(regex, ...
分类:
编程语言 时间:
2015-03-19 09:54:44
阅读次数:
135
#include
#include
#include
using namespace std;
const int maxn = 210;
int match[maxn];
int line[maxn][maxn];
int vis[maxn];
int N , M;
int find(int start)
{
for(int i = 1;i
{
...
分类:
其他好文 时间:
2015-03-17 20:20:40
阅读次数:
135
#include
#include
#include
using namespace std;
const int maxn = 310;
int match[maxn];
int line[maxn][maxn];
int vis[maxn];
int N , P;
int find(int start)
{
for(int i = 1;i
{
...
分类:
其他好文 时间:
2015-03-17 20:19:15
阅读次数:
124
elixir 模式匹配刚接触还是有点不习惯,在Elixir里,=操作符被称为匹配操作符iex(29)> x = 11iex(30)> x1iex(31)> 1 = x1iex(32)> 2 = x** (MatchError) no match of right hand side value: 1...
分类:
其他好文 时间:
2015-03-17 20:09:58
阅读次数:
120
//判断浏览器版本function CheckBrowser() { var sys = {}; var ua = navigator.userAgent.toLowerCase(); if (ua.match(/msie/) != null || ua.match(/tr...
分类:
其他好文 时间:
2015-03-17 17:48:12
阅读次数:
252