Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

android scrollview set android:scrollbars="none",the scrollview doesn't work

<ScrollView
        xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:scrollbars="none" >
</ScrollView>

I set android:scrollbars="none",the scrollview doesn't work

like image 728
喜狼狼 Avatar asked Dec 19 '25 05:12

喜狼狼


1 Answers

You can get the instance of ScrollView using findViewById and disable the scrollbars programatically, refer this Blog

  ScrollView sView = (ScrollView)findViewById(R.id.ScrollView01);
  sView.setVerticalScrollBarEnabled(false);
  sView.setHorizontalScrollBarEnabled(false);
like image 144
Lalit Poptani Avatar answered Dec 21 '25 18:12

Lalit Poptani



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!