Hi all ,
          Iam using Android SDK 1.0 r 2.  I have a problem in GridView
focus handling on changing screen orientation. The GridView that I use
has two types of child views - one type representing a button and
another type ,an imageView that represents space-filler . Say for
example, in a GridView with total child count = 9 , the positions 1,
3,4, 5, 7 contain buttons that are clickable , the remaining positions
0, 2,6, 8 contain imageViews that represent space-fillers.
          When the GridView is rendered , I use requestFocus() to set
focus to the first of the clickable buttons. The problem is when i
change the screen orientation to landscape , the focus shifts to the
imageView that is a space-filler. This is highly undesirable for me
because the user should not be even aware that there is a space-filler
being used. On using log statements, I find that the focus always
shifts to the first child view of the GridView on changing
orientation. Since the data and the child views for the GridView come
from an Adapter class , handling GridView focus on orientation-change
has been an intricate task for me.
        I want to ensure that on orientation-change , the focus always
shifts to the first of the clickable buttons. How can i acheive this ?
Can anybody help ? (By the way , I override onConfigurationChanged()
for orientation-change and it works fine for all other views ).

Thanks,
Satish

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" 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-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to