Wednesday, July 18, 2012

[android-developers] Re: Is there any way to make focus one of the ImageView in GridView by default?

Is there any other way except importing GridView.java from frameworks and customise it ?

On Wednesday, 18 July 2012 15:59:11 UTC+5:30, Abhishek Kumar Gupta wrote:
I want first ImageView(in GridView) to be focused by default when I launch the application.

I have tried
   1). setSelection(0) on instance of GridView
   2). setFocusableInTouchMode(true) on paricular ImageView in getView() of Adapter that I have used to inflate the GridView.
but none of them has worked.

 Any help and guidance in this regard will be well appreciated.

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

No comments:

Post a Comment