0

我创建了一个应用程序,我所有的按钮都在绝对布局中。我发现当我在不同的屏幕上使用应用程序时,布局不合适。谁能帮我将绝对布局转换为相对布局

<AbsoluteLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:focusable="true"
android:focusableInTouchMode="true"
tools:context=".MainActivity" >

<Button
    android:layout_width="90dp"
    android:layout_height="90dp"
    android:text="@string/dot"
    android:textSize="14pt"
    android:background="@drawable/bg_button"
    android:textColor="#555555"
    android:id="@+id/point"
    android:layout_x="-3dp"
    android:layout_y="426dp" />
4

0 回答 0