<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:background="@mipmap/bg"
android:scrollbars="none"
android:weightSum="1">
<Button
android:id="@+id/downbtn"
android:layout_width="70dp"
android:layout_height="70dp"
android:layout_alignParentBottom="true"
android:layout_alignParentEnd="true"
android:layout_gravity="bottom|center_horizontal"
android:layout_marginBottom="128dp"
android:layout_marginEnd="19dp"
android:background="@drawable/hand" />
<ScrollView
android:id="@+id/QuesSix"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_alignParentStart="true"
android:layout_alignParentTop="true">
<LinearLayout
android:id="@+id/layoutSix"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:paddingBottom="16dp"
android:paddingLeft="16dp"
android:paddingRight="16dp"
android:paddingTop="16dp">
<com.badoualy.stepperindicator.StepperIndicator
android:id="@+id/stepper_indicator"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:stpi_circleColor="#00b47c"
app:stpi_stepCount="6" />
</LinearLayout>
</ScrollView>
</RelativeLayout>
I have implemented a static button on a scroll view. But the button (id: downbtn) is not clickable. Even if I add a onClick Listener, nothing happens. What can I do to make the button click and have a click event? I tried all the blogs and nothing helped me.