Code example for List

Methods: indexOf

0
 
    public void setSelectionBehavior(SelectionBehavior selectionBehavior) {
        mSelectionBehavior = selectionBehavior;
    } 
 
    public int indexOfItem(SliderItem item) {
        return mItems.indexOf(item);
    } 
 
    public void invalidate() { 
        if (mAdapter != null) {
            mAdapter.notifyDataSetInvalidated();
        } 
    } 
 
    public boolean isHandleHomeKey() { 
        return mHandleHomeKey;
    } 
 
    public void setHandleHomeKey(boolean handleHomeKey) {
        mHandleHomeKey = handleHomeKey;