<Button
android:id="@+id/bintent"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Activity"
tools:layout_editor_absoluteY="132dp"
tools:layout_editor_absoluteX="136dp" />
<Button
android:id="@+id/balram1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Alarm"
android:layout_centerInParent="true"
tools:layout_editor_absoluteY="231dp"
tools:layout_editor_absoluteX="136dp" />
`
所以我應該怎麼做才能顯示它的實際設備
你可以粘貼完整的XML? – fightingCoder
該屬性僅用於編輯器。 **工具:屬性從代碼中剝離,僅用於開發目的**。正如我上面看到的,它將絕對顯示'Button'的位置 –