1
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:gravity="center"
android:orientation="vertical"
android:padding="6dp"
android:weightSum="1.0" >
<Button
android:id="@+id/btnCreateNewMonth"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_gravity="center_vertical|center"
android:layout_weight="0.5"
android:onClick="btnCreateNewMonth_clickHandler"
android:paddingBottom="5dp"
android:text="@string/btn_create_new_month" />
<Button
android:id="@+id/btnLoadExistingMonth"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_gravity="center_vertical|center"
android:layout_weight="0.5"
android:onClick="btnLoadExistingMonth_clickHandler"
android:text="@string/btn_load_existing_month" />
</LinearLayout>
填充對於所有面都應該是6dp。但在頂部,應用程序標題和佈局之間有一個更小的填充?!有什麼解決方案?佈局和應用標題之間的填充不同
謝謝。
如果您對上述答案滿意,請不要忘記接受它.. –