disabling scroll bar

Quickly share your Android Code Snippets here...

disabling scroll bar

Postby joby.nk » Tue May 26, 2009 11:24 am

Hi all i need to know how to remove the scrollbar for a ListView.

i created a ListView like

1) ListView listView = new ListView(context);

and i add an adapter in to the listView

2)listView.setAdapter(listAdapter);// here listAdapter is an adapetr

when the size of list adapter is greater than one scrolbar comes automatically,but i want to remove the scrolbar.

Anybody can help me to fix this problem
Junior Developer
Junior Developer
Posts: 13
Joined: Thu Jan 29, 2009 1:22 pm
Location: INDIA


Postby albertma » Wed Jun 10, 2009 9:49 am

how about set the adapter to null?
Posts: 3
Joined: Mon May 18, 2009 8:18 am


Return to Code Snippets for Android

Who is online

Users browsing this forum: No registered users and 1 guest