main flow
git status
This commit is contained in:
4
app/src/main/res/drawable/ic_bottom_nav_item_cart.xml
Normal file
4
app/src/main/res/drawable/ic_bottom_nav_item_cart.xml
Normal file
@@ -0,0 +1,4 @@
|
||||
<vector android:height="24dp" android:viewportHeight="196.095"
|
||||
android:viewportWidth="196.095" android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<path android:fillColor="#FFFFFF" android:pathData="M155.16,78.07l-24.13,-48.27c2.44,-2.63 3.97,-6.13 3.97,-9.99c0,-8.12 -6.57,-14.7 -14.68,-14.7c-8.12,0 -14.69,6.57 -14.69,14.7c0,7.94 6.31,14.37 14.19,14.64l21.82,43.62H54.49l21.81,-43.62c7.87,-0.27 14.19,-6.7 14.19,-14.64c0,-8.12 -6.58,-14.7 -14.69,-14.7c-8.11,0 -14.7,6.57 -14.7,14.7c0,3.87 1.54,7.36 3.98,9.99l-24.14,48.27H0l42.49,112.92h111.11l42.5,-112.92H155.16zM78.09,147.41v-25.77h39.94v25.77H78.09zM118.03,159.51v19.36H78.09v-19.36H118.03zM39.06,147.49l-9.72,-25.85h36.64v25.78H39.08L39.06,147.49L39.06,147.49zM78.09,109.53V90.17h39.94v19.36H78.09zM130.13,121.64h36.63l-9.71,25.84v-0.07h-26.9v-25.77H130.13zM130.13,109.53V90.17h48.48l-7.28,19.36H130.13zM65.98,90.17v19.36H24.78l-7.28,-19.36H65.98zM43.59,159.51h22.39v19.36H50.87L43.59,159.51zM130.13,178.88v-19.36h22.39l-7.29,19.36H130.13z"/>
|
||||
</vector>
|
||||
6
app/src/main/res/drawable/ic_bottom_nav_item_info.xml
Normal file
6
app/src/main/res/drawable/ic_bottom_nav_item_info.xml
Normal file
@@ -0,0 +1,6 @@
|
||||
<vector android:height="24dp" android:viewportHeight="330.0"
|
||||
android:viewportWidth="330.0" android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<path android:fillColor="#FFFFFF" android:pathData="M165,0C74,0 0,74 0,165C0,256 74,330 165,330s165,-74 165,-165C330,74 256,0 165,0zM165,300c-74.4,0 -135,-60.6 -135,-135C30,90.6 90.6,30 165,30s135,60.6 135,135C300,239.4 239.4,300 165,300z"/>
|
||||
<path android:fillColor="#FFFFFF" android:pathData="M165,70c-11,0 -20,9 -20,20c0,11 9,20 20,20c11,0 20,-9 20,-20C185,79 176,70 165,70z"/>
|
||||
<path android:fillColor="#FFFFFF" android:pathData="M165,140c-8.3,0 -15,6.7 -15,15v90c0,8.3 6.7,15 15,15c8.3,0 15,-6.7 15,-15v-90C180,146.7 173.3,140 165,140z"/>
|
||||
</vector>
|
||||
8
app/src/main/res/drawable/ic_bottom_nav_item_order.xml
Normal file
8
app/src/main/res/drawable/ic_bottom_nav_item_order.xml
Normal file
@@ -0,0 +1,8 @@
|
||||
<vector android:height="24dp" android:viewportHeight="511.707"
|
||||
android:viewportWidth="511.707" android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<path android:fillColor="#FFFFFF" android:pathData="M264.5,162.4v-9.1c0,-5.1 -3.4,-8.5 -8.5,-8.5s-8.5,3.4 -8.5,8.5v9.1c-34.3,4.2 -60.6,33 -60.6,67.7c0,5.1 3.4,8.5 8.5,8.5h121.2c5.1,0 8.5,-3.4 8.5,-8.5C325.1,195.4 298.8,166.5 264.5,162.4zM204.8,221.6c3.4,-24.7 24.7,-42.7 51.2,-42.7c25.6,0 46.9,17.9 51.2,42.7L204.8,221.6z"/>
|
||||
<path android:fillColor="#FFFFFF" android:pathData="M187.7,255.7c-5.1,0 -8.5,3.4 -8.5,8.5s3.4,8.5 8.5,8.5h136.5c5.1,0 8.5,-3.4 8.5,-8.5s-3.4,-8.5 -8.5,-8.5L187.7,255.7z"/>
|
||||
<path android:fillColor="#FFFFFF" android:pathData="M366.9,85h-34.1v-76.8c0,-2.6 -1.7,-6 -4.3,-6.8c-2.6,-1.7 -6,-1.7 -8.5,-0.9l-179.2,85.3c-3.4,1.7 -5.1,5.1 -4.3,9.4v407.9c0,5.1 3.4,8.5 8.5,8.5h221.9c5.1,0 8.5,-3.4 8.5,-8.5v-409.6C375.4,88.5 372,85 366.9,85zM315.7,21.9L315.7,85h-133.1L315.7,21.9zM358.4,494.6h-204.8L153.6,102.1h170.7h34.1L358.4,494.6z"/>
|
||||
<path android:fillColor="#FFFFFF" android:pathData="M315.7,443.4L196.2,443.4c-5.1,0 -8.5,3.4 -8.5,8.5c0,5.1 3.4,8.5 8.5,8.5h119.5c5.1,0 8.5,-3.4 8.5,-8.5C324.2,446.9 320.8,443.4 315.7,443.4z"/>
|
||||
<path android:fillColor="#FFFFFF" android:pathData="M281.6,426.4c5.1,0 8.5,-3.4 8.5,-8.5s-3.4,-8.5 -8.5,-8.5h-51.2c-5.1,0 -8.5,3.4 -8.5,8.5s3.4,8.5 8.5,8.5L281.6,426.4z"/>
|
||||
</vector>
|
||||
7
app/src/main/res/drawable/ic_bottom_nav_item_profile.xml
Normal file
7
app/src/main/res/drawable/ic_bottom_nav_item_profile.xml
Normal file
@@ -0,0 +1,7 @@
|
||||
<vector android:height="24dp" android:viewportHeight="350.0"
|
||||
android:viewportWidth="350.0" android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<path android:fillColor="#FFFFFF" android:pathData="M175,171.2c38.9,0 70.5,-38.3 70.5,-85.6C245.5,38.3 235.1,0 175,0s-70.5,38.3 -70.5,85.6C104.5,132.9 136.1,171.2 175,171.2z"/>
|
||||
<path android:fillColor="#FFFFFF" android:pathData="M41.9,301.9C41.9,299 41.9,301 41.9,301.9L41.9,301.9z"/>
|
||||
<path android:fillColor="#FFFFFF" android:pathData="M308.1,304.1C308.1,303.3 308.1,298.6 308.1,304.1L308.1,304.1z"/>
|
||||
<path android:fillColor="#FFFFFF" android:pathData="M307.9,298.4c-1.3,-82.3 -12.1,-105.8 -94.4,-120.7c0,0 -11.6,14.8 -38.6,14.8s-38.6,-14.8 -38.6,-14.8c-81.4,14.7 -92.8,37.8 -94.3,118c-0.1,6.5 -0.2,6.9 -0.2,6.1c0,1.4 0,4.1 0,8.7c0,0 19.6,39.5 133.1,39.5c113.5,0 133.1,-39.5 133.1,-39.5c0,-3 0,-5 0,-6.4C308.1,304.6 308,303.7 307.9,298.4z"/>
|
||||
</vector>
|
||||
6
app/src/main/res/drawable/ic_hamburger_menu.xml
Normal file
6
app/src/main/res/drawable/ic_hamburger_menu.xml
Normal file
@@ -0,0 +1,6 @@
|
||||
<vector android:height="24dp" android:viewportHeight="53.0"
|
||||
android:viewportWidth="53.0" android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<path android:fillColor="#FFFFFF" android:pathData="M2,13.5h49c1.1,0 2,-0.9 2,-2s-0.9,-2 -2,-2H2c-1.1,0 -2,0.9 -2,2S0.9,13.5 2,13.5z"/>
|
||||
<path android:fillColor="#FFFFFF" android:pathData="M2,28.5h49c1.1,0 2,-0.9 2,-2s-0.9,-2 -2,-2H2c-1.1,0 -2,0.9 -2,2S0.9,28.5 2,28.5z"/>
|
||||
<path android:fillColor="#FFFFFF" android:pathData="M2,43.5h49c1.1,0 2,-0.9 2,-2s-0.9,-2 -2,-2H2c-1.1,0 -2,0.9 -2,2S0.9,43.5 2,43.5z"/>
|
||||
</vector>
|
||||
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector
|
||||
xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
|
||||
<item
|
||||
android:color="@color/bottom_menu_selected_item"
|
||||
android:state_checked="true" />
|
||||
|
||||
<item android:color="@color/bottom_menu_unselected_item" />
|
||||
</selector>
|
||||
@@ -1,9 +1,155 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
<RelativeLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
tools:context="ch.pizzalink.android.activity.MainActivity">
|
||||
|
||||
</android.support.constraint.ConstraintLayout>
|
||||
<ch.pizzalink.android.view.PizzalinkToolbar
|
||||
android:id="@+id/pizzalinkToolbar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
app:title="@string/bottom_nav_menu_item_order"
|
||||
app:showHamburgerMenuIcon="true"/>
|
||||
|
||||
<android.support.v4.widget.DrawerLayout
|
||||
android:id="@+id/drawerLayout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/pizzalinkToolbar"
|
||||
android:layout_above="@+id/bottomNavigationView">
|
||||
|
||||
<FrameLayout
|
||||
android:id="@+id/fragmentContainer"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="1"
|
||||
android:background="@color/white"/>
|
||||
|
||||
<include layout="@layout/layout_navigation_drawer"/>
|
||||
|
||||
</android.support.v4.widget.DrawerLayout>
|
||||
|
||||
<com.ittianyu.bottomnavigationviewex.BottomNavigationViewEx
|
||||
android:id="@+id/bottomNavigationView"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentBottom="true"
|
||||
app:itemIconTint="@drawable/selector_bottom_navigation_item"
|
||||
app:itemTextColor="@drawable/selector_bottom_navigation_item"
|
||||
android:background="@color/white"
|
||||
app:menu="@menu/menu_bottom_navigation"
|
||||
app:itemBackground="@color/black"/>
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
|
||||
<!--
|
||||
|
||||
full screen navigation drawer
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<android.support.v4.widget.DrawerLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:id="@+id/drawerLayout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
tools:context="ch.pizzalink.android.activity.MainActivity">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<ch.pizzalink.android.view.PizzalinkToolbar
|
||||
android:id="@+id/pizzalinkToolbar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
app:title="@string/bottom_nav_menu_item_order"
|
||||
app:showHamburgerMenuIcon="true"/>
|
||||
|
||||
<FrameLayout
|
||||
android:id="@+id/fragmentContainer"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="1"
|
||||
android:background="@color/white"/>
|
||||
|
||||
<com.ittianyu.bottomnavigationviewex.BottomNavigationViewEx
|
||||
android:id="@+id/bottomNavigationView"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="56dp"
|
||||
android:layout_gravity="bottom"
|
||||
app:itemIconTint="@drawable/selector_bottom_navigation_item"
|
||||
app:itemTextColor="@drawable/selector_bottom_navigation_item"
|
||||
android:background="@color/white"
|
||||
app:menu="@menu/menu_bottom_navigation"
|
||||
app:itemBackground="@color/black"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<include layout="@layout/layout_navigation_drawer"/>
|
||||
|
||||
</android.support.v4.widget.DrawerLayout>
|
||||
|
||||
-->
|
||||
|
||||
|
||||
<!--
|
||||
|
||||
navigation menu between toolbar and bottom navigation
|
||||
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
tools:context="ch.pizzalink.android.activity.MainActivity">
|
||||
|
||||
<ch.pizzalink.android.view.PizzalinkToolbar
|
||||
android:id="@+id/pizzalinkToolbar"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
app:title="@string/bottom_nav_menu_item_order"
|
||||
app:showHamburgerMenuIcon="true"/>
|
||||
|
||||
<android.support.v4.widget.DrawerLayout
|
||||
android:id="@+id/drawerLayout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/pizzalinkToolbar"
|
||||
android:layout_above="@+id/bottomNavigationView">
|
||||
|
||||
<FrameLayout
|
||||
android:id="@+id/fragmentContainer"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="1"
|
||||
android:background="@color/white"/>
|
||||
|
||||
<include layout="@layout/layout_navigation_drawer"/>
|
||||
|
||||
</android.support.v4.widget.DrawerLayout>
|
||||
|
||||
<com.ittianyu.bottomnavigationviewex.BottomNavigationViewEx
|
||||
android:id="@+id/bottomNavigationView"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentBottom="true"
|
||||
app:itemIconTint="@drawable/selector_bottom_navigation_item"
|
||||
app:itemTextColor="@drawable/selector_bottom_navigation_item"
|
||||
android:background="@color/white"
|
||||
app:menu="@menu/menu_bottom_navigation"
|
||||
app:itemBackground="@color/black"/>
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
-->
|
||||
15
app/src/main/res/layout/fragment_cart.xml
Normal file
15
app/src/main/res/layout/fragment_cart.xml
Normal file
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Cart Fragment"
|
||||
android:layout_centerInParent="true"
|
||||
android:textColor="@color/black"/>
|
||||
|
||||
</RelativeLayout>
|
||||
15
app/src/main/res/layout/fragment_info.xml
Normal file
15
app/src/main/res/layout/fragment_info.xml
Normal file
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Order Fragment"
|
||||
android:layout_centerInParent="true"
|
||||
android:textColor="@color/black"/>
|
||||
|
||||
</RelativeLayout>
|
||||
15
app/src/main/res/layout/fragment_order.xml
Normal file
15
app/src/main/res/layout/fragment_order.xml
Normal file
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Order Fragment"
|
||||
android:layout_centerInParent="true"
|
||||
android:textColor="@color/black"/>
|
||||
|
||||
</RelativeLayout>
|
||||
15
app/src/main/res/layout/fragment_profile.xml
Normal file
15
app/src/main/res/layout/fragment_profile.xml
Normal file
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Order Fragment"
|
||||
android:layout_centerInParent="true"
|
||||
android:textColor="@color/black"/>
|
||||
|
||||
</RelativeLayout>
|
||||
47
app/src/main/res/layout/layout_navigation_drawer.xml
Normal file
47
app/src/main/res/layout/layout_navigation_drawer.xml
Normal file
@@ -0,0 +1,47 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="240dp"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/black"
|
||||
android:layout_gravity="start"
|
||||
android:clickable="true">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/navMenuItem1"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:textColor="@color/white"
|
||||
android:padding="16dp"
|
||||
android:text="Item 1"
|
||||
android:gravity="center_horizontal" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/navMenuItem2"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:textColor="@color/white"
|
||||
android:padding="16dp"
|
||||
android:text="Item 2"
|
||||
android:gravity="center_horizontal" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/navMenuItem3"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:textColor="@color/white"
|
||||
android:padding="16dp"
|
||||
android:text="Item 3"
|
||||
android:gravity="center_horizontal" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/navMenuItem4"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:textColor="@color/white"
|
||||
android:padding="16dp"
|
||||
android:text="Item 4"
|
||||
android:gravity="center_horizontal" />
|
||||
|
||||
</LinearLayout>
|
||||
45
app/src/main/res/layout/layout_pizzalink_toolbar.xml
Normal file
45
app/src/main/res/layout/layout_pizzalink_toolbar.xml
Normal file
@@ -0,0 +1,45 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<android.support.v7.widget.Toolbar
|
||||
android:id="@+id/toolbar"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
tools:ignore="MissingPrefix"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="?attr/actionBarSize"
|
||||
android:contentInsetLeft="0dp"
|
||||
android:contentInsetStart="0dp"
|
||||
app:contentInsetLeft="0dp"
|
||||
app:contentInsetStart="0dp"
|
||||
android:contentInsetRight="0dp"
|
||||
android:contentInsetEnd="0dp"
|
||||
app:contentInsetRight="0dp"
|
||||
app:contentInsetEnd="0dp"
|
||||
android:background="@color/red">
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/hamburgerIcon"
|
||||
android:layout_width="?attr/actionBarSize"
|
||||
android:layout_height="?attr/actionBarSize"
|
||||
android:padding="20dp"
|
||||
android:layout_centerVertical="true"
|
||||
android:src="@drawable/ic_hamburger_menu"
|
||||
android:visibility="gone"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/toolbarTitleTextView"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerInParent="true"
|
||||
android:textColor="@color/white"
|
||||
fontPath="fonts/AvenirNextLTProDemi.otf"
|
||||
android:visibility="gone"/>
|
||||
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
</android.support.v7.widget.Toolbar>
|
||||
26
app/src/main/res/menu/menu_bottom_navigation.xml
Normal file
26
app/src/main/res/menu/menu_bottom_navigation.xml
Normal file
@@ -0,0 +1,26 @@
|
||||
<?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_order"
|
||||
android:icon="@drawable/ic_bottom_nav_item_order"
|
||||
android:title="@string/bottom_nav_menu_item_order" />
|
||||
|
||||
<item
|
||||
android:id="@+id/action_cart"
|
||||
android:icon="@drawable/ic_bottom_nav_item_cart"
|
||||
android:title="@string/bottom_nav_menu_item_my_cart" />
|
||||
|
||||
<item
|
||||
android:id="@+id/action_profile"
|
||||
android:icon="@drawable/ic_bottom_nav_item_profile"
|
||||
android:title="@string/bottom_nav_menu_item_profile" />
|
||||
|
||||
<item
|
||||
android:id="@+id/action_info"
|
||||
android:icon="@drawable/ic_bottom_nav_item_info"
|
||||
android:title="@string/bottom_nav_menu_item_info" />
|
||||
|
||||
</menu>
|
||||
7
app/src/main/res/values/attrs.xml
Normal file
7
app/src/main/res/values/attrs.xml
Normal file
@@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<declare-styleable name="PizzalinkToolbar">
|
||||
<attr name="showHamburgerMenuIcon" format="boolean" />
|
||||
<attr name="title" format="string" />
|
||||
</declare-styleable>
|
||||
</resources>
|
||||
@@ -1,6 +1,12 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<color name="colorPrimary">#3F51B5</color>
|
||||
<color name="colorPrimaryDark">#303F9F</color>
|
||||
<color name="colorAccent">#FF4081</color>
|
||||
<color name="colorPrimary">#EC1649</color>
|
||||
<color name="colorPrimaryDark">#EC1649</color>
|
||||
<color name="colorAccent">#EC1649</color>
|
||||
|
||||
<color name="red">#EC1649</color>
|
||||
<color name="black">#303030</color>
|
||||
<color name="white">#ffffff</color>
|
||||
<color name="bottom_menu_selected_item">#EC1649</color>
|
||||
<color name="bottom_menu_unselected_item">#ffffff</color>
|
||||
</resources>
|
||||
|
||||
@@ -1,3 +1,27 @@
|
||||
<resources>
|
||||
<string name="app_name">Pizzalink</string>
|
||||
|
||||
<!-- MainAcitivity -->
|
||||
<string name="bottom_nav_menu_item_order">Order</string>
|
||||
<string name="bottom_nav_menu_item_my_cart">My Cart</string>
|
||||
<string name="bottom_nav_menu_item_profile">Profile</string>
|
||||
<string name="bottom_nav_menu_item_info">Info</string>
|
||||
<!-- MainAcitivity -->
|
||||
|
||||
<!-- OrderFragment -->
|
||||
<string name="fragment_title_order">Order</string>
|
||||
<!-- OrderFragment -->
|
||||
|
||||
<!-- OrderFragment -->
|
||||
<string name="fragment_title_cart">Cart</string>
|
||||
<!-- OrderFragment -->
|
||||
|
||||
<!-- OrderFragment -->
|
||||
<string name="fragment_title_profile">Profile</string>
|
||||
<!-- OrderFragment -->
|
||||
|
||||
<!-- OrderFragment -->
|
||||
<string name="fragment_title_info">Info</string>
|
||||
<!-- OrderFragment -->
|
||||
|
||||
</resources>
|
||||
|
||||
@@ -8,4 +8,9 @@
|
||||
<item name="colorAccent">@color/colorAccent</item>
|
||||
</style>
|
||||
|
||||
<style name="AppTheme.NoActionBar">
|
||||
<item name="windowActionBar">false</item>
|
||||
<item name="windowNoTitle">true</item>
|
||||
</style>
|
||||
|
||||
</resources>
|
||||
|
||||
Reference in New Issue
Block a user