android 按钮宽度按比例
2013-10-22 11:01
302 查看
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="horizontal" >
<Button
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:layout_weight="1"
android:text="1" />
<Button
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:layout_weight="1"
android:text="1" />
<Button
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:layout_weight="1"
android:text="1" />
</LinearLayout>
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="horizontal" >
<Button
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:layout_weight="1"
android:text="1" />
<Button
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:layout_weight="1"
android:text="1" />
<Button
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:layout_weight="1"
android:text="1" />
</LinearLayout>
相关文章推荐
- Android 设置ImageView宽度固定,其高度按比例缩放适应
- android中不同宽度大小比例
- 【android】两个按钮的宽度各占屏幕的一半
- Android LinearLayout中元素按比例分配宽度
- Android 自定义imageview 图片宽度固定大小高度按比例自适应
- Android实现图片宽度100%ImageView宽度且高度按比例自动伸缩
- android根据屏幕宽度,按比例缩放图片
- Android 自定义imageview 图片高度固定大小宽度按比例自适应
- Android ImageView图片代码实现按屏幕宽度等比例缩放
- android布局——按钮等宽比例
- 【android】两个按钮的宽度各占屏幕的一半
- Android 获取按钮Button的高度、宽度、坐标
- Android 百度最新地图隐藏 放大缩小按钮、指南针、缩放比例的方法
- Android实现图片宽度100%ImageView宽度且高度按比例自动伸缩
- Android 获取按钮Button的高度、宽度、坐标
- android 根据固定的宽度或高度等比例缩放图片
- 【Android】自定义ImageView高度自适应,宽度成比例缩放
- Android 设置ImageView宽度固定,其高度按比例缩放适应
- android 图片宽度填满屏幕宽度,图片高度根据图片的比例自动匹配,这样就不会拉伸图片
- android创建固定宽度,高度的图片,比例缩放