摘要: 在画布局的时候发现我的TextView不能自动换行,超出了屏幕也不换原因如下: TableLayout里的TableRow里的TextView自动换行会出现问题<TableLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:stretchColumns="1" android:shrinkColumns="1">加一个android:shrinkColumns 之后问题解决 阅读全文
posted @ 2011-10-31 18:57 陈鹏C 阅读(6311) 评论(1) 推荐(1) 编辑
摘要: 画了一条白线View Code 画了一条白线<View android:layout_height="1px" android:background="#FFFFFF" android:layout_width="fill_parent"></View> 阅读全文
posted @ 2011-10-31 18:53 陈鹏C 阅读(4624) 评论(0) 推荐(0) 编辑
摘要: 在AndroidManifest.xml中加入这句话即可<activity android:name=".AFI02_Home" android:label="@string/app_name" android:screenOrientation="portrait"></activity>landscape是横向,portrait是纵向android中每次屏幕方向切换时都会重启Activity,所以应该在Activity销毁前保存当前活动的状态,在Activity再次Create的时候载入配置要避免在转屏时重 阅读全文
posted @ 2011-10-31 10:24 陈鹏C 阅读(250) 评论(0) 推荐(0) 编辑