I am using a spinner for drop down in my android app. But, problem is when user scrolls down, the spinner moves up and becomes invisible. I want to fix the spinner at the top of the page so that user can easily select the page.
Here with Scrollbar:
On scrolling down it disappears:
Edit 1: Layout file:
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:background="@color/backgroundColor"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
android:scrollbars="vertical"
android:paddingBottom="@dimen/activity_vertical_margin"
tools:context="com.example.shiza.dailyquranverses.Quran">
<Spinner
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/selectChapter">
</Spinner>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/verse"
android:maxLines = "2000"
android:textSize="@dimen/verse_font_chapter"
android:text="Hello from Quran"
android:scrollbars="vertical"
/>
</LinearLayout>
</ScrollView>