public boolean clearSelection ( boolean requestLayout ) { Log . d ( Log . SUBSYSTEM . LAYOUT , TAG , "clearSelection [%d]" , mSelectedItemsList . size ( ) ) ; boolean updateLayout = false ; List < ListItemHostWidget > views = getAllHosts ( ) ; for ( ListItemHostWidget host : views ) { if ( host . isSelected ( ) ) { host . setSelected ( false ) ; updateLayout = true ; if ( requestLayout ) { host . requestLayout ( ) ; } } } clearSelectedItemsList ( ) ; return updateLayout ; }
Clear the selection of all items .