[android-developers] How to highlight a ListView element without touching it

2012-06-25 Thread Raghav Shankar
I have an application that has a ListView and I want to highlight the first item in my ListView as soon as the user enters the activity with the ListView. I tried using *ListView.setSelection()*, but that didn't help me. Any ideas ? -- You received this message because you are subscribed to

Re: [android-developers] How to highlight a ListView element without touching it

2012-06-25 Thread Justin Anderson
I have an application that has a ListView and I want to highlight the first item in my ListView as soon as the user enters the activity with the ListView. I tried using ListView.setSelection(), but that didn't help me. Any ideas ? - What exactly do you mean by highlight? - What is the

Re: [android-developers] How to highlight a ListView element without touching it

2012-06-25 Thread Raghav Shankar
I want to highlight the list element similar to how it gets highlighted on clicking the list item. The main idea is to make it standout from the rest of the list items. I don't want to force any selection. that didn't help me means that the list item didn't get highlighted when the user entered

Re: [android-developers] How to highlight a ListView element without touching it

2012-06-25 Thread Mark Murphy
On Mon, Jun 25, 2012 at 3:03 PM, Raghav Shankar raghav0110...@gmail.com wrote: I want to highlight the list element similar to how it gets highlighted on clicking the list item. Please do not confuse your users, particularly those who use D-pads, trackballs, and the like to navigate their

Re: [android-developers] How to highlight a ListView element without touching it

2012-06-25 Thread Nobu Games
Whatever you are trying to achieve you need to implement that in your own custom ListAdapter implementation. Go into the adapter's getView methodhttp://developer.android.com/reference/android/widget/Adapter.html#getView%28int,%20android.view.View,%20android.view.ViewGroup%29and add some code