Normally, when the Directory Server conducts a
search, the server looks through the entire entry for a match, throughout the
entire directory. For lar...
分类:
其他好文 时间:
2014-05-20 01:23:35
阅读次数:
277
public class MainActivity extends Activity {
private ImageView iv;
float startX = 0;
float startY = 0;
//获得一个可以被bitmap
Bitmap bitmap = Bitmap.createBitmap(400, 400,Bitmap.Config.ARGB_8888);
//创...
分类:
移动开发 时间:
2014-05-18 15:54:33
阅读次数:
318
比较两个字符串1. 题目:比较字符串是否相等2.
要求:写一程序,比较两个字符串String1和String2所含的字符是否相同;若相同则显示’Match’,否则显示’NoMatch’。输入两个字符串之后,将串操作所必须的寄存器等参数设置好,然后使用串操作指令进行从头到尾的比较,两个字符串相等的条件...
分类:
编程语言 时间:
2014-05-17 23:40:34
阅读次数:
409
string strPatten = "(src|href)=(.*?)[>| ]";
string strContent = " "; Regex reg = new Regex(strPatten); foreach (Match match
in...
分类:
其他好文 时间:
2014-05-16 20:00:47
阅读次数:
266
官方demo见
https://github.com/square/otto注意自己该编译版本为2.3以上,默认的1.6不支持match_parent属性,导致布局文件出错。另外需要手动添加android-support-v4和otto到自己的libs文件夹。主要代码逻辑:1,在主页面点clear按...
分类:
移动开发 时间:
2014-05-16 19:19:36
阅读次数:
334
web.config中:节格式: //I.Windows: 使用IIS验证方式 II.Forms:
使用基于窗体的验证方式 III.Passport: 采用Passport cookie验证模式 IV.None: 不采用任何验证方式 //I.Name:
指定完成身份验证的Http cookie的名....
分类:
其他好文 时间:
2014-05-15 17:12:14
阅读次数:
279
Blocked a frame with origin "null" from accessing a frame with origin "null". Protocols, domains, and ports must match....
分类:
其他好文 时间:
2014-05-14 19:30:36
阅读次数:
292
三个属性都用来适应视图的水平或垂直大小,一个以视图的内容或尺寸为基础的布局比精确地指定视图范围更加方便。1)fill_parent设置一个构件的布局为fill_parent将强制性地使构件扩展,以填充布局单元内尽可能多的空间。这跟Windows控件的dockstyle属性大体一致。设置一个顶部布局或...
分类:
移动开发 时间:
2014-05-14 07:02:27
阅读次数:
424
1.电话拨号器:
activity_main.xml
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
a...
分类:
移动开发 时间:
2014-05-13 15:08:57
阅读次数:
508
在include标签中不能省略
layout_width或者layout_height否则设置layout_weight就会无效。如下设置即可
android:id="@+id/linearLayout1"
android:layout_width="match_parent"
android:layout_height="w...
分类:
其他好文 时间:
2014-05-13 07:12:47
阅读次数:
389