安卓中实现两端对齐,中间fill_parent的方法
16lz
2021-01-24
安卓中实现两端对齐,中间fill_parent的方法
<?xml version="1.0″ encoding="utf-8″?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="horizontal" > <Button android:id="@+id/Button01" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="button01" > </Button> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1" /> <Button android:id="@+id/Button02" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="button02" > </Button> </LinearLayout>
更多相关文章
- Android绘制流程窗口启动流程分析(下)
- Gradle DSL method not found: 'android()错误的解决方法
- android 可自定义大小和位置的Dialog
- Android引入外部字体更改APP字体
- Android开发之ListView 适配器(Adapter)优化
- Android(安卓)ListView复用机制详解
- android与C# WebService基于ksoap通信(Android篇)
- Android实现信号强度监听的方法
- 禁止应用获取手机信息