在java文件中对控件设置背景图片layout.setBackgroundDrawable(getResources().getDrawable(R.drawable.bgimage))在设置中,通过发送广播对整个布局中的背景进行更改。menu_bg1.setOnClickListener(new
...
分类:
移动开发 时间:
2014-05-27 03:07:20
阅读次数:
402
jar -cvf news.war news打包成 war
包后复制到webapps下,Tomcat将会解压。
分类:
编程语言 时间:
2014-05-27 03:03:51
阅读次数:
243
gridview中设置item的高度。一、BaseAdapter中的getView中设置AbsListView.LayoutParams
param = new AbsListView.LayoutParams( android...
分类:
移动开发 时间:
2014-05-27 02:31:58
阅读次数:
280
法一:点击window->new
window,看看新的窗口是否能够显示代码区,可以就把旧的那个窗口关闭,成功法二:http://juhbgf.blog.163.com/blog/static/598317682013455118751/
分类:
系统相关 时间:
2014-05-27 01:30:57
阅读次数:
286
private void Time(int i) { Stopwatch sw = new
Stopwatch(); sw.Start(); Thread.Sleep(i); s...
分类:
其他好文 时间:
2014-05-27 01:15:43
阅读次数:
342
定义一个类来表示2D平面几何中的点。这个类实例化的对象拥有一个名为r()的方法,用来计算该点到原点的距离function Point(x,y){ this.x
= x; this.y = y;}var p = new Point(1,1);Point.prototype.r = func...
分类:
编程语言 时间:
2014-05-24 07:36:10
阅读次数:
235
1.如何将java.util.Date转化为java.sql.Date? 转化:
java.sql.Date sd; java.util.Date ud; //initialize the ud such as ud = new
java.util.Date(); sd = ...
分类:
数据库 时间:
2014-05-24 06:29:26
阅读次数:
311
class 点面关系{static void Main(string[]
args){//Vector2D point1 = new Vector2D(39.909209536859834,
116.3225715637207);//inVector2D point1 = new Vector2D(...
分类:
其他好文 时间:
2014-05-24 06:26:21
阅读次数:
379
Remove Duplicates from Sorted Array IGiven a
sorted array, remove the duplicates in place such that each element appear only
once and return the new l...
分类:
其他好文 时间:
2014-05-19 12:10:41
阅读次数:
329
首先是静态代理: 1 public class Test1 { 2 3 public static
void main(String[] args) { 4 IA a = new APoxy(new A()); 5 a.doJob(); 6 } 7 ...
分类:
编程语言 时间:
2014-05-19 12:01:39
阅读次数:
302