skip to Main Content

Android Studio – NestedScrollView breaks suggestions in Android Studio

Here is the strange behavior. I have this layout: <?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" style="@style/AppTheme.FragmentBackground.XXXX.Parent" android:layout_width="match_parent" android:layout_height="match_parent"> <include android:id="@+id/appbar" layout="@layout/layout_appbar" /> <LinearLayout android:layout_width="match_parent" app:layout_constraintTop_toTopOf="parent" android:layout_height="wrap_content"> </LinearLayout> </androidx.constraintlayout.widget.ConstraintLayout> So far, everything seems perfect. Although, if I replace the LinearLayout with…

VIEW QUESTION

Android Studio – How to get input from EditText in android java fragment

I am trying to get user input using EditText from fragment after pressing a button. For some reason the button is clickable but no data from EditText. <EditText android:layout_width="match_parent" android:layout_height="match_parent" android:id="@+id/txtUserInput"/> <androidx.appcompat.widget.AppCompatButton android:id="@+id/btnTest" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_marginTop="24dp"/> public class MainActivity extends…

VIEW QUESTION
Back To Top
Search