萌新,求大神指导。
才学Android一个星期,做计算器界面0不知道怎么对齐上面按钮
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="2">
<Button
android:id="@+id/bt1"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/arithmetic_shape"
android:text="AC"
android:textSize="35dp"
android:textColor="#000000"
android:layout_weight="1"
android:layout_margin="8dp"/>
<Button
android:id="@+id/bt2"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/arithmetic_shape"
android:text="+/-"
android:textSize="30dp"
android:textColor="#000000"
android:layout_weight="1"
android:layout_margin="8dp"/>
<Button
android:id="@+id/bt3"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/arithmetic_shape"
android:text="%"
android:textSize="50dp"
android:textColor="#000000"
android:layout_weight="1"
android:layout_margin="8dp"/>
<Button
android:id="@+id/bt4"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@drawable/operator_shape"
android:text="÷"
android:textColor="#ffff"
android:textSize="50dp"
android:layout_margin="8dp"/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="2">
<Button
android:id="@+id/bt5"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/figure_shape"
android:text="7"
android:textSize="45dp"
android:textColor="#ffff"
android:layout_weight="1"
android:layout_margin="8dp"/>
<Button
android:id="@+id/bt6"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="8dp"
android:layout_weight="1"
android:background="@drawable/figure_shape"
android:text="8"
android:textColor="#ffff"
android:textSize="45dp" />
<Button
android:id="@+id/bt7"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/figure_shape"
android:text="9"
android:textSize="45dp"
android:textColor="#ffff"
android:layout_weight="1"
android:layout_margin="8dp"/>
<Button
android:id="@+id/bt8"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@drawable/operator_shape"
android:text="×"
an