samples/Support4Demos/src/main/java/com/example/android/supportv4/widget/ExploreByTouchHelperActivity.java
public CustomItem addItem(String description, float left, float top, float right,
                                  float bottom) {
            final CustomItem item = new CustomItem();
            item.mId = mItems.size();
            item.mBounds = new RectF(left, top, right, bottom);
            item.mDescription = description;
            item.mChecked = false;
            mItems.add(item);
            return item;
        }
/**
         * Adds an item to the custom view. The item is positioned relative to
         * the custom view bounds and its descriptions is drawn at its center.
         *
         * @param description The item's description.
         * @param top Top coordinate as a fraction of the parent height, range
         *            is [0,1].
         * @param left Left coordinate as a fraction of the parent width, range
         *            is [0,1].
         * @param bottom Bottom coordinate as a fraction of the parent height,
         *            range is [0,1].
         * @param right Right coordinate as a fraction of the parent width,
         *            range is [0,1].
         */
Adds an item to the custom view. The item is positioned relative to
the custom view bounds and its descriptions is drawn at its center.

@param description The item's description.
@param top Top coordinate as a fraction of the parent height, range
is [0,1].
@param left Left coordinate as a fraction of the parent width, range
is [0,1].
@param bottom Bottom coordinate as a fraction of the parent height,
range is [0,1].
@param right Right coordinate as a fraction of the parent width,
range is [0,1].
Adds an item to the custom view . The item is positioned relative to the custom view bounds and its descriptions is drawn at its center . @param description The item ' s description . @param top Top coordinate as a fraction of the parent height range is [ 0 1 ] . @param left Left coordinate as a fraction of the parent width range is [ 0 1 ] . @param bottom Bottom coordinate as a fraction of the parent height range is [ 0 1 ] . @param right Right coordinate as a fraction of the parent width range is [ 0 1 ] .
public CustomItem addItem(String description, float left, float top, float right,
                                  float bottom) {
            final CustomItem item = new CustomItem();
            item.mId = mItems.size();
            item.mBounds = new RectF(left, top, right, bottom);
            item.mDescription = description;
            item.mChecked = false;
            mItems.add(item);
            return item;
        }
public CustomItem addItem ( String description , float left , float top , float right , float bottom ) { final CustomItem item = new CustomItem ( ) ; item . mId = mItems . size ( ) ; item . mBounds = new RectF ( left , top , right , bottom ) ; item . mDescription = description ; item . mChecked = false ; mItems . add ( item ) ; return item ; }
Adds an item to the custom view.
Adds an item to the custom view .