Java Code Examples for android.widget.ExpandableListAdapter#toString()
The following examples show how to use
android.widget.ExpandableListAdapter#toString() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AnimatedExpandableListView.java From AndroidQuick with MIT License | 5 votes |
/** * @see ExpandableListView#setAdapter(ExpandableListAdapter) */ public void setAdapter(ExpandableListAdapter adapter) { super.setAdapter(adapter); // Make sure that the adapter extends AnimatedExpandableListAdapter if(adapter instanceof AnimatedExpandableListAdapter) { this.adapter = (AnimatedExpandableListAdapter) adapter; this.adapter.setParent(this); } else { throw new ClassCastException(adapter.toString() + " must implement AnimatedExpandableListAdapter"); } }
Example 2
Source File: AnimatedExpandableListView.java From ETSMobile-Android2 with Apache License 2.0 | 5 votes |
/** * @see ExpandableListView#setAdapter(ExpandableListAdapter) */ public void setAdapter(ExpandableListAdapter adapter) { super.setAdapter(adapter); // Make sure that the adapter extends AnimatedExpandableListAdapter if (adapter instanceof AnimatedExpandableListAdapter) { this.adapter = (AnimatedExpandableListAdapter) adapter; this.adapter.setParent(this); } else { throw new ClassCastException(adapter.toString() + " must implement AnimatedExpandableListAdapter"); } }
Example 3
Source File: AnimatedExpandableListView.java From smartcard-reader with GNU General Public License v3.0 | 5 votes |
/** * @see ExpandableListView#setAdapter(ExpandableListAdapter) */ public void setAdapter(ExpandableListAdapter adapter) { super.setAdapter(adapter); // Make sure that the adapter extends AnimatedExpandableListAdapter if(adapter instanceof AnimatedExpandableListAdapter) { this.adapter = (AnimatedExpandableListAdapter) adapter; this.adapter.setParent(this); } else { throw new ClassCastException(adapter.toString() + " must implement AnimatedExpandableListAdapter"); } }
Example 4
Source File: AnimatedExpandableListView.java From QuickLyric with GNU General Public License v3.0 | 5 votes |
/** * @see ExpandableListView#setAdapter(ExpandableListAdapter) */ public void setAdapter(ExpandableListAdapter adapter) { super.setAdapter(adapter); // Make sure that the adapter extends AnimatedExpandableListAdapter if (adapter instanceof AnimatedExpandableListAdapter) { this.adapter = (AnimatedExpandableListAdapter) adapter; this.adapter.setParent(this); } else { throw new ClassCastException(adapter.toString() + " must implement AnimatedExpandableListAdapter"); } }
Example 5
Source File: AnimatedExpandableListView.java From MaterialDesignSupport with MIT License | 5 votes |
@Override public void setAdapter(ExpandableListAdapter adapter) { super.setAdapter(adapter); if (adapter instanceof AnimatedExpandableListAdapter) { this.adapter = (AnimatedExpandableListAdapter) adapter; } else { throw new ClassCastException(adapter.toString() + " must implement AnimatedExpandableListAdapter"); } }