I’m creating my own personalized ListView by extending the ListView itself. This particular ListView shouldn’t have scrollbars.
- How can I disable the XML
android:scrollbarsattribute for my customListView? - I can’t find a way to disable them programmatically. What am I missing?
The answer from dzeikei’s will disable the scrollbars programmatically and ignore any value from android:scrollbars but what I’m really asking on 1. is how to make android:scrollbars an invalid attribute for my custom component.
Updated
OK as Richardo found out, seems like my original answer is the reverse way since the scrollbar is displayed internally 🙂
The correct way will be to call
super.setHorizontalScrollBarEnabled(false)andsuper.setVerticalScrollBarEnabled(false)in the constructor and overridesetHorizontalScrollBarEnabled()andsetVerticalScrollBarEnabled()do nothing 😀