Merge "Fixed doc typos in HeterogeneousExpandableList.java." into froyo
This commit is contained in:
committed by
Android (Google) Code Review
commit
83884db9dc
@ -43,14 +43,14 @@ public abstract class BaseExpandableListAdapter implements ExpandableListAdapter
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@see DataSetObservable#notifyInvalidated()}
|
* @see DataSetObservable#notifyInvalidated()
|
||||||
*/
|
*/
|
||||||
public void notifyDataSetInvalidated() {
|
public void notifyDataSetInvalidated() {
|
||||||
mDataSetObservable.notifyInvalidated();
|
mDataSetObservable.notifyInvalidated();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@see DataSetObservable#notifyChanged()}
|
* @see DataSetObservable#notifyChanged()
|
||||||
*/
|
*/
|
||||||
public void notifyDataSetChanged() {
|
public void notifyDataSetChanged() {
|
||||||
mDataSetObservable.notifyChanged();
|
mDataSetObservable.notifyChanged();
|
||||||
|
@ -23,12 +23,13 @@ import android.view.ViewGroup;
|
|||||||
* Additional methods that when implemented make an
|
* Additional methods that when implemented make an
|
||||||
* {@link ExpandableListAdapter} take advantage of the {@link Adapter} view type
|
* {@link ExpandableListAdapter} take advantage of the {@link Adapter} view type
|
||||||
* mechanism.
|
* mechanism.
|
||||||
*
|
* <p>
|
||||||
* An {@link ExpandableListAdapter} declares one view type for its group items
|
* An {@link ExpandableListAdapter} declares it has one view type for its group items
|
||||||
* and one view type for its child items. Although adapted for most {@link ExpandableListView}s,
|
* and one view type for its child items. Although adapted for most {@link ExpandableListView}s,
|
||||||
* these values should be tuned heterogeneous {@link ExpandableListView}s. Lists that contain
|
* these values should be tuned for heterogeneous {@link ExpandableListView}s.
|
||||||
* different types of group and/or child item views, should use an adapter that implements this
|
* </p>
|
||||||
* interface. This way, the recycled views that will be provided to
|
* Lists that contain different types of group and/or child item views, should use an adapter that
|
||||||
|
* implements this interface. This way, the recycled views that will be provided to
|
||||||
* {@link android.widget.ExpandableListAdapter#getGroupView(int, boolean, View, ViewGroup)}
|
* {@link android.widget.ExpandableListAdapter#getGroupView(int, boolean, View, ViewGroup)}
|
||||||
* and
|
* and
|
||||||
* {@link android.widget.ExpandableListAdapter#getChildView(int, int, boolean, View, ViewGroup)}
|
* {@link android.widget.ExpandableListAdapter#getChildView(int, int, boolean, View, ViewGroup)}
|
||||||
@ -48,7 +49,7 @@ public interface HeterogeneousExpandableList {
|
|||||||
* . Note: Integers must be in the range 0 to {@link #getGroupTypeCount} - 1.
|
* . Note: Integers must be in the range 0 to {@link #getGroupTypeCount} - 1.
|
||||||
* {@link android.widget.Adapter#IGNORE_ITEM_VIEW_TYPE} can also be returned.
|
* {@link android.widget.Adapter#IGNORE_ITEM_VIEW_TYPE} can also be returned.
|
||||||
* @see android.widget.Adapter#IGNORE_ITEM_VIEW_TYPE
|
* @see android.widget.Adapter#IGNORE_ITEM_VIEW_TYPE
|
||||||
* @see getGroupTypeCount()
|
* @see #getGroupTypeCount()
|
||||||
*/
|
*/
|
||||||
int getGroupType(int groupPosition);
|
int getGroupType(int groupPosition);
|
||||||
|
|
||||||
@ -65,7 +66,7 @@ public interface HeterogeneousExpandableList {
|
|||||||
* Note: Integers must be in the range 0 to {@link #getChildTypeCount} - 1.
|
* Note: Integers must be in the range 0 to {@link #getChildTypeCount} - 1.
|
||||||
* {@link android.widget.Adapter#IGNORE_ITEM_VIEW_TYPE} can also be returned.
|
* {@link android.widget.Adapter#IGNORE_ITEM_VIEW_TYPE} can also be returned.
|
||||||
* @see android.widget.Adapter#IGNORE_ITEM_VIEW_TYPE
|
* @see android.widget.Adapter#IGNORE_ITEM_VIEW_TYPE
|
||||||
* @see getChildTypeCount()
|
* @see #getChildTypeCount()
|
||||||
*/
|
*/
|
||||||
int getChildType(int groupPosition, int childPosition);
|
int getChildType(int groupPosition, int childPosition);
|
||||||
|
|
||||||
@ -78,13 +79,11 @@ public interface HeterogeneousExpandableList {
|
|||||||
* . If the adapter always returns the same type of View for all group items, this method should
|
* . If the adapter always returns the same type of View for all group items, this method should
|
||||||
* return 1.
|
* return 1.
|
||||||
* </p>
|
* </p>
|
||||||
* <p>
|
|
||||||
* This method will only be called when the adapter is set on the {@link AdapterView}.
|
* This method will only be called when the adapter is set on the {@link AdapterView}.
|
||||||
* </p>
|
|
||||||
*
|
*
|
||||||
* @return The number of types of group Views that will be created by this adapter.
|
* @return The number of types of group Views that will be created by this adapter.
|
||||||
* @see getChildTypeCount()
|
* @see #getChildTypeCount()
|
||||||
* @see getGroupType()
|
* @see #getGroupType(int)
|
||||||
*/
|
*/
|
||||||
int getGroupTypeCount();
|
int getGroupTypeCount();
|
||||||
|
|
||||||
@ -97,13 +96,11 @@ public interface HeterogeneousExpandableList {
|
|||||||
* , for any group. If the adapter always returns the same type of View for
|
* , for any group. If the adapter always returns the same type of View for
|
||||||
* all child items, this method should return 1.
|
* all child items, this method should return 1.
|
||||||
* </p>
|
* </p>
|
||||||
* <p>
|
|
||||||
* This method will only be called when the adapter is set on the {@link AdapterView}.
|
* This method will only be called when the adapter is set on the {@link AdapterView}.
|
||||||
* </p>
|
|
||||||
*
|
*
|
||||||
* @return The total number of types of child Views that will be created by this adapter.
|
* @return The total number of types of child Views that will be created by this adapter.
|
||||||
* @see getGroupTypeCount()
|
* @see #getGroupTypeCount()
|
||||||
* @see getChildType()
|
* @see #getChildType(int, int)
|
||||||
*/
|
*/
|
||||||
int getChildTypeCount();
|
int getChildTypeCount();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user