![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
android
文章平均质量分 82
徐行而致--浅唱而归
梦想一旦坚持了就停不下来
展开
-
android:layout_gravity和android:gravity
1.首先来看看android:layout_gravity和android:gravity的使用区别。android:gravity:这个是针对控件里的元素来说的,用来控制元素在该控件里的显示位置。例如,在一个Button按钮控件中设置如下两个属性,android:gravity="left"和android:text="提交",这时Button上的文字“提交”将会位于Butt转载 2014-01-19 14:38:05 · 575 阅读 · 0 评论 -
android LinearLayout布局中layout_weight的使用(一)
在网上看了一些对Layout_weight的讲解,有些说的比较片面,只列举了一种情况,然后自己通过实验和一些比较好的文章总结了一下,特此记录下来,以备以后所用。Layout_weight是线性布局,也就是LinearLayout里面用到的,下面通过实验来看这个Layout_weight的特性。1.当控件的属性android:layout_width="fill_parent"时,布局文件如下:转载 2014-01-19 16:08:01 · 912 阅读 · 0 评论 -
android LinearLayout布局中layout_weight的使用(二)
一、LinearLayout内的控件的layout_width设置为"wrap_content",请看一下xml配置: LinearLayout android:orientation="horizontal" android:layout_width="fill_parent" android:lay转载 2014-01-19 16:13:35 · 770 阅读 · 0 评论 -
linearlayout布局中layout_weight使用问题
xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content"> and原创 2014-01-19 16:25:17 · 857 阅读 · 0 评论