protected static boolean matchesResourceIdName ( View view , String matches ) { if ( view . getId ( ) == View . NO_ID ) return false ; final String resourceEntryName = view . getResources ( ) . getResourceEntryName ( view . getId ( ) ) ; return resourceEntryName . equalsIgnoreCase ( matches ) ; }
Use to match a view against a potential view id . Such as ActionBar title etc .