[android-developers] Re: Initial position of scrollbar in ListView

2010-11-29 Thread lou
I'm already using ListView.setSelection(int position) in order to hide firsts headers on the first display of my activity, but the scrollbar begins at the first header, not at the first real item. Thanks On Nov 23, 2:07 pm, pedr0 pulsarpie...@gmail.com wrote: You can use  this function:

Re: [android-developers] Re: Initial position of scrollbar in ListView

2010-11-29 Thread Kostya Vasilyev
Move the header outside the ListView. You can use RelativeLayout or LinearLayout to position the header just above the ListView so it appears seamless. -- Kostya 29.11.2010 23:56, lou пишет: I'm already using ListView.setSelection(int position) in order to hide firsts headers on the first

[android-developers] Re: Initial position of scrollbar in ListView

2010-11-23 Thread Prateek Jain
Hi, I think headers are the part of ListView (therefore 1st ListView item), so you cannot make scrollbar at the top when the focus is on the the next item. No so sure though. Cheers, Prateek On Nov 18, 5:30 pm, lou louis.coq...@wopata.com wrote: Hi ! I'm actually working on a ListView, which

[android-developers] Re: Initial position of scrollbar in ListView

2010-11-23 Thread pedr0
You can use this function: http://developer.android.com/reference/android/widget/ListView.html#setSelection(int) ListView.setSelection(int position) It works? On 23 Nov, 13:33, Prateek Jain mrprateekj...@gmail.com wrote: Hi, I think headers are the part of ListView (therefore 1st