Google은 흑인 공동체를 위한 인종 간 평등을 진전시키기 위해 노력하고 있습니다. Google에서 어떤 노력을 하고 있는지 확인하세요.

MenuCompat

public final class MenuCompat
extends Object

java.lang.Object
   ↳ androidx.core.view.MenuCompat


Helper for accessing features in Menu.

Summary

Public methods

static void setGroupDividerEnabled(Menu menu, boolean enabled)

Enable or disable the group dividers.

static void setShowAsAction(MenuItem item, int actionEnum)

This method is deprecated. Use MenuItem.setShowAsAction(int) directly.

Inherited methods

Public methods

setGroupDividerEnabled

public static void setGroupDividerEnabled (Menu menu, 
                boolean enabled)

Enable or disable the group dividers.

Parameters
menu Menu: Menu to enable/disable dividers on.

enabled boolean: True if enabled

setShowAsAction

public static void setShowAsAction (MenuItem item, 
                int actionEnum)

This method is deprecated.
Use MenuItem.setShowAsAction(int) directly.

Call MenuItem.setShowAsAction().

Parameters
item MenuItem

actionEnum int