skip to Main Content

Android Studio – Dependency version issue

I have this issue when compiling my project in Android Studio: Dependency 'androidx.appcompat:appcompat-resources:1.6.1' requires libraries and applications that depend on it to compile against version 33 or later of the Android APIs. :app is currently compiled against android-32. Also, the…

VIEW QUESTION

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