在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
body { font-family:Verdana; font-size:14px;
margin:0;} #container {margin:0 auto; width:100%;}定义网页主体 字体是 Verdana 字体大小是 14px
网页主体距离浏览器边框距离为0、又定义了一个类(id...
分类:
Web程序 时间:
2014-05-12 20:43:32
阅读次数:
325
1. Auto generation of
columns最简单的方法莫过于让DataGrid根据数据源中的字段自动生成列了:根据实体类的公共属性,
能够自动生成四种类型的数据列,对应关系如下:TextBox columns for string values;CheckBox columns fo...
分类:
其他好文 时间:
2014-05-12 19:49:17
阅读次数:
519
.box{overflow:auto;zoom:1;}.box-in{display:inline-block;vertical-align:top;}.border-box{-webkit-box-sizing:
border-box;-moz-box-sizing: border-box;box...
分类:
Web程序 时间:
2014-05-12 06:14:48
阅读次数:
460
1、通过系统服务来获得,这是最标准的:LayoutInflater inflater =
(LayoutInflater)
context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);2、通过LayoutInflater的静态方法获得:Layo...
分类:
移动开发 时间:
2014-05-12 05:25:30
阅读次数:
389
首先,给Actionbar添加返回图标:代码: @Override protected
void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);
setContentView(R.layout.s.....
分类:
移动开发 时间:
2014-05-12 01:38:48
阅读次数:
379
1、成员变量成员变量可以是任何类型,如基本数据类型、引用、另一个类的对象或指针、自身类的引用或指针,但不能是自身类的对象;成员变量不能指定为auto、register、extern
存储类型。1.1、普通成员变量普通成员变量是属于对象的,其生命周期就是对象的生命周期,只能通过构造函数的初始化列表进行...
分类:
编程语言 时间:
2014-05-11 23:34:34
阅读次数:
485
public class ThreadTest implements Callable {
public String call() throws Exception {
// TODO Auto-generated method stub
wait(10000);
return "hello";
}
}调用代码:
public static void main(Stri...
分类:
编程语言 时间:
2014-05-11 21:27:24
阅读次数:
533
效果图:
此程序主要的知识点是:SimpleAdapter本身是不支持网络图片的, 如果在Map.put(a,b)中 b为一个Bitmap,程序不会报红色字体,而是在控制台输出绿色的字体,如下
05-10 15:46:45.474: I/System.out(846): resolveUri failed on bad bitmap uri: android.graph...
分类:
移动开发 时间:
2014-05-11 20:35:03
阅读次数:
506
第一步:首先是Widget的定义声明:
在资源文件下的xml文件夹中建立文件example_appwidget_info.xml:
<appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android"
android:initialLayout="@layout/process_widget"
...
分类:
移动开发 时间:
2014-05-11 04:22:25
阅读次数:
503