Java Code Examples for android.view.MenuItem#isActionViewExpanded()

The following examples show how to use android.view.MenuItem#isActionViewExpanded() . These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source Project: lttrs-android   File: LttrsActivity.java    License: Apache License 2.0 5 votes vote down vote up
@Override
public boolean onMenuItemActionCollapse(MenuItem item) {
    if (item.isActionViewExpanded()) {
        animateCloseSearchToolbar();
    }
    if (getCurrentDestinationId() == R.id.search) {
        final NavController navController = Navigation.findNavController(
                this,
                R.id.nav_host_fragment
        );
        navController.navigateUp();
    }
    return true;
}
 
Example 2
Source Project: MiBandDecompiled   File: G.java    License: Apache License 2.0 4 votes vote down vote up
public static boolean c(MenuItem menuitem)
{
    return menuitem.isActionViewExpanded();
}
 
Example 3
public static boolean isActionViewExpanded(MenuItem item) {
    return item.isActionViewExpanded();
}
 
Example 4
public static boolean isActionViewExpanded(MenuItem item) {
    return item.isActionViewExpanded();
}
 
Example 5
Source Project: V.FlyoutTest   File: MenuItemCompatIcs.java    License: MIT License 4 votes vote down vote up
public static boolean isActionViewExpanded(MenuItem item) {
    return item.isActionViewExpanded();
}
 
Example 6
Source Project: guideshow   File: MenuItemCompatIcs.java    License: MIT License 4 votes vote down vote up
public static boolean isActionViewExpanded(MenuItem item) {
    return item.isActionViewExpanded();
}