Hi,
In my layout, there's a GridView inside SlidingDrawer. XML is as
follows:
Also, I have set GridView by a customized AdapterView.
The problem is, after setting "onItemClick" event for the GridView,
I cannot see any log in the Logcat when I click any item.
Could anyone help me on this issue?
Thanks!

=== XML ===

<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/
android"
        android:orientation="vertical"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        >
        <LinearLayout xmlns:android="http://schemas.android.com/apk/res/
android"
                android:orientation="vertical"
                android:layout_width="fill_parent"
                android:layout_height="fill_parent"
                >
          ....................
        </LinearLayout>
        <SlidingDrawer  xmlns:android="http://schemas.android.com/apk/res/
android"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:handle="@+id/handle"
            android:content="@+id/content"
        >
       <Button
            android:id="@+id/handle"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
        />
        <GridView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:id="@+id/content"
        >
        </GridView>
    </SlidingDrawer>
</FrameLayout>

=== Java ===

myGridView.setOnItemClickListener(new GridView.OnItemClickListener() {
    @Override
    public void onItemClick(AdapterView<?> arg0, View arg1, int arg2,
long arg3) {
        // TODO Auto-generated method stub
        Log.v("myGridView", "enter OnItemClick");
    }
});

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

Reply via email to