这个问题可能会提前问,但我真的不知道如何搜索它也。对齐文本同样
我想达到的是这样的。
city : some city
state : some state
pincode : some pin code
phone no : some phone number
城市:是一个文本视图和一些城市是第二个文本视图。两者都处于线性布局。
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TextView android:text="City : "
android:textSize="15sp"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
/>
<TextView android:text="Some city"
android:textSize="15sp"
android:id="@+id/lblPermanentCity"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
/>
</LinearLayout>
任何帮助将感激
我是否需要将width属性更改为所有父线性布局的match_parent? –
我不好意思我改变了高度属性 –
感谢您的正确答案:) –