commit d0288cc8deca76301fa5225410b81844152ad353 Author: hmkcode Date: Mon Sep 2 19:18:09 2013 +0300 android options menu android options menu diff --git a/android-options-menu/.classpath b/android-options-menu/.classpath new file mode 100644 index 0000000..7bc01d9 --- /dev/null +++ b/android-options-menu/.classpath @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/android-options-menu/AndroidManifest.xml b/android-options-menu/AndroidManifest.xml new file mode 100644 index 0000000..66cb763 --- /dev/null +++ b/android-options-menu/AndroidManifest.xml @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + diff --git a/android-options-menu/ic_launcher-web.png b/android-options-menu/ic_launcher-web.png new file mode 100644 index 0000000..a18cbb4 Binary files /dev/null and b/android-options-menu/ic_launcher-web.png differ diff --git a/android-options-menu/res/drawable-hdpi/ic_action_search.png b/android-options-menu/res/drawable-hdpi/ic_action_search.png new file mode 100644 index 0000000..f12e005 Binary files /dev/null and b/android-options-menu/res/drawable-hdpi/ic_action_search.png differ diff --git a/android-options-menu/res/drawable-hdpi/ic_content_copy.png b/android-options-menu/res/drawable-hdpi/ic_content_copy.png new file mode 100644 index 0000000..72c6bc6 Binary files /dev/null and b/android-options-menu/res/drawable-hdpi/ic_content_copy.png differ diff --git a/android-options-menu/res/drawable-hdpi/ic_launcher.png b/android-options-menu/res/drawable-hdpi/ic_launcher.png new file mode 100644 index 0000000..288b665 Binary files /dev/null and b/android-options-menu/res/drawable-hdpi/ic_launcher.png differ diff --git a/android-options-menu/res/drawable-hdpi/ic_social_share.png b/android-options-menu/res/drawable-hdpi/ic_social_share.png new file mode 100644 index 0000000..c329f58 Binary files /dev/null and b/android-options-menu/res/drawable-hdpi/ic_social_share.png differ diff --git a/android-options-menu/res/layout/activity_main.xml b/android-options-menu/res/layout/activity_main.xml new file mode 100644 index 0000000..168c9b8 --- /dev/null +++ b/android-options-menu/res/layout/activity_main.xml @@ -0,0 +1,16 @@ + + + + + diff --git a/android-options-menu/res/menu/main.xml b/android-options-menu/res/menu/main.xml new file mode 100644 index 0000000..1e2e3e5 --- /dev/null +++ b/android-options-menu/res/menu/main.xml @@ -0,0 +1,20 @@ + + + + + diff --git a/android-options-menu/res/values/strings.xml b/android-options-menu/res/values/strings.xml new file mode 100644 index 0000000..d7a8800 --- /dev/null +++ b/android-options-menu/res/values/strings.xml @@ -0,0 +1,12 @@ + + + + App + + Search + Copy + Share + + Hello world! + + diff --git a/android-options-menu/src/com/hmkcode/android/MainActivity.java b/android-options-menu/src/com/hmkcode/android/MainActivity.java new file mode 100644 index 0000000..663874b --- /dev/null +++ b/android-options-menu/src/com/hmkcode/android/MainActivity.java @@ -0,0 +1,22 @@ +package com.hmkcode.android; + +import android.os.Bundle; +import android.app.Activity; +import android.view.Menu; + +public class MainActivity extends Activity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_main); + } + + @Override + public boolean onCreateOptionsMenu(Menu menu) { + // Inflate the menu; this adds items to the action bar if it is present. + getMenuInflater().inflate(R.menu.main, menu); + return true; + } + +}