kiana rahimi kiana rahimi - 10 days ago 5
Android Question

hide scrollbar shape in android textview

i have a text view in my activity that populate from database . but when it's big Scrollbar shape show override the text . this is screenshot from it :

enter image description here

This is the textView xml :

<TextView
android:id="@+id/txtMatn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/dark_line"
android:lineSpacingExtra="12dp"
android:layout_margin="24dp"
android:scrollbars="vertical"/>


now I want hide the ScrollBar shape

Answer

you can use this code

enter code here
 <ScrollView
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:scrollbars="none">
 <TextView
  here your text
  />
  </ScrollView>
Comments