I am facing issue of scrolling of large text view. Scrolling working good but when text ends from bottom of screen scroll view still scroll the view almost 1 times equals of the height of device. here is my code of xml.
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:scrollbars = "vertical"
android:layout_marginLeft="5dp"
android:layout_marginRight="5dp"
android:layout_marginBottom="1dp"
android:layout_marginTop="1dp"
android:orientation="vertical"
android:layout_centerHorizontal="true"
>
<TextView
android:id="@+id/surahTextView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:autoSizeTextType="uniform"
android:autoSizeStepGranularity="2sp"
android:text="@string/title2"
android:textColor="@color/button_text_color"
android:textSize="25sp"
android:padding="0dp"
android:layout_marginTop="0dp"
android:textAlignment="center"
android:fontFamily="@font/almajeed"
android:gravity="center_horizontal" />
</LinearLayout>
</ScrollView>
Actually, I want that when text end in textview scroll should stop not to scroll down showing empty textview.