[代码]Button UI设计
Button的位置摆放和各种控件位置摆放, 用table来完成
<TableLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:id="@+id/MainScreenTable"
android:background="@drawable/splashblank">
<View
android:layout_height="100px"
android:background="#00000000" />
<TableRow>
<Button
android:text="CAMERA"
android:width="240px"
android:height="80px"
android:clickable="true"
android:typeface="normal"
android:visibility="visible"
android:layout_marginLeft="20px"
android:layout_marginRight="220px"
android:id="@+id/CameraButton">
</Button>
</TableRow>
<View
android:layout_height="330px"
android:background="#00000000" />
<TableRow>
<Button android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="GALLERY"
android:width="80px"
android:height="80px"
android:clickable="true"
android:typeface="normal"
android:visibility="visible"
android:layout_marginLeft="80px"
android:layout_marginRight="320px"
android:id="@+id/GalleryButton">
</Button>
</TableRow>
<View
android:layout_height="20px"
android:background="#00000000" />
</TableLayout>
浙公网安备 33010602011771号