如何使布局与普通屏幕和平板电脑屏幕相同?我可以更改为具有相同空间和 peding 的线性布局吗?请帮助我是新人:) xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
家庭代码是
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/backr"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context=".FreeDENTAL" >
<Button
android:id="@+id/buttonlec"
android:layout_width="fill_parent"
android:layout_height="100dp"
android:layout_alignBottom="@+id/buttonbook"
android:layout_alignLeft="@+id/buttonbook"
android:layout_marginBottom="47dp"
android:background="@drawable/cooltext1218143078" />
<Button
android:id="@+id/buttonbook"
android:layout_width="fill_parent"
android:layout_height="50dp"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:layout_marginTop="158dp"
android:background="@drawable/cooltext1218138491" />
<Button
android:id="@+id/button1"
style="?android:attr/buttonStyleSmall"
android:layout_width="wrap_content"
android:layout_height="50dp"
android:layout_alignLeft="@+id/buttonbook"
android:layout_alignRight="@+id/buttonbook"
android:layout_below="@+id/buttonlec"
android:layout_marginTop="18dp"
android:background="@drawable/cooltext1218134039" />
<Button
android:id="@+id/button2"
style="?android:attr/buttonStyleSmall"
android:layout_width="160dp"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/button1"
android:layout_below="@+id/button1"
android:layout_marginTop="32dp"
android:background="@drawable/cooltext1218152696" />
<Button
android:id="@+id/button4"
style="?android:attr/buttonStyleSmall"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/button2"
android:layout_alignRight="@+id/button2"
android:layout_below="@+id/button2"
android:background="@drawable/tips"
/>
<Button
android:id="@+id/button5"
style="?android:attr/buttonStyleSmall"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBaseline="@+id/button2"
android:layout_alignBottom="@+id/button2"
android:layout_alignLeft="@+id/button3"
android:layout_alignRight="@+id/button1"
android:background="@drawable/news" />
<Button
android:id="@+id/button3"
style="?android:attr/buttonStyleSmall"
android:layout_width="125dp"
android:layout_height="wrap_content"
android:layout_alignBottom="@+id/button4"
android:layout_alignRight="@+id/button1"
android:layout_below="@+id/button2"
android:background="@drawable/cooltext1218061123" />
</RelativeLayout>