Java Code Examples for android.widget.ExpandableListAdapter.registerDataSetObserver()

The following are Jave code examples for showing how to use registerDataSetObserver() of the android.widget.ExpandableListAdapter class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: gloomy-dungeons-2   File: ExpandableListConnector.java   View Source Code Vote up 5 votes
public void setExpandableListAdapter(ExpandableListAdapter expandableListAdapter) {
    if (mExpandableListAdapter != null) {
        mExpandableListAdapter.unregisterDataSetObserver(mDataSetObserver);
    }
    mExpandableListAdapter = expandableListAdapter;
    expandableListAdapter.registerDataSetObserver(mDataSetObserver);
}
 
Example 2
Project: laposte-android   File: ExpandableListConnector.java   View Source Code Vote up 5 votes
public void setExpandableListAdapter(ExpandableListAdapter expandableListAdapter) {
    if (mExpandableListAdapter != null) {
        mExpandableListAdapter.unregisterDataSetObserver(mDataSetObserver);
    }
    mExpandableListAdapter = expandableListAdapter;
    expandableListAdapter.registerDataSetObserver(mDataSetObserver);
}
 
Example 3
Project: TflTravelAlerts   File: ExpandableListConnector.java   View Source Code Vote up 5 votes
public void setExpandableListAdapter(ExpandableListAdapter expandableListAdapter) {
    if (mExpandableListAdapter != null) {
        mExpandableListAdapter.unregisterDataSetObserver(mDataSetObserver);
    }
    mExpandableListAdapter = expandableListAdapter;
    expandableListAdapter.registerDataSetObserver(mDataSetObserver);
}