2012年7月24日
摘要: 可编程的配置方式-1如果在配置cfg.xml的时候,不想在里面配置hbm.xml怎么办呢?可在程序里使用可编程的配置方式,也就是使用程序来指定在cfg.xml里面的配置信息,不推荐这种方式。如下:Configuration cfg = new Configuration() .addResource("Item.hbm.xml") .addResource("Bid.hbm.xml");一个替代方法(有时是更好选择)是,指定被映射的类,让Hibernate帮你寻找映射定义文件:Configuration cfg = new Configuration() 阅读全文
posted @ 2012-07-24 21:14 kaitao1987 阅读(678) 评论(0) 推荐(0) 编辑
摘要: 基本概念常用Widgets和布局常用的WidgetsTextView、Button、 EditText、CheckBox、RadioGroup、RadioButton、Spinner、ProgressBar、ImageView、Date Picker、Time Picker、Rating Bar、Gallery 、Auto Complete ……常用的LayoutLinear Layout、Relative Layout、Table Layout、Grid View、Tab Layout、List ViewAndroid常用的Widgets的属性大同小异,这里以TextView为例来看一看1: 阅读全文
posted @ 2012-07-24 19:33 kaitao1987 阅读(926) 评论(0) 推荐(0) 编辑