How do I block all fields of my activity? I tried using android:editable="false" and android:inputType="none" and it didn't solve my problem.
I would like no field to be possible to change, just reading.
The fields are EditText and Spinner;
<TextView
android:id="@+id/textId_loan"
android:layout_width="match_parent"
android:layout_height="33dp"
android:text="ID loan"
android:textSize="18sp"
tools:layout_editor_absoluteX="0dp"
tools:layout_editor_absoluteY="39dp" />
<Spinner
android:id="@+id/spinnerId_owner"
android:layout_width="match_parent"
android:layout_height="34dp"
android:contentDescription="Checkbox to choose the owner of the book from which to lend the book." />
<Spinner
android:id="@+id/spinnerId_book"
android:layout_width="match_parent"
android:layout_height="33dp"
android:contentDescription="Checkbox to choose the book from which to borrow." />
<EditText
android:id="@+id/editLoan_date"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:contentDescription="Book loan date."
android:hint="Book loan date"
android:inputType="date" />
<EditText
android:id="@+id/editDate_return"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:contentDescription="Book return date."
android:ems="10"
android:hint="Book return date"
android:inputType="date"/>