| Interface | 73 |Description | 74 |
|---|---|
| ExpandingItem.OnItemStateChanged | 78 |
79 | Interface to notify item state changed.
80 | |
81 |
| Class | 90 |Description | 91 |
|---|---|
| ExpandingItem | 95 |
96 | Created by diego on 5/5/16.
97 | |
98 |
public static interface ExpandingItem.OnItemStateChanged
94 | | Modifier and Type | 111 |Method and Description | 112 |
|---|---|
void |
115 | itemCollapseStateChanged(boolean expanded)
116 | Notify if item was expanded or collapsed.
117 | |
118 |
void itemCollapseStateChanged(boolean expanded)141 |
expanded - true if expanded. false otherwise.Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain six categories:
72 |Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:
84 |Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.
104 |Each annotation type has its own separate page with the following sections:
108 |Each enum has its own separate page with the following sections:
119 |There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with java.lang.Object. The interfaces do not inherit from java.lang.Object.
The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.
137 |The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.
141 |These links take you to the next or previous class, interface, package, or related page.
145 |These links show and hide the HTML frames. All pages are available with or without frames.
149 |The All Classes link shows all classes and interfaces except non-static nested types.
153 |Each serializable or externalizable class has a description of its serialization fields and methods. This information is of interest to re-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class description.
157 |The Constant Field Values page lists the static final fields and their values.
161 |public class ExpandingItem
103 | extends RelativeLayout
104 | | Modifier and Type | 121 |Class and Description | 122 |
|---|---|
static interface |
125 | ExpandingItem.OnItemStateChanged
126 | Interface to notify item state changed.
127 | |
128 |
| Constructor and Description | 142 |
|---|
ExpandingItem(Context context,
145 | AttributeSet attrs)
146 | Constructor.
147 | |
148 |
| Modifier and Type | 162 |Method and Description | 163 |
|---|---|
void |
166 | collapse()
167 | Collapses the sub items.
168 | |
169 |
View |
172 | createSubItem()
173 | Creates a sub item based on sub_item_layout Layout, set as ExpandingItem layout attribute.
174 | |
175 |
View |
178 | createSubItem(int position)
179 | Creates a sub item based on sub_item_layout Layout, set as ExpandingItem layout attribute.
180 | |
181 |
void |
184 | createSubItems(int count)
185 | Creates as many sub items as requested in .
186 | |
187 |
int |
190 | getSubItemsCount()
191 | Returns the count of sub items.
192 | |
193 |
View |
196 | getSubItemView(int position)
197 | Get a sub item at the given position.
198 | |
199 |
boolean |
202 | isExpanded()
203 | Tells if the item is expanded.
204 | |
205 |
void |
208 | removeAllSubItems()
209 | Remove all sub items.
210 | |
211 |
void |
214 | removeSubItem(View view)
215 | Remove the given view representing the sub item, with animation.
216 | |
217 |
void |
220 | removeSubItemAt(int position)
221 | Remove sub item at the given position.
222 | |
223 |
void |
226 | removeSubItemFromList(View view)
227 | Remove the given view representing the sub item.
228 | |
229 |
void |
232 | setIndicatorColor(int color)
233 | Set the indicator color by color value.
234 | |
235 |
void |
238 | setIndicatorColorRes(int colorRes)
239 | Set the indicator color by resource.
240 | |
241 |
void |
244 | setIndicatorIcon(Drawable icon)
245 | Set the indicator icon.
246 | |
247 |
void |
250 | setIndicatorIconRes(int iconRes)
251 | Set the indicator icon by resource.
252 | |
253 |
protected void |
256 | setParent(ExpandingList parent)
257 | Set the parent in order to auto scroll.
258 | |
259 |
void |
262 | setStateChangedListener(ExpandingItem.OnItemStateChanged listener)
263 | Set a listener to listen item stage changed.
264 | |
265 |
void |
268 | toggleExpanded()
269 | Expand or collapse the sub items.
270 | |
271 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic ExpandingItem(Context context, 301 | AttributeSet attrs)302 |
context - attrs - public void setStateChangedListener(ExpandingItem.OnItemStateChanged listener)321 |
listener - The listener of type ExpandingItem.OnItemStateChangedpublic boolean isExpanded()332 |
public int getSubItemsCount()343 |
public void collapse()354 |
public void toggleExpanded()364 |
public void setIndicatorColorRes(int colorRes)374 |
colorRes - The color resource.public void setIndicatorColor(int color)385 |
color - The color value.public void setIndicatorIconRes(int iconRes)396 |
iconRes - The icon resource.public void setIndicatorIcon(Drawable icon)407 |
icon - Drawable of the indicator icon.public View createSubItem()418 |
public View createSubItem(int position)429 |
position - The position to add the new Item. Position should not be greater than the list size.
431 | If position is -1, the item will be added in the end of the list.public void createSubItems(int count)442 |
count - The quantity of sub items.public View getSubItemView(int position)453 |
position - The sub item position. Should be > 0.public void removeSubItemAt(int position)465 |
position - The position of the item to be removed.public void removeSubItemFromList(View view)476 |
view - The sub item to be removed.public void removeSubItem(View view)487 |
view - The sub item to be removed.public void removeAllSubItems()498 |
protected void setParent(ExpandingList parent)508 |
parent - The parent of type ExpandingList