1
エミュレータ画面とactivity_main.xml画面が異なります。私はポジションを変更することはできません。どうすれば修正できますか?おかげエミュレータ画面の問題
エミュレータ画面とactivity_main.xml画面が異なります。私はポジションを変更することはできません。どうすれば修正できますか?おかげエミュレータ画面の問題
はあなたconstraint layout
を削除し、代わりにRelative Layout
を使用してみてください。
または、このコードをXMLレイアウトファイルに挿入するだけです。
<?xml version="1.0" encoding="utf-8"?>
<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"
tools:context="com.ali.haris.yourgoldennumber.Activites.AboutUs">
<EditText
android:id="@+id/edittext"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:padding="10dp"
android:text="Ruhi Koyun Android App" />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/edittext"
android:layout_centerInParent="true"
android:gravity="center"
android:text="Click Me" />
</RelativeLayout>
どうすれば削除できますか? – atomant
レイアウトファイルでは、上部と下部に '& android.support.constraint.ConstraintLayout>'タグが表示され、それを削除して '& RelativeLayout> 'です。 –
@atomant更新された回答 –