1 2 6 12 13 18 19 listview的item,必须使用android:layout_width="match_parent" android:layout_height="match_parent"/>gravity才生效ImageButton...
分类:
其他好文 时间:
2014-12-25 20:26:49
阅读次数:
189
(1)
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="ma...
分类:
移动开发 时间:
2014-12-22 16:23:31
阅读次数:
192
RatingBar评分条系统UI控件main.xml文件写:<RatingBarandroid:id="@+id/ratingbar"android:layout_width="wrap_content"android:layout_height="wrap_content"android:layout_marginLeft="10dip"android:isIndicator="true"android:numStars="5"android:rating="5"></..
分类:
移动开发 时间:
2014-12-20 18:23:01
阅读次数:
221
android布局属性值fill_parent和match_parent - 泡在网上的日子在编写xml的时候,如果我们想让一个控件布满父容器,可以将layout_width和layout_height的值设置为fill_parent或者是match_parent,在高一点的版本中,谷歌建议为后者,...
分类:
移动开发 时间:
2014-12-18 20:15:28
阅读次数:
159
代码实现Layout android:layout_alignParentRight例如:android:id="@+id/account_option" android:layout_width="20px"android:layout_height="20px" android:focusabl...
分类:
移动开发 时间:
2014-12-18 16:47:28
阅读次数:
218
黑色的是divider的高度,怎么让他变透明啊?
布局如下: <ExpandableListView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="15dip"
...
分类:
其他好文 时间:
2014-12-18 11:57:56
阅读次数:
142
<TextView?android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textColor="@android:color/white"?
android:ellipsize="marquee"?
android:focusable="true"
android:singleL...
分类:
移动开发 时间:
2014-12-17 22:47:41
阅读次数:
185
android不同手机对于edittext光标显示样式不一,所以如果设置不同手机显示一样的效果呢,统一设置一个样式就可以了,示例代码如下: <EditText android:layout_width="fill_parent" android:layout_height="wrap...
分类:
移动开发 时间:
2014-12-15 12:20:19
阅读次数:
261
android:layout_width和android:layout_height常用这三个属性都用来适应视图的水平或垂直大小,一个以视图的内容或尺寸为基础的布局比精确地指定视图范围更加方便。fill_parent&match_parent:在Android2.2及以上版本中,fill_paren...
分类:
其他好文 时间:
2014-12-14 21:18:38
阅读次数:
232
main.xml 文件
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent" >
android:id="@+id/ll_week"
...
分类:
移动开发 时间:
2014-12-09 17:51:12
阅读次数:
308