An AdapterView is a view whose children are determined by an Adapter.
See ListView, GridView, Spinner and Gallery for commonly used subclasses of AdapterView.
| com.ab.view.pullview.AbMultiColumnAdapterView< T extends Adapter >.AbMultiColumnAdapterView |
( |
Context |
context) | |
|
|
inline |
| com.ab.view.pullview.AbMultiColumnAdapterView< T extends Adapter >.AbMultiColumnAdapterView |
( |
Context |
context, |
|
|
AttributeSet |
attrs |
|
) |
| |
|
inline |
| com.ab.view.pullview.AbMultiColumnAdapterView< T extends Adapter >.AbMultiColumnAdapterView |
( |
Context |
context, |
|
|
AttributeSet |
attrs, |
|
|
int |
defStyle |
|
) |
| |
|
inline |
| void com.ab.view.pullview.AbMultiColumnAdapterView< T extends Adapter >.addView |
( |
View |
child) | |
|
|
inline |
This method is not supported and throws an UnsupportedOperationException when called.
- 参数
-
- 异常
-
| UnsupportedOperationException | Every time this method is invoked. |
| void com.ab.view.pullview.AbMultiColumnAdapterView< T extends Adapter >.addView |
( |
View |
child, |
|
|
int |
index |
|
) |
| |
|
inline |
This method is not supported and throws an UnsupportedOperationException when called.
- 参数
-
| child | Ignored. |
| index | Ignored. |
- 异常
-
| UnsupportedOperationException | Every time this method is invoked. |
| void com.ab.view.pullview.AbMultiColumnAdapterView< T extends Adapter >.addView |
( |
View |
child, |
|
|
LayoutParams |
params |
|
) |
| |
|
inline |
This method is not supported and throws an UnsupportedOperationException when called.
- 参数
-
| child | Ignored. |
| params | Ignored. |
- 异常
-
| UnsupportedOperationException | Every time this method is invoked. |
| void com.ab.view.pullview.AbMultiColumnAdapterView< T extends Adapter >.addView |
( |
View |
child, |
|
|
int |
index, |
|
|
LayoutParams |
params |
|
) |
| |
|
inline |
This method is not supported and throws an UnsupportedOperationException when called.
- 参数
-
| child | Ignored. |
| index | Ignored. |
| params | Ignored. |
- 异常
-
| UnsupportedOperationException | Every time this method is invoked. |
| boolean com.ab.view.pullview.AbMultiColumnAdapterView< T extends Adapter >.canAnimate |
( |
) | |
|
|
inlineprotected |
| void com.ab.view.pullview.AbMultiColumnAdapterView< T extends Adapter >.checkFocus |
( |
) | |
|
|
inlinepackage |
| boolean com.ab.view.pullview.AbMultiColumnAdapterView< T extends Adapter >.dispatchPopulateAccessibilityEvent |
( |
AccessibilityEvent |
event) | |
|
|
inline |
| void com.ab.view.pullview.AbMultiColumnAdapterView< T extends Adapter >.dispatchRestoreInstanceState |
( |
SparseArray< Parcelable > |
container) | |
|
|
inlineprotected |
Override to prevent thawing of any views created by the adapter.
| void com.ab.view.pullview.AbMultiColumnAdapterView< T extends Adapter >.dispatchSaveInstanceState |
( |
SparseArray< Parcelable > |
container) | |
|
|
inlineprotected |
Override to prevent freezing of any views created by the adapter.
| int com.ab.view.pullview.AbMultiColumnAdapterView< T extends Adapter >.findSyncPosition |
( |
) | |
|
|
inlinepackage |
Searches the adapter for a position matching mSyncRowId. The search starts at mSyncPosition and then alternates between moving up and moving down until 1) we find the right position, or 2) we run out of time, or 3) we have looked at every position
- 返回
- Position of the row that matches mSyncRowId, or INVALID_POSITION if it can't be found
| abstract T com.ab.view.pullview.AbMultiColumnAdapterView< T extends Adapter >.getAdapter |
( |
) | |
|
|
pure virtual |
Returns the adapter currently associated with this widget.
- 返回
- The adapter used to provide this view's content.
| .CapturedViewProperty int com.ab.view.pullview.AbMultiColumnAdapterView< T extends Adapter >.getCount |
( |
) | |
|
|
inline |
- 返回
- The number of items owned by the Adapter associated with this AdapterView. (This is the number of data items, which may be larger than the number of visible view.)
| View com.ab.view.pullview.AbMultiColumnAdapterView< T extends Adapter >.getEmptyView |
( |
) | |
|
|
inline |
When the current adapter is empty, the AdapterView can display a special view call the empty view. The empty view is used to provide feedback to the user that no data is available in this AdapterView.
- 返回
- The view to show if the adapter is empty.
| int com.ab.view.pullview.AbMultiColumnAdapterView< T extends Adapter >.getFirstVisiblePosition |
( |
) | |
|
|
inline |
Returns the position within the adapter's data set for the first item displayed on screen.
- 返回
- The position within the adapter's data set
| Object com.ab.view.pullview.AbMultiColumnAdapterView< T extends Adapter >.getItemAtPosition |
( |
int |
position) | |
|
|
inline |
Gets the data associated with the specified position in the list.
- 参数
-
| position | Which data to get |
- 返回
- The data associated with the specified position in the list
| long com.ab.view.pullview.AbMultiColumnAdapterView< T extends Adapter >.getItemIdAtPosition |
( |
int |
position) | |
|
|
inline |
| int com.ab.view.pullview.AbMultiColumnAdapterView< T extends Adapter >.getLastVisiblePosition |
( |
) | |
|
|
inline |
Returns the position within the adapter's data set for the last item displayed on screen.
- 返回
- The position within the adapter's data set
| final OnItemClickListener com.ab.view.pullview.AbMultiColumnAdapterView< T extends Adapter >.getOnItemClickListener |
( |
) | |
|
|
inline |
- 返回
- The callback to be invoked with an item in this AdapterView has been clicked, or null id no callback has been set.
| final OnItemLongClickListener com.ab.view.pullview.AbMultiColumnAdapterView< T extends Adapter >.getOnItemLongClickListener |
( |
) | |
|
|
inline |
- 返回
- The callback to be invoked with an item in this AdapterView has been clicked and held, or null id no callback as been set.
| final OnItemSelectedListener com.ab.view.pullview.AbMultiColumnAdapterView< T extends Adapter >.getOnItemSelectedListener |
( |
) | |
|
|
inline |
| int com.ab.view.pullview.AbMultiColumnAdapterView< T extends Adapter >.getPositionForView |
( |
View |
view) | |
|
|
inline |
Get the position within the adapter's data set for the view, where view is a an adapter item or a descendant of an adapter item.
- 参数
-
| view | an adapter item, or a descendant of an adapter item. This must be visible in this AdapterView at the time of the call. |
- 返回
- the position within the adapter's data set of the view, or INVALID_POSITION if the view does not correspond to a list item (or it is not currently visible).
| Object com.ab.view.pullview.AbMultiColumnAdapterView< T extends Adapter >.getSelectedItem |
( |
) | |
|
|
inline |
- 返回
- The data corresponding to the currently selected item, or null if there is nothing selected.
| .CapturedViewProperty long com.ab.view.pullview.AbMultiColumnAdapterView< T extends Adapter >.getSelectedItemId |
( |
) | |
|
|
inline |
- 返回
- The id corresponding to the currently selected item, or INVALID_ROW_ID if nothing is selected.
| .CapturedViewProperty int com.ab.view.pullview.AbMultiColumnAdapterView< T extends Adapter >.getSelectedItemPosition |
( |
) | |
|
|
inline |
Return the position of the currently selected item within the adapter's data set
- 返回
- int Position (starting at 0), or INVALID_POSITION if there is nothing selected.
| abstract View com.ab.view.pullview.AbMultiColumnAdapterView< T extends Adapter >.getSelectedView |
( |
) | |
|
|
pure virtual |
- 返回
- The view corresponding to the currently selected item, or null if nothing is selected
| void com.ab.view.pullview.AbMultiColumnAdapterView< T extends Adapter >.handleDataChanged |
( |
) | |
|
|
inlinepackage |
| boolean com.ab.view.pullview.AbMultiColumnAdapterView< T extends Adapter >.isInFilterMode |
( |
) | |
|
|
inlinepackage |
Indicates whether this view is in filter mode. Filter mode can for instance be enabled by a user when typing on the keyboard.
- 返回
- True if the view is in filter mode, false otherwise.
| int com.ab.view.pullview.AbMultiColumnAdapterView< T extends Adapter >.lookForSelectablePosition |
( |
int |
position, |
|
|
boolean |
lookDown |
|
) |
| |
|
inlinepackage |
Find a position that can be selected (i.e., is not a separator).
- 参数
-
| position | The starting position to look at. |
| lookDown | Whether to look down for other positions. |
- 返回
- The next selectable position starting at position and then searching either up or down. Returns INVALID_POSITION if nothing can be found.
| void com.ab.view.pullview.AbMultiColumnAdapterView< T extends Adapter >.onLayout |
( |
boolean |
changed, |
|
|
int |
left, |
|
|
int |
top, |
|
|
int |
right, |
|
|
int |
bottom |
|
) |
| |
|
inlineprotected |
| boolean com.ab.view.pullview.AbMultiColumnAdapterView< T extends Adapter >.performItemClick |
( |
View |
view, |
|
|
int |
position, |
|
|
long |
id |
|
) |
| |
|
inline |
Call the OnItemClickListener, if it is defined.
- 参数
-
| view | The view within the AdapterView that was clicked. |
| position | The position of the view in the adapter. |
| id | The row id of the item that was clicked. |
- 返回
- True if there was an assigned OnItemClickListener that was called, false otherwise is returned.
| void com.ab.view.pullview.AbMultiColumnAdapterView< T extends Adapter >.rememberSyncState |
( |
) | |
|
|
inlinepackage |
Remember enough information to restore the screen state when the data has changed.
| void com.ab.view.pullview.AbMultiColumnAdapterView< T extends Adapter >.removeAllViews |
( |
) | |
|
|
inline |
This method is not supported and throws an UnsupportedOperationException when called.
- 异常
-
| UnsupportedOperationException | Every time this method is invoked. |
| void com.ab.view.pullview.AbMultiColumnAdapterView< T extends Adapter >.removeView |
( |
View |
child) | |
|
|
inline |
This method is not supported and throws an UnsupportedOperationException when called.
- 参数
-
- 异常
-
| UnsupportedOperationException | Every time this method is invoked. |
| void com.ab.view.pullview.AbMultiColumnAdapterView< T extends Adapter >.removeViewAt |
( |
int |
index) | |
|
|
inline |
This method is not supported and throws an UnsupportedOperationException when called.
- 参数
-
- 异常
-
| UnsupportedOperationException | Every time this method is invoked. |
| abstract void com.ab.view.pullview.AbMultiColumnAdapterView< T extends Adapter >.setAdapter |
( |
T |
adapter) | |
|
|
pure virtual |
Sets the adapter that provides the data and the views to represent the data in this widget.
- 参数
-
| adapter | The adapter to use to create this view's content. |
| void com.ab.view.pullview.AbMultiColumnAdapterView< T extends Adapter >.setEmptyView |
( |
View |
emptyView) | |
|
|
inline |
Sets the view to show if the adapter is empty
| void com.ab.view.pullview.AbMultiColumnAdapterView< T extends Adapter >.setFocusable |
( |
boolean |
focusable) | |
|
|
inline |
| void com.ab.view.pullview.AbMultiColumnAdapterView< T extends Adapter >.setFocusableInTouchMode |
( |
boolean |
focusable) | |
|
|
inline |
| void com.ab.view.pullview.AbMultiColumnAdapterView< T extends Adapter >.setOnClickListener |
( |
OnClickListener |
l) | |
|
|
inline |
| void com.ab.view.pullview.AbMultiColumnAdapterView< T extends Adapter >.setOnItemClickListener |
( |
OnItemClickListener |
listener) | |
|
|
inline |
Register a callback to be invoked when an item in this AdapterView has been clicked.
- 参数
-
| listener | The callback that will be invoked. |
| void com.ab.view.pullview.AbMultiColumnAdapterView< T extends Adapter >.setOnItemLongClickListener |
( |
OnItemLongClickListener |
listener) | |
|
|
inline |
Register a callback to be invoked when an item in this AdapterView has been clicked and held
- 参数
-
| listener | The callback that will run |
| void com.ab.view.pullview.AbMultiColumnAdapterView< T extends Adapter >.setOnItemSelectedListener |
( |
OnItemSelectedListener |
listener) | |
|
|
inline |
Register a callback to be invoked when an item in this AdapterView has been selected.
- 参数
-
| listener | The callback that will run |
| abstract void com.ab.view.pullview.AbMultiColumnAdapterView< T extends Adapter >.setSelection |
( |
int |
position) | |
|
|
pure virtual |
Sets the currently selected item. To support accessibility subclasses that override this method must invoke the overriden super method first.
- 参数
-
| position | Index (starting at 0) of the data item to be selected. |
| void com.ab.view.pullview.AbMultiColumnAdapterView< T extends Adapter >.updateEmptyStatus |
( |
boolean |
empty) | |
|
|
inlineprivate |
Update the status of the list based on the empty parameter. If empty is true and we have an empty view, display it. In all the other cases, make sure that the listview is VISIBLE and that the empty view is GONE (if it's not null).
| final int com.ab.view.pullview.AbMultiColumnAdapterView< T extends Adapter >.INVALID_POSITION = -1 |
|
static |
Represents an invalid position. All valid positions are in the range 0 to 1 less than the number of items in the current adapter.
| final long com.ab.view.pullview.AbMultiColumnAdapterView< T extends Adapter >.INVALID_ROW_ID = Long.MIN_VALUE |
|
static |
Represents an empty or invalid row id
| final int com.ab.view.pullview.AbMultiColumnAdapterView< T extends Adapter >.ITEM_VIEW_TYPE_HEADER_OR_FOOTER = -2 |
|
static |
| final int com.ab.view.pullview.AbMultiColumnAdapterView< T extends Adapter >.ITEM_VIEW_TYPE_IGNORE = -1 |
|
static |
| boolean com.ab.view.pullview.AbMultiColumnAdapterView< T extends Adapter >.mBlockLayoutRequests = false |
|
package |
When set to true, calls to requestLayout() will not propagate up the parent hierarchy. This is used to layout the children during a layout pass.
| boolean com.ab.view.pullview.AbMultiColumnAdapterView< T extends Adapter >.mDataChanged |
|
package |
True if the data has changed since the last layout
| boolean com.ab.view.pullview.AbMultiColumnAdapterView< T extends Adapter >.mDesiredFocusableInTouchModeState |
|
private |
| boolean com.ab.view.pullview.AbMultiColumnAdapterView< T extends Adapter >.mDesiredFocusableState |
|
private |
Indicates what focusable state is requested when calling setFocusable(). In addition to this, this view has other criteria for actually determining the focusable state (such as whether its empty or the text filter is shown).
- 参见
- setFocusable(boolean)
-
checkFocus()
| View com.ab.view.pullview.AbMultiColumnAdapterView< T extends Adapter >.mEmptyView |
|
private |
View to show if there are no items to show.
| .ExportedProperty int com.ab.view.pullview.AbMultiColumnAdapterView< T extends Adapter >.mFirstPosition = 0 |
|
package |
The position of the first child displayed
| boolean com.ab.view.pullview.AbMultiColumnAdapterView< T extends Adapter >.mInLayout = false |
|
package |
Indicates that this view is currently being laid out.
| .ExportedProperty int com.ab.view.pullview.AbMultiColumnAdapterView< T extends Adapter >.mItemCount |
|
package |
The number of items in the current adapter.
| int com.ab.view.pullview.AbMultiColumnAdapterView< T extends Adapter >.mLayoutHeight |
|
private |
Our height after the last layout
| boolean com.ab.view.pullview.AbMultiColumnAdapterView< T extends Adapter >.mNeedSync = false |
|
package |
True if we need to sync to mSyncRowId
| int com.ab.view.pullview.AbMultiColumnAdapterView< T extends Adapter >.mOldItemCount |
|
package |
The number of items in the adapter before a data changed event occured.
| int com.ab.view.pullview.AbMultiColumnAdapterView< T extends Adapter >.mOldSelectedPosition = INVALID_POSITION |
|
package |
The last selected position we used when notifying
| long com.ab.view.pullview.AbMultiColumnAdapterView< T extends Adapter >.mOldSelectedRowId = INVALID_ROW_ID |
|
package |
The id of the last selected position we used when notifying
| OnItemClickListener com.ab.view.pullview.AbMultiColumnAdapterView< T extends Adapter >.mOnItemClickListener |
|
package |
The listener that receives notifications when an item is clicked.
| OnItemLongClickListener com.ab.view.pullview.AbMultiColumnAdapterView< T extends Adapter >.mOnItemLongClickListener |
|
package |
The listener that receives notifications when an item is long clicked.
| OnItemSelectedListener com.ab.view.pullview.AbMultiColumnAdapterView< T extends Adapter >.mOnItemSelectedListener |
|
package |
The listener that receives notifications when an item is selected.
| int com.ab.view.pullview.AbMultiColumnAdapterView< T extends Adapter >.mSpecificTop |
|
package |
The offset in pixels from the top of the AdapterView to the top of the view to select during the next layout.
| long com.ab.view.pullview.AbMultiColumnAdapterView< T extends Adapter >.mSyncHeight |
|
package |
Height of the view when mSyncPosition and mSyncRowId where set
| int com.ab.view.pullview.AbMultiColumnAdapterView< T extends Adapter >.mSyncMode |
|
package |
| int com.ab.view.pullview.AbMultiColumnAdapterView< T extends Adapter >.mSyncPosition |
|
package |
Position from which to start looking for mSyncRowId
| long com.ab.view.pullview.AbMultiColumnAdapterView< T extends Adapter >.mSyncRowId = INVALID_ROW_ID |
|
package |
Row id to look for when data has changed
| final int com.ab.view.pullview.AbMultiColumnAdapterView< T extends Adapter >.SYNC_FIRST_POSITION = 1 |
|
staticpackage |
Sync based on the first child displayed
| final int com.ab.view.pullview.AbMultiColumnAdapterView< T extends Adapter >.SYNC_MAX_DURATION_MILLIS = 100 |
|
staticpackage |
| final int com.ab.view.pullview.AbMultiColumnAdapterView< T extends Adapter >.SYNC_SELECTED_POSITION = 0 |
|
staticpackage |
Sync based on the selected child
该类的文档由以下文件生成: