-
-
Save codeforfun-jp/9938ff2632bf29dfb36645fb94b14188 to your computer and use it in GitHub Desktop.
【Java】How to create an option menu 1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<menu xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:app="http://schemas.android.com/apk/res-auto"> | |
<item | |
android:id="@+id/action_user" | |
android:icon="@drawable/ic_baseline_person_24" | |
android:orderInCategory="2" | |
android:title="アカウント" | |
app:showAsAction="ifRoom" /> | |
<item | |
android:id="@+id/action_home" | |
android:icon="@drawable/ic_baseline_home_24" | |
android:orderInCategory="1" | |
android:title="ホーム" | |
app:showAsAction="ifRoom" /> | |
<item | |
android:id="@+id/action_map" | |
android:title="地図を見る" | |
app:showAsAction="never" /> | |
<item android:title="お問い合わせ"> | |
<menu> | |
<item | |
android:id="@+id/action_tel" | |
android:icon="@drawable/ic_baseline_phone_24" | |
android:title="電話" /> | |
<item | |
android:id="@+id/action_mail" | |
android:icon="@drawable/ic_baseline_email_24" | |
android:title="メール" /> | |
</menu> | |
</item> | |
</menu> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment