Chirag Patel
Chirag Patel

Reputation: 1611

how to get value from expandable list view child value

I want to create custome expandable list view in android but when I click on child, no value found and my click event is given below:

mExpandableListView.setOnChildClickListener(new OnChildClickListener() {
    @Override
    public boolean onChildClick(ExpandableListView parent, View v,
                                int groupPosition, int childPosition, long id) {
        Toast.makeText(getBaseContext(), "Child clicked",
                       Toast.LENGTH_SHORT).show();
        return true;
    }
});

Anyone knows? please help Thanks In Advance

Upvotes: 1

Views: 1764

Answers (1)

Mehul Santoki
Mehul Santoki

Reputation: 1208

Try this. Use method "getChildAtPosition"..

su chale chhe?

Upvotes: 3

Related Questions