android options menu
android options menu
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 1.7 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 1.4 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 7.5 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 1.6 KiB |
@@ -0,0 +1,16 @@
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:paddingBottom="@dimen/activity_vertical_margin"
|
||||
android:paddingLeft="@dimen/activity_horizontal_margin"
|
||||
android:paddingRight="@dimen/activity_horizontal_margin"
|
||||
android:paddingTop="@dimen/activity_vertical_margin"
|
||||
tools:context=".MainActivity" >
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/hello_world" />
|
||||
|
||||
</RelativeLayout>
|
||||
@@ -0,0 +1,20 @@
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android" >
|
||||
<item
|
||||
android:id="@+id/action_search"
|
||||
android:orderInCategory="100"
|
||||
android:showAsAction="always"
|
||||
android:icon="@drawable/ic_action_search"
|
||||
android:title="@string/action_search"/>
|
||||
<item
|
||||
android:id="@+id/action_copy"
|
||||
android:orderInCategory="100"
|
||||
android:showAsAction="always"
|
||||
android:icon="@drawable/ic_content_copy"
|
||||
android:title="@string/action_copy"/>
|
||||
<item
|
||||
android:id="@+id/action_share"
|
||||
android:orderInCategory="100"
|
||||
android:showAsAction="always"
|
||||
android:icon="@drawable/ic_social_share"
|
||||
android:title="@string/action_share"/>
|
||||
</menu>
|
||||
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<string name="app_name">App</string>
|
||||
|
||||
<string name="action_search">Search</string>
|
||||
<string name="action_copy">Copy</string>
|
||||
<string name="action_share">Share</string>
|
||||
|
||||
<string name="hello_world">Hello world!</string>
|
||||
|
||||
</resources>
|
||||
Reference in New Issue
Block a user