我想嘗試並獲得兩個textviews是佈局均勻像 -的LinearLayout佈局2個textviews
_______________________
|Tom Smith |
|Peter Johnson |
|lkallls sfd |
|_______________________|
但是我的是這樣的,我不想
_______________________
|Tom Smith |
|Peter Johnson |
|lkallls sfd |
|_______________________|
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:local="http://schemas.android.com/apk/res-auto"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<LinearLayout
android:orientation="horizontal"
android:minWidth="25px"
android:minHeight="25px"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/linearLayout9">
<TextView
android:text="qweqweqwe"
android:textAppearance="?android:attr/textAppearanceMedium"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_weight="1"
android:id="@+id/tvExVat" />
<TextView
android:text="qwe"
android:textAppearance="?android:attr/textAppearanceLarge"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_weight="1"
android:id="@+id/tvTurnOver" />
</LinearLayout>
<LinearLayout
android:orientation="horizontal"
android:minWidth="25px"
android:minHeight="25px"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/linearLayout1">
<TextView
android:text="aaaaaaaa"
android:textAppearance="?android:attr/textAppearanceMedium"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_weight="1"
android:id="@+id/tvTurnOverToday" />
<TextView
android:text="sdfsd"
android:textAppearance="?android:attr/textAppearanceMedium"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_weight="1"
android:id="@+id/vTurnOverMtd" />
</LinearLayout>
</LinearLayout>
我是不是確定我是否應該使用網格佈局或保持線性?
有人可以幫助我在正確的方向。