Is there a way for a gallery child view to receive proper key events.
Currently, the gallery will pass press events but not key events.  The
following code uses an EditView as an example.  On any selected
EditView you cannot change the text.  Also, when I use ViewGroups as
the child views the right and left keys stop scrolling the gallery.
Any ideas?

public class EditActivity extends Activity {
    public void onCreate(Bundle savedInstanceState) {
                super.onCreate(savedInstanceState);
                Gallery gallery = new Gallery(this);
                gallery.setAdapter(
                    new ArrayAdapter<String>(this,
layout.simple_list_item_1, new String [] {"ONE", "TWO"})
                    {
                        public View getView(int position, View convertView,
ViewGroup parent) {
                               if (convertView == null)
                                {
                                        convertView = new 
EditText(getContext());
                                }
                                return convertView;
                        }
                    }
               );
    }
--~--~---------~--~----~------------~-------~--~----~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to