Impossible to add a footer to a ScrollView – Android

Issue I’m currently working on a mobile app and I have a problem when I try to put a footer under a ScrollView. Here is my code: <RelativeLayout android:id="@+id/RelativeLayout01" xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent"> <RelativeLayout android:layout_alignParentBottom="true" android:layout_width="fill_parent" android:layout_height="wrap_content" android:id="@+id/bottomcontent" android:orientation="vertical" android:background="@drawable/border"> //the

Continue reading

registerForActivityResult in fragment

Issue I am trying to call registerForActivityResult() inside a fragment, when it finishes running it simply closes the fragment, which is a problem. How can I call registerForActivityResult() from a fragment without closing it? private val profileImageLauncher = registerForActivityResult(ActivityResultContracts.StartActivityForResult()) {

Continue reading