This repository was archived by the owner on Jul 10, 2025. It is now read-only.

Description
I have layout (id: actionBar) included for action bar in xml file name, and I have edit text name title. When the fragment is resumed the action bar title value is changed to title value of editext.
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/titleLayout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="@dimen/standard_margin"
android:hint="@string/title"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/containerAddItem">
<com.google.android.material.textfield.TextInputEditText
android:id="@+id/title"
style="@style/Theme_EditText"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:fontFamily="@font/futuramedium"
android:singleLine="true"
android:textColor="@color/black"
android:textSize="@dimen/text_size_16" />
</com.google.android.material.textfield.TextInputLayout>
Action bar layout