expandable list view

by google » Tue, 07 Apr 2009 19:39:12 GMT


Sponsored Links
 hi,
i am creating expandable list with group and childs,
i am able to handle onchildclick()
but not able to handle ongroupclick()  can anybody helps in this



regards,
chandra

--~--~---------~--~----~------------~-------~--~----~



expandable list view

by dillirao malipeddi » Mon, 13 Apr 2009 17:21:26 GMT


 you can use
       @Override
public void onGroupExpand(int groupPosition)
       {
// TODO Auto-generated method stub
super.onGroupExpand(groupPosition);
Toast.makeText(ExpandableList1.this, "Group Clicked on pos =
"+ groupPosition, Toast.LENGTH_SHORT).show();
}

for get selected  group position

i think this will help you








-- 
Dilli Rao. M

--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Other Threads

1. Any email confirmation after submit the application for ADC 2?

I have submitted my application for ADC 2. But I didn't receive any
email. How can I know the application is successfully submited.

THanks!

Parchira

--~--~---------~--~----~------------~-------~--~----~

2. Mediaplay Problem

Howdy all, this is a problem faced by an Android Australia group
member. Since we're just starting out I've reposted here to get him a
solution. Any help would be appreciated. Kind regards, Nick.

---------- Forwarded message ----------

hey guys,

i got a bit a code in a resource utility class:
    static public void playSound(Context ctx, int resId) {

        try {
            MediaPlayer mp = MediaPlayer.create(ctx,
resId);
            mp.setOnErrorListener(mediaErrorListener);
            mp.start();
        } catch (Exception e) {
            Log.e(LOG_TAG, "unable to play sound", e);
        }
    }

    static public class MediaErrorListener implements
MediaPlayer.OnErrorListener {
        @Override
        public boolean onError(MediaPlayer mp, int what, int
extra) {
            Log.e(LOG_TAG, "unable to play sound what:(" +
what + ") extra:(" +
extra + ")");
            return false;
        }
    }

its been working fine. but i just tried it on a long instructional mp3
file (10min) & 7MB and it stops after 20sec.

any ideas?

rgds ash

--~--~---------~--~----~------------~-------~--~----~

3. Request for Joinning the group

4. Displaying Bitmap from PictureCallback works on emulator but not on G1

5. G1, Magic Modem

6. Activity stack: A B C -> press BACK -> go to A

7. Do you got any confirmation after ADC 2 submit?