Skip to content

Commit 5d658d0

Browse files
author
Gilles Debunne
committed
Fixed doc typos in HeterogeneousExpandableList.java.
Bad links. Cherry-pick from master for a documentation update. https://android-git.corp.google.com/g/#change,59176 Change-Id: Ib69b05c09fc80434cb9cd79d61fae4035adc1970
1 parent 3bf5c4c commit 5d658d0

File tree

2 files changed

+14
-17
lines changed

2 files changed

+14
-17
lines changed

core/java/android/widget/BaseExpandableListAdapter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,14 @@ public void unregisterDataSetObserver(DataSetObserver observer) {
4343
}
4444

4545
/**
46-
* {@see DataSetObservable#notifyInvalidated()}
46+
* @see DataSetObservable#notifyInvalidated()
4747
*/
4848
public void notifyDataSetInvalidated() {
4949
mDataSetObservable.notifyInvalidated();
5050
}
5151

5252
/**
53-
* {@see DataSetObservable#notifyChanged()}
53+
* @see DataSetObservable#notifyChanged()
5454
*/
5555
public void notifyDataSetChanged() {
5656
mDataSetObservable.notifyChanged();

core/java/android/widget/HeterogeneousExpandableList.java

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,13 @@
2323
* Additional methods that when implemented make an
2424
* {@link ExpandableListAdapter} take advantage of the {@link Adapter} view type
2525
* mechanism.
26-
*
27-
* An {@link ExpandableListAdapter} declares one view type for its group items
26+
* <p>
27+
* An {@link ExpandableListAdapter} declares it has one view type for its group items
2828
* and one view type for its child items. Although adapted for most {@link ExpandableListView}s,
29-
* these values should be tuned heterogeneous {@link ExpandableListView}s. Lists that contain
30-
* different types of group and/or child item views, should use an adapter that implements this
31-
* interface. This way, the recycled views that will be provided to
29+
* these values should be tuned for heterogeneous {@link ExpandableListView}s.
30+
* </p>
31+
* Lists that contain different types of group and/or child item views, should use an adapter that
32+
* implements this interface. This way, the recycled views that will be provided to
3233
* {@link android.widget.ExpandableListAdapter#getGroupView(int, boolean, View, ViewGroup)}
3334
* and
3435
* {@link android.widget.ExpandableListAdapter#getChildView(int, int, boolean, View, ViewGroup)}
@@ -48,7 +49,7 @@ public interface HeterogeneousExpandableList {
4849
* . Note: Integers must be in the range 0 to {@link #getGroupTypeCount} - 1.
4950
* {@link android.widget.Adapter#IGNORE_ITEM_VIEW_TYPE} can also be returned.
5051
* @see android.widget.Adapter#IGNORE_ITEM_VIEW_TYPE
51-
* @see getGroupTypeCount()
52+
* @see #getGroupTypeCount()
5253
*/
5354
int getGroupType(int groupPosition);
5455

@@ -65,7 +66,7 @@ public interface HeterogeneousExpandableList {
6566
* Note: Integers must be in the range 0 to {@link #getChildTypeCount} - 1.
6667
* {@link android.widget.Adapter#IGNORE_ITEM_VIEW_TYPE} can also be returned.
6768
* @see android.widget.Adapter#IGNORE_ITEM_VIEW_TYPE
68-
* @see getChildTypeCount()
69+
* @see #getChildTypeCount()
6970
*/
7071
int getChildType(int groupPosition, int childPosition);
7172

@@ -78,13 +79,11 @@ public interface HeterogeneousExpandableList {
7879
* . If the adapter always returns the same type of View for all group items, this method should
7980
* return 1.
8081
* </p>
81-
* <p>
8282
* This method will only be called when the adapter is set on the {@link AdapterView}.
83-
* </p>
8483
*
8584
* @return The number of types of group Views that will be created by this adapter.
86-
* @see getChildTypeCount()
87-
* @see getGroupType()
85+
* @see #getChildTypeCount()
86+
* @see #getGroupType(int)
8887
*/
8988
int getGroupTypeCount();
9089

@@ -97,13 +96,11 @@ public interface HeterogeneousExpandableList {
9796
* , for any group. If the adapter always returns the same type of View for
9897
* all child items, this method should return 1.
9998
* </p>
100-
* <p>
10199
* This method will only be called when the adapter is set on the {@link AdapterView}.
102-
* </p>
103100
*
104101
* @return The total number of types of child Views that will be created by this adapter.
105-
* @see getGroupTypeCount()
106-
* @see getChildType()
102+
* @see #getGroupTypeCount()
103+
* @see #getChildType(int, int)
107104
*/
108105
int getChildTypeCount();
109106
}

0 commit comments

Comments
 (0)