Code example for ExpandableListView

Methods: getSelectedId

0
     * Gets the ID of the currently selected group or child. 
     * 
     * @return The ID of the currently selected group or child. 
     */ 
    public long getSelectedId() { 
        return mList.getSelectedId();
    } 
 
    /** 
     * Gets the position (in packed position representation) of the currently 
     * selected group or child. Use 
     * {@link ExpandableListView#getPackedPositionType}, 
     * {@link ExpandableListView#getPackedPositionGroup}, and 
     * {@link ExpandableListView#getPackedPositionChild} to unpack the returned 
     * packed position. 
     * 
     * @return A packed position representation containing the currently 
     *         selected group or child's position and type. 
     */ 
    public long getSelectedPosition() {