is there way create submenu in copy/paste menu of edittext on android?
i've called setcustomselectionactionmodecallback on edittext , can add items menu in oncreateactionmode method, can't seem create submenu. when creating submenu, items i've added submenu end in parent menu. happens both when creating submenu , children programmatically , when using menuinflater.
share u code.for add in layout:
<menu> <!-----submenu----> <item> android:id"@+id/submenu1" android:title="menu1" android:orderincategory="1"/> <!-----first position----> <item> android:id"@+id/submenu2" android:title="menu2" android:orderincategory="2"/> </menu>
now u need in main activity create methodpublic boolean oncontextitemselected(menuitem item) {
Comments
Post a Comment