Hi Raghav,

                   you need to force fully hielight the first cell in list
view in your get view method by giving background color or draw able to
your parent layout of the cell with giving position = 0;

in your getview method  ...

if(position== 0){
holder.relative_layout = (RelativeLayout) convertView
.findViewById(R.id.relativeLayout1);
holder.relative_layout.setBackgroundColor(Color.GRAY);
}

Jitendra

On Mon, Jun 25, 2012 at 11:39 PM, Raghav Shankar <[email protected]>wrote:

> 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 the Google Groups
> "Android Discuss" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/android-discuss/-/kp7bJlkQSt0J.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/android-discuss?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/android-discuss?hl=en.

Reply via email to