Skip to content

Commit f8692b1

Browse files
committed
add menu in res
1 parent 7036702 commit f8692b1

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<menu xmlns:android="http://schemas.android.com/apk/res/android"
3+
xmlns:app="http://schemas.android.com/apk/res-auto"
4+
xmlns:tools="http://schemas.android.com/tools">
5+
6+
<item
7+
android:id="@+id/github"
8+
android:layout_width="wrap_content"
9+
android:layout_height="wrap_content"
10+
android:icon="@drawable/ic_github"
11+
android:iconTint="#FFFFFF"
12+
android:title="@string/github"
13+
android:tooltipText="@string/github"
14+
app:showAsAction="ifRoom"
15+
tools:targetApi="26" />
16+
17+
<item
18+
android:id="@+id/check_update"
19+
android:title="@string/check_for_update"
20+
app:showAsAction="never" />
21+
</menu>
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<resources>
33
<string name="app_name">Current Activity</string>
4+
<string name="github">GitHub</string>
5+
<string name="check_for_update">Check for Update</string>
46
</resources>

0 commit comments

Comments
 (0)