hi there,
  I'm seeking the methold to multi select the items in GridView.
Is there any success story or intrest tricks about this?
I searched whole the group forum, but didn't dig any relative
information about it.

Thanks.

My Questions:
1. how to get the state when we clicked the item in my custom
ImageView?
2. how to set checkable for sub ImageView?
3. how to get the subview on onItemClickListner?

Subview for GridView
<LinearLayout
  xmlns:android="http://schemas.android.com/apk/res/android";
  android:layout_width="113dip"
  android:orientation="vertical"
  android:layout_height="wrap_content">

  <FrameLayout xmlns:android="http://schemas.android.com/apk/res/
android"
    android:orientation="vertical"
    android:layout_centerHorizontal="true"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content">

    <videoplayer.FXVideoItem  -- which extend the ImageView
        android:id="@+id/video_grid_item"
        android:layout_width="105dip"
        android:layout_height="105dip"
        android:scaleType="centerCrop"
    />
  </FrameLayout>
</LinearLayout>

getView in my adapter
    @Override
    public View getView(int position, View convertView, ViewGroup
parent)
    {
        View iv = null;
        if ( convertView == null )
        {
            iv = mInflater.inflate(R.layout.videogriditem, null);
        }
        else
        {
            iv = convertView;
        }

        VideoItem item =
(VideoItem)iv.findViewById(R.id.video_grid_item);
        Video videoItem = mPlayList.get(position);
        item.setOverlay(videoItem.getOverlay());
        if ( videoItem.thumbnailPic != null )
        {
            item.setImageBitmap(videoItem.thumbnailPic);
        }

        return iv;
    }

-- 
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