Android ExpandableListAdapter - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Android ExpandableListAdapter class.

This code example shows how to use the following methods:getChild
  @Override 
  public boolean onChildClick(ExpandableListView parent, View v,
                              int groupPosition, int childPosition,
                              long id) {
    Toast.makeText(this,
                   adapter.getChild(groupPosition, childPosition)
                          .toString(), Toast.LENGTH_SHORT).show();
 
    return(false); 
  } 
 
  @Override 
  public boolean onGroupClick(ExpandableListView parent, View v,
                              int groupPosition, long id) {
    Toast.makeText(this, adapter.getGroup(groupPosition).toString(),
                   Toast.LENGTH_SHORT).show();
 
    return(false); 
  } 
 
6
CodeRank
This code example shows how to use the following methods:onGroupExpanded
	} 
 
 
	public void onGroupExpanded(int groupPosition){
 
		wrapped.onGroupExpanded(groupPosition);
	} 
 
 
	public void registerDataSetObserver(DataSetObserver observer){
 
		wrapped.registerDataSetObserver(observer);
	} 
 
 
	public void unregisterDataSetObserver(DataSetObserver observer){
 
		wrapped.unregisterDataSetObserver(observer);
	} 
 
3
CodeRank
This code example shows how to use the following methods:getChild
			public boolean onChildClick(ExpandableListView parent, View v,
					int groupPosition, int childPosition, long id) {
 
				Toast.makeText(
						Downloadpage.this,
						"Äãµã»÷ÁË" + adapter.getChild(groupPosition, childPosition),
						Toast.LENGTH_SHORT).show();
 
				return false; 
			} 
		}); 
	} 
 
 
} 
4
CodeRank
This code example shows how to use the following methods:getChild
            public boolean onChildClick(ExpandableListView parent, View v,
                    int groupPosition, int childPosition, long id) {
 
                Toast.makeText(
                        FriendList.this,
                        "You have Clicked " + adapter.getChild(groupPosition, childPosition),
                        Toast.LENGTH_SHORT).show();
 
                return false; 
            } 
        }); 
    } 
} 
4
CodeRank
This code example shows how to use the following methods:getChild
        this.mListView.setOnChildClickListener(new OnChildClickListener() {
            @Override 
            public boolean onChildClick(ExpandableListView parent, View v,
                    int groupPosition, int childPosition, long id) {
                ExpandableListAdapter adapter = parent.getExpandableListAdapter();
                Map<String, String> item = (Map<String, String>) adapter.getChild(groupPosition, childPosition);
                final Calendar calendar = Calendar.getInstance();
                final int hour = calendar.get(Calendar.HOUR_OF_DAY);
                final int minute = calendar.get(Calendar.MINUTE);
                final int second = calendar.get(Calendar.SECOND);
                final TimePickerDialog timePickerDialog = new TimePickerDialog(TimerActivity.this.mContext, new TimePickerDialog.OnTimeSetListener() {
 
					@Override 
					public void onTimeSet(TimePicker view, int hourOfDay,
							int minute) {
						// TODO Auto-generated method stub 
						 
					} 
 
                        }, hour, minute, true);
4
CodeRank
This code example shows how to use the following methods:getChild
This code example shows how to use the following methods:getChild
            { 
                // get parent data 
                ExpandableListAdapter adapter = parent.getExpandableListAdapter();
 
                // get child data 
                Map<String, Object> childMap = (Map<String, Object>)adapter.getChild(
                        groupPosition,
                        childPosition
                ); 
 
                // output log 
                Log.d("SampleActivity", "TITLE: " + childMap.get("TITLE"));
                Log.d("SampleActivity", "SUMMARY: " + childMap.get("SUMMARY"));
 
                return false; 
            } 
        }); 
    } 
} 
4
CodeRank

Related Android ExpandableListAdapter Questions & Answers:

Other Android ExpandableListAdapter Examples

15:	public class MainActivity extends Activity {
16:	
17:		ExpandableListAdapter listAdapter;
18:		ExpandableListView expListView;
19:		List<String> listDataHeader;
-
31:			prepareListData();
32:	
33:			listAdapter = new ExpandableListAdapter(this, listDataHeader, listDataChild);
34:	
35:			// setting list adapter

Read More

15:	public class MainActivity extends Activity {
16:	
17:		ExpandableListAdapter listAdapter;
18:		ExpandableListView expListView;
19:		List<String> listDataHeader;
-
31:			prepareListData();
32:	
33:			listAdapter = new ExpandableListAdapter(this, listDataHeader, listDataChild);
34:	
35:			// setting list adapter

Read More

See Code Examples for Android ExpandableListAdapter Methods: