¡@

Home 

2014/10/16 ¤W¤È 08:19:51

android Programming Glossary: myexpandablelistadapter

Pinned groups in ExpandableListView

http://stackoverflow.com/questions/10613552/pinned-groups-in-expandablelistview

package com.example import com.example.ExpandableList.MyExpandableListAdapter import android.content.Context import android.graphics.Canvas.. int alpha private static final int MAX_ALPHA 255 private MyExpandableListAdapter mAdapter private View mHeaderView private boolean mHeaderViewVisible.. adapter super.setAdapter adapter mAdapter MyExpandableListAdapter adapter @Override protected void onMeasure int widthMeasureSpec..

How to update expandable list view when adapter's data changes

http://stackoverflow.com/questions/1463906/how-to-update-expandable-list-view-when-adapters-data-changes

RubricsDBAdapter.KEY_ID Set up our adapter mAdapter new MyExpandableListAdapter rubricsCursor this android.R.layout.simple_expandable_list_item_1.. mAdapter.notifyDataSetChanged public class MyExpandableListAdapter extends SimpleCursorTreeAdapter public MyExpandableListAdapter.. extends SimpleCursorTreeAdapter public MyExpandableListAdapter Cursor cursor Context context int groupLayout int childLayout..

Android ExpandableListView with Checkbox, Controlling checked state

http://stackoverflow.com/questions/5068668/android-expandablelistview-with-checkbox-controlling-checked-state

view to refresh thus not keeping the state. public class MyExpandableListAdapter extends BaseExpandableListAdapter Variables Sample data set... Integer private Context context Constructors public MyExpandableListAdapter public MyExpandableListAdapter Context c this.context c Set.. context Constructors public MyExpandableListAdapter public MyExpandableListAdapter Context c this.context c Set Methods public void setGroupsAndValues..

Pinned groups in ExpandableListView

http://stackoverflow.com/questions/10613552/pinned-groups-in-expandablelistview

sample ExpandableList1.java. PinnedHeaderExpListView.java package com.example import com.example.ExpandableList.MyExpandableListAdapter import android.content.Context import android.graphics.Canvas import android.util.AttributeSet import android.view.View.. and 255. void configurePinnedHeader View header int position int alpha private static final int MAX_ALPHA 255 private MyExpandableListAdapter mAdapter private View mHeaderView private boolean mHeaderViewVisible private int mHeaderViewWidth private int mHeaderViewHeight.. 0 requestLayout @Override public void setAdapter ExpandableListAdapter adapter super.setAdapter adapter mAdapter MyExpandableListAdapter adapter @Override protected void onMeasure int widthMeasureSpec int heightMeasureSpec super.onMeasure widthMeasureSpec heightMeasureSpec..

How to update expandable list view when adapter's data changes

http://stackoverflow.com/questions/1463906/how-to-update-expandable-list-view-when-adapters-data-changes

index rubricIdColumnIndex rubricsCursor.getColumnIndexOrThrow RubricsDBAdapter.KEY_ID Set up our adapter mAdapter new MyExpandableListAdapter rubricsCursor this android.R.layout.simple_expandable_list_item_1 android.R.layout.simple_expandable_list_item_1 new.. void deleteMyData rubricsDbAdapter.deleteAll itemsDbAdapter.deleteAll mAdapter.notifyDataSetChanged public class MyExpandableListAdapter extends SimpleCursorTreeAdapter public MyExpandableListAdapter Cursor cursor Context context int groupLayout int childLayout.. mAdapter.notifyDataSetChanged public class MyExpandableListAdapter extends SimpleCursorTreeAdapter public MyExpandableListAdapter Cursor cursor Context context int groupLayout int childLayout String groupFrom int groupTo String childrenFrom int childrenTo..

Android ExpandableListView with Checkbox, Controlling checked state

http://stackoverflow.com/questions/5068668/android-expandablelistview-with-checkbox-controlling-checked-state

research this is due to android's view lifecycle causing the view to refresh thus not keeping the state. public class MyExpandableListAdapter extends BaseExpandableListAdapter Variables Sample data set. children i contains the children String for groups i . private.. ArrayList ArrayList Integer check_states new ArrayList ArrayList Integer private Context context Constructors public MyExpandableListAdapter public MyExpandableListAdapter Context c this.context c Set Methods public void setGroupsAndValues String g String v this.groups.. new ArrayList ArrayList Integer private Context context Constructors public MyExpandableListAdapter public MyExpandableListAdapter Context c this.context c Set Methods public void setGroupsAndValues String g String v this.groups g this.group_vaues v public..