| | |
| | | } |
| | | |
| | | /** |
| | | * This overloaded method should not be used, instead use |
| | | * {@link #setAdapter(ExpandableListAdapter)}. |
| | | * <p/> |
| | | * {@inheritDoc} |
| | | */ |
| | | public void setAdapter(ListAdapter adapter) { |
| | | throw new RuntimeException("For ExpandableListView, use setAdapter(ExpandableListAdapter) instead of " + "setAdapter(ListAdapter)"); |
| | | } |
| | | |
| | | /** |
| | | * Sets the adapter that provides data to this view. |
| | | * |
| | | * @param adapter The adapter that provides data to this view. |
| | |
| | | } |
| | | |
| | | /** |
| | | * This overloaded method should not be used, instead use |
| | | * {@link #setAdapter(ExpandableListAdapter)}. |
| | | * <p/> |
| | | * {@inheritDoc} |
| | | */ |
| | | public void setAdapter(ListAdapter adapter) { |
| | | throw new RuntimeException("For ExpandableListView, use setAdapter(ExpandableListAdapter) instead of " + "setAdapter(ListAdapter)"); |
| | | } |
| | | |
| | | /** |
| | | * Register a callback to be invoked when an item has been clicked and the |
| | | * caller prefers to receive a ListView-style position instead of a group |
| | | * and/or child position. In most cases, the caller should use |