I have started learning Android Studio and Kotlin, and I am making an application. Previously, I was having a problem where an activity was not loading. The problem was fixed by cleaning the code and restarting the application. But now, as I put an editText
in the activity, there are very few properties shown for the editText and many are absent (for example- gravity, textColor and hint).
here's the XML:
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:id="@+id/VSAC_page_heading"
android:layout_width="376dp"
android:layout_height="83dp"
android:layout_marginStart="16dp"
android:layout_marginTop="24dp"
android:layout_marginEnd="16dp"
android:gravity="center"
android:text="Volume and Surface Area of Cubes and Cuboids"
android:textColor="#673AB7"
android:textSize="26sp"
android:textStyle="bold|italic"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<EditText
android:id="@+id/editText2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:ems="10"
android:inputType="textPersonName"
android:text="Name"
tools:layout_editor_absoluteX="113dp"
tools:layout_editor_absoluteY="150dp" />
</androidx.constraintlayout.widget.ConstraintLayout>