ExpandableListAdapter getChild - top ranked examples from Open Source projects

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

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: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 Object getChild(int groupPosition, int childPosition){
 
		return wrapped.getChild(groupPosition,
								childPosition);
	} 
 
 
	public long getChildId(int groupPosition, int childPosition){
 
		return wrapped.getChildId(	groupPosition,
									childPosition);
	} 
 
 
	public int getChildrenCount(int groupPosition){
 
		return wrapped.getChildrenCount(groupPosition);
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(
                        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 ExpandableListAdapter getChild Questions & Answers:

getChild Method Overview
Gets the data associated with the given child within the given group.
See Code Examples for other Android ExpandableListAdapter Methods: