Commit 293a2f53 by Paktalin

Menu done

parent 29537765
...@@ -80,17 +80,15 @@ public class MainActivity extends AppCompatActivity ...@@ -80,17 +80,15 @@ public class MainActivity extends AppCompatActivity
// Handle navigation view item clicks here. // Handle navigation view item clicks here.
int id = item.getItemId(); int id = item.getItemId();
if (id == R.id.nav_camera) { if (id == R.id.map) {
// Handle the camera action // Handle the camera action
} else if (id == R.id.nav_gallery) { } else if (id == R.id.wine) {
} else if (id == R.id.nav_slideshow) { } else if (id == R.id.collection) {
} else if (id == R.id.nav_manage) { } else if (id == R.id.community) {
} else if (id == R.id.nav_share) { } else if (id == R.id.settings) {
} else if (id == R.id.nav_send) {
} }
......
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent"
android:layout_height="match_parent">
</android.support.constraint.ConstraintLayout>
\ No newline at end of file
...@@ -5,33 +5,29 @@ ...@@ -5,33 +5,29 @@
<group android:checkableBehavior="single"> <group android:checkableBehavior="single">
<item <item
android:id="@+id/nav_camera" android:id="@+id/map"
android:icon="@drawable/ic_menu_camera" android:icon="@drawable/maps_icon"
android:title="Import" /> android:title="Cellar map" />
<item <item
android:id="@+id/nav_gallery" android:id="@+id/wine"
android:icon="@drawable/ic_menu_gallery" android:icon="@drawable/wine_icon"
android:title="Gallery" /> android:title="Select wine" />
<item <item
android:id="@+id/nav_slideshow" android:id="@+id/collection"
android:icon="@drawable/ic_menu_slideshow" android:icon="@drawable/favorites_icon"
android:title="Slideshow" /> android:title="Your collection" />
<item <item
android:id="@+id/nav_manage" android:id="@+id/community"
android:icon="@drawable/ic_menu_manage" android:icon="@drawable/community_icon"
android:title="Tools" /> android:title="Your friends choice" />
</group> </group>
<item android:title="Communicate"> <item android:title="Account">
<menu> <menu>
<item <item
android:id="@+id/nav_share" android:id="@+id/settings"
android:icon="@drawable/ic_menu_share" android:icon="@drawable/settings_icon"
android:title="Share" /> android:title="Settings" />
<item
android:id="@+id/nav_send"
android:icon="@drawable/ic_menu_send"
android:title="Send" />
</menu> </menu>
</item> </item>
......
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<resources> <resources>
<color name="colorPrimary">#D21404</color> <color name="colorPrimary">#C41E32</color>
<color name="colorPrimaryDark">#4E0707</color> <color name="colorPrimaryDark">#4E0707</color>
<color name="colorAccent">#000</color> <color name="colorAccent">#000</color>
</resources> </resources>
<resources> <resources>
<!-- Base application theme. --> <!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"> <style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
<!-- Customize your theme here. --> <!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorPrimary</item> <item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item> <item name="colorPrimaryDark">@color/colorPrimaryDark</item>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment