Commit 4aa0ba42 by Paktalin

Orders icon + logo changed

parent 47f551ef
......@@ -92,7 +92,7 @@ public class MainActivity extends AppCompatActivity
}
DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);
DrawerLayout drawer = findViewById(R.id.drawer_layout);
drawer.closeDrawer(GravityCompat.START);
return true;
}
......
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
<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"
......@@ -10,106 +10,112 @@
android:paddingTop="@dimen/activity_vertical_margin"
tools:context="com.example.paktalin.lavina.LoginActivity">
<!-- Login progress -->
<ProgressBar
android:id="@+id/login_progress"
style="?android:attr/progressBarStyleLarge"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="8dp"
android:layout_centerInParent="true"
android:visibility="gone"/>
<ScrollView
android:id="@+id/login_form"
android:layout_width="match_parent"
android:layout_height="match_parent">
android:layout_height="match_parent"
android:layout_centerVertical="true">
<RelativeLayout
android:id="@+id/email_login_form"
</ScrollView>
<RelativeLayout
android:id="@+id/email_login_form"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:layout_centerVertical="true"
android:orientation="vertical">
<ImageView
android:id="@+id/image_logo"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
android:layout_height="100dp"
android:layout_centerHorizontal="true"
android:layout_margin="30dp"
android:background="@drawable/logo" />
<ImageView
android:id="@+id/image_logo"
android:layout_width="200dp"
android:layout_height="200dp"
android:background="@drawable/logo"
android:layout_centerHorizontal="true" />
<android.support.design.widget.TextInputLayout
android:id="@+id/email_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/image_logo"
android:layout_marginTop="12dp">
<android.support.design.widget.TextInputLayout
android:layout_marginTop="12dp"
android:id="@+id/email_layout"
<AutoCompleteTextView
android:id="@+id/email"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/image_logo">
android:layout_marginEnd="30dp"
android:layout_marginLeft="30dp"
android:layout_marginRight="30dp"
android:layout_marginStart="30dp"
android:hint="@string/prompt_email"
android:inputType="textEmailAddress"
android:maxLines="1"
android:singleLine="true" />
<AutoCompleteTextView
android:id="@+id/email"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/prompt_email"
android:inputType="textEmailAddress"
android:layout_marginStart="30dp"
android:layout_marginLeft="30dp"
android:layout_marginRight="30dp"
android:layout_marginEnd="30dp"
android:maxLines="1"
android:singleLine="true"/>
</android.support.design.widget.TextInputLayout>
</android.support.design.widget.TextInputLayout>
<android.support.design.widget.TextInputLayout
android:id="@+id/password_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/email_layout"
android:layout_marginEnd="30dp"
android:layout_marginLeft="30dp"
android:layout_marginRight="30dp"
android:layout_marginStart="30dp">
<android.support.design.widget.TextInputLayout
android:id="@+id/password_layout"
<EditText
android:id="@+id/password"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/email_layout"
android:layout_marginStart="30dp"
android:layout_marginLeft="30dp"
android:layout_marginRight="30dp"
android:layout_marginEnd="30dp">
<EditText
android:id="@+id/password"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="@string/prompt_password"
android:imeActionId="6"
android:imeActionLabel="@string/action_sign_in_short"
android:imeOptions="actionUnspecified"
android:inputType="textPassword"
android:maxLines="1"
android:singleLine="true"/>
android:hint="@string/prompt_password"
android:imeActionId="6"
android:imeActionLabel="@string/action_sign_in_short"
android:imeOptions="actionUnspecified"
android:inputType="textPassword"
android:maxLines="1"
android:singleLine="true" />
</android.support.design.widget.TextInputLayout>
</android.support.design.widget.TextInputLayout>
<Button
android:id="@+id/sign_in_button"
style="?android:textAppearanceSmall"
android:layout_width="110dp"
android:layout_height="50dp"
android:layout_marginTop="16dp"
android:text="@string/action_sign_in"
android:textStyle="bold"
android:layout_centerHorizontal="true"
android:layout_below="@+id/password_layout"
android:background="@color/colorPrimary"
android:textColor="@android:color/white"
android:textSize="20sp"/>
<Button
android:id="@+id/sign_in_button"
style="?android:textAppearanceSmall"
android:layout_width="110dp"
android:layout_height="50dp"
android:layout_below="@+id/password_layout"
android:layout_centerHorizontal="true"
android:layout_marginTop="26dp"
android:background="@color/colorPrimary"
android:text="@string/action_sign_in"
android:textColor="@android:color/white"
android:textSize="20sp"
android:textStyle="bold" />
<Button
android:id="@+id/register_button"
style="?android:textAppearanceSmall"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="16dp"
android:text="@string/action_register"
android:textStyle="bold"
android:layout_centerHorizontal="true"
android:background="@android:color/transparent"
android:textColor="@color/colorPrimaryDark"
android:layout_below="@+id/sign_in_button"/>
<Button
android:id="@+id/register_button"
style="?android:textAppearanceSmall"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/sign_in_button"
android:layout_centerHorizontal="true"
android:layout_marginTop="16dp"
android:background="@android:color/transparent"
android:text="@string/action_register"
android:textColor="@color/colorPrimaryDark"
android:textStyle="bold" />
</RelativeLayout>
</ScrollView>
</LinearLayout>
</RelativeLayout>
</RelativeLayout>
......@@ -28,9 +28,7 @@
android:layout_height="wrap_content"
android:layout_gravity="bottom|end"
app:backgroundTint="@color/colorPrimary"
app:srcCompat="@drawable/wine_button" />
<!--android:background="@color/colorPrimaryDark"-->
android:layout_margin="@dimen/fab_margin"
app:srcCompat="@drawable/wine_button" />
app:srcCompat="@drawable/wine_icon"
android:layout_margin="@dimen/fab_margin" />
</android.support.design.widget.CoordinatorLayout>
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 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"
android:layout_width="match_parent"
android:layout_height="@dimen/nav_header_height"
android:background="@color/colorPrimaryDark"
android:gravity="bottom"
android:orientation="vertical"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
android:background="@color/colorPrimary"
android:padding="30dp"
android:theme="@style/ThemeOverlay.AppCompat.Dark">
<ImageView
android:id="@+id/imageView"
android:layout_width="100dp"
android:layout_width="match_parent"
android:layout_height="100dp"
android:paddingTop="@dimen/nav_header_vertical_spacing"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:layout_centerVertical="true"
android:layout_marginTop="40dp"
app:srcCompat="@drawable/logo" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingTop="@dimen/nav_header_vertical_spacing"
android:text="@string/app_name"
android:textAppearance="@style/TextAppearance.AppCompat.Body1" />
<TextView
android:id="@+id/textView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/slogan" />
</LinearLayout>
</RelativeLayout>
......@@ -11,7 +11,7 @@
<item
android:id="@+id/wine"
android:icon="@drawable/wine_icon"
android:title="Select wine" />
android:title="Order wine" />
<item
android:id="@+id/collection"
android:icon="@drawable/favorites_icon"
......@@ -19,7 +19,11 @@
<item
android:id="@+id/community"
android:icon="@drawable/community_icon"
android:title="Your friends choice" />
android:title="Friends choice" />
<item
android:id="@+id/orders"
android:icon="@drawable/orders_icon"
android:title="Orders" />
</group>
<item android:title="Account">
......
<resources>
<!-- Default screen margins, per the Android Design guidelines. -->
<dimen name="activity_horizontal_margin">16dp</dimen>
<dimen name="activity_horizontal_margin">22dp</dimen>
<dimen name="activity_vertical_margin">16dp</dimen>
<dimen name="nav_header_vertical_spacing">8dp</dimen>
<dimen name="nav_header_height">176dp</dimen>
......
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