Changing the Conventions of the Action Menu

Asked 2 years ago, Updated 2 years ago, 31 views

In Android Studio, how do I change the option menu (the vertical one with ...) to "settings" or text notation instead of ...?

<menu xmlns:android="http://schemas.android.com/apk/res/android"
     xmlns:app="http://schemas.android.com/apk/res-auto">
 <item
  android: id="@+id/Setting"
  android: title="@string/Setting"
  app:showAsAction="ifRoom">
  <menu>
   <item
     android: id="@+id/id1"
     android: title="@string/Setting1"/>
   <item
     android: id="@+id/id2"
     android: title="@string/Setting2"/>
   <item
     android: id="@+id/id3"
     android: title="@string/Setting3"/>
  </menu>
 </item>
</menu>

I was able to nest like this, but...→Settings→Each item has one more tier.
Originally, I want to set → each item.
Please.

android

2022-09-30 11:37

1 Answers

Wouldn't it be possible to set app:showAsAction="ifRoom" to app:showAsAction="always" to solve this problem?


2022-09-30 11:37

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.