上一页 1 ··· 6 7 8 9 10 11 12 下一页
  2010年11月27日
摘要: 1、Textview内容设置及显示不管什么情况,必须在xml中先声明TextView(可以不设置android:text) 可以在xml中或者在java中设置TextView文本内容,下面只说如何在java中设置, 1.1 TextView对象.setText();支持一下多态构造方法而TextView.setText不支持HTML TAG的输出,比如:text01.setText("<a href=\"http://www.baidu.com\">博客</a>");不会把这个地址做为链接显示,而是显示<a href=\&q 阅读全文
posted @ 2010-11-27 11:32 snowdrop 阅读(648) 评论(0) 推荐(0)
  2010年10月20日
摘要: 两种方法法一、在main.xml中实现代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--><?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"android:orientation="ver 阅读全文
posted @ 2010-10-20 11:25 snowdrop 阅读(41246) 评论(1) 推荐(0)
  2010年9月15日
摘要: 转自http://www.sudu.cn/info/html/edu/20060619/176242.html1 、关于搜索; 在Linux文件系统中,搜索概念有两种,一种是搜索文件名,另一种是在一个文件中搜索指定的内容;这两种搜索,我们都简要的介绍一下,但不一定极为专业。想到哪写到哪; 2、通过搜索文件名来查找文件; 有的弟兄经常会说文件都放在哪里了,我怎么查找文件?其实这里说的意思就是通过文件名来查找文件所处的位置;搜索文件名,我们常用的工具有find、locate、where等。目前我们简单的说一说这几个工具在文件系统中,通过查找文件名的方法来查看其所在的位置; 2.1 find... 阅读全文
posted @ 2010-09-15 18:50 snowdrop 阅读(9608) 评论(0) 推荐(0)
摘要: 想导入哪个程序,看程序里面的包名,看“这个包名“是什么,就在需要用到这个程序的地方直接import “这个包名“即可。不需要把他的上层的包再导入进来了。 阅读全文
posted @ 2010-09-15 18:18 snowdrop 阅读(337) 评论(0) 推荐(0)
摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->package com.test.san;import java.io.FileInputStream;import java.io.FileNotFoundException;import java.io.FileOutputStream;import java.io.IOException;public class Test { /* byte bs[]; public void rea 阅读全文
posted @ 2010-09-15 10:05 snowdrop 阅读(198) 评论(0) 推荐(0)
  2010年9月10日
摘要: 从网上看的别人的:在android的顶层目录里,运行下面的命令:source build/envsetup.sh运行命令后,就添加了很多命令到sh解释器,具体命令如下:-croot: Changes directory to the top ofthe tree.-m: Makes from the top of the tree.-mm: Builds all of the modules in thecurrent directory.-mmm: Builds all of the modules in thesupplied directories.-cgrep: Greps on al 阅读全文
posted @ 2010-09-10 17:01 snowdrop 阅读(1873) 评论(0) 推荐(0)
  2010年9月7日
摘要: 比如做一个输入框,可以判断是否在输入框里面输入了值:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->package com.java.test;publicclass T {publicstaticvoid main(String args[]) {String name=" hhhhh jjjj ";//经典判断字符串是否有值的方法if((name!=null)&&(name.trim().lengt 阅读全文
posted @ 2010-09-07 09:00 snowdrop 阅读(704) 评论(0) 推荐(0)
  2010年9月1日
摘要: 1、indexOf:返回指定子字符串在此字符串中第一次出现的索引值。(1)例子:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->package com.java.test;publicclass T {publicstaticvoid main(String args[]) {String s ="hahaheihei";String s1 ="ha";String s2 ="h" 阅读全文
posted @ 2010-09-01 09:08 snowdrop 阅读(274) 评论(0) 推荐(0)
摘要: void 方法中的return语句,跳出的范围是他所在的上层方法的块,不是整个类,也不是他的上一级括号例子:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->package com.java.test;publicclass T {int countNumber=4;publicvoid test(){if(countNumber >0){countNumber --;System.out.println(countNumber);r 阅读全文
posted @ 2010-09-01 09:04 snowdrop 阅读(4810) 评论(0) 推荐(0)
  2010年8月25日
摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->package com.java.test;publicclass Test {publicstaticvoid main(String[] args) {int a[] =newint[3];for(int i=0;i<a.length;i++){a[i]=i+1;}int b[]=newint[7];//System.arraycopy(a, 1, b, 0,2);System.a 阅读全文
posted @ 2010-08-25 15:01 snowdrop 阅读(137) 评论(0) 推荐(0)
上一页 1 ··· 6 7 8 9 10 11 12 下一页