(一)android:layout_weight 在不同情况下的意义。 当android:layout_width 和android:layout_height都不为0的时候,android:layout_weight代表的是控件渲染的优先级,值越大,渲染的优先级越低。默认android:layo....
分类:
其他好文 时间:
2014-11-07 00:50:46
阅读次数:
332
主界面布局(知识点:GridView) mainscreen.xml: http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:background...
分类:
移动开发 时间:
2014-11-04 17:34:29
阅读次数:
227
Android - 直线(line)画法本文地址: http://blog.csdn.net/caroline_wendy横线(horizontal line)<View
android:layout_width="fill_parent"
android:layout_height="1dp"
android:background="@androi...
分类:
移动开发 时间:
2014-10-30 21:05:50
阅读次数:
218
(转自:http://www.open-open.com/lib/view/open1378257991687.html)123456scaleType="centerInside"android:layout_width="60dip"android:layout_height="60dip"an...
分类:
移动开发 时间:
2014-10-23 12:09:03
阅读次数:
203
这两个是按钮开关,监听CheckedChangeListener
toggle_layout.xml:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match...
分类:
移动开发 时间:
2014-10-20 11:46:59
阅读次数:
245
android:gravity:设置textview中的字体居中显示
android:id="@+id/tv_audit_title"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:backgr...
分类:
移动开发 时间:
2014-10-17 15:35:09
阅读次数:
243
加一个红色的边框:
textView的XML:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orienta...
分类:
移动开发 时间:
2014-10-17 13:54:32
阅读次数:
275
效果:
1.自定义titleBar的布局。
android:layout_width="match_parent"
android:layout_height="match_parent" >
android:id="@+id/tv_SongsCount"
android:layout_widt...
分类:
其他好文 时间:
2014-10-17 13:52:21
阅读次数:
203
效果:
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:shrinkColumns="0" >
android:text="审核类型:"
...
分类:
其他好文 时间:
2014-10-17 12:01:16
阅读次数:
117
Android的RelativeLayout布局的layout_height属性设置为wrap_content时的坑:此坑出现的条件:1.RelativeLayout布局的layout_height属性设置为wrap_content2.某“居中View”设置为layout_centerX(layou...
分类:
移动开发 时间:
2014-10-16 21:27:13
阅读次数:
400