aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarcinzelent <zelent.marcin@gmail.com>2018-04-26 13:34:40 +0200
committermarcinzelent <zelent.marcin@gmail.com>2018-04-26 13:34:40 +0200
commit9ecffe7854da65b39ae13b18be7da425777f1ee8 (patch)
tree431c18a13684d54c656c935ef4fdfcc93e0e81fc /app/src/main/res/layout
parent4de306375a33b2abd067e65658a46d45cba5e56e (diff)
Riced the app, added Atlas and About views
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r--app/src/main/res/layout/activity_login.xml10
-rw-r--r--app/src/main/res/layout/activity_new_observation.xml4
-rw-r--r--app/src/main/res/layout/activity_reset_password.xml12
-rw-r--r--app/src/main/res/layout/activity_signup.xml10
-rw-r--r--app/src/main/res/layout/app_bar_main.xml2
-rw-r--r--app/src/main/res/layout/atlas_grid_item.xml26
-rw-r--r--app/src/main/res/layout/fragment_about.xml82
-rw-r--r--app/src/main/res/layout/fragment_atlas.xml13
-rw-r--r--app/src/main/res/layout/fragment_observations.xml2
9 files changed, 139 insertions, 22 deletions
diff --git a/app/src/main/res/layout/activity_login.xml b/app/src/main/res/layout/activity_login.xml
index 160803c..bdde7aa 100644
--- a/app/src/main/res/layout/activity_login.xml
+++ b/app/src/main/res/layout/activity_login.xml
@@ -21,7 +21,7 @@
android:layout_height="@dimen/logo_w_h"
android:layout_gravity="center_horizontal"
android:layout_marginBottom="30dp"
- android:src="@mipmap/ic_launcher" />
+ app:srcCompat="@drawable/ic_logo" />
<android.support.design.widget.TextInputLayout
android:layout_width="match_parent"
@@ -34,7 +34,7 @@
android:layout_marginBottom="10dp"
android:hint="@string/hint_email"
android:inputType="textEmailAddress"
- android:textColor="@android:color/white"
+ android:textColor="@color/input_login"
android:textColorHint="@android:color/white" />
</android.support.design.widget.TextInputLayout>
@@ -49,7 +49,7 @@
android:layout_marginBottom="10dp"
android:hint="@string/hint_password"
android:inputType="textPassword"
- android:textColor="@android:color/white"
+ android:textColor="@color/input_login"
android:textColorHint="@android:color/white" />
</android.support.design.widget.TextInputLayout>
@@ -62,7 +62,7 @@
android:layout_marginTop="20dip"
android:background="@color/colorAccent"
android:text="@string/btn_login"
- android:textColor="@android:color/black" />
+ android:textColor="@color/common_google_signin_btn_text_dark_default" />
<Button
android:id="@+id/btn_reset_password"
@@ -84,7 +84,7 @@
android:background="@null"
android:text="@string/btn_link_to_register"
android:textAllCaps="false"
- android:textColor="@color/white"
+ android:textColor="@android:color/black"
android:textSize="15dp" />
</LinearLayout>
diff --git a/app/src/main/res/layout/activity_new_observation.xml b/app/src/main/res/layout/activity_new_observation.xml
index 76e80f8..e5cb67b 100644
--- a/app/src/main/res/layout/activity_new_observation.xml
+++ b/app/src/main/res/layout/activity_new_observation.xml
@@ -127,6 +127,8 @@
android:layout_marginRight="16dp"
android:layout_marginStart="8dp"
android:orientation="horizontal"
+ android:paddingLeft="8dp"
+ android:paddingRight="8dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.0"
@@ -144,7 +146,7 @@
<Button
android:id="@+id/new_add"
- style="?android:attr/buttonBarButtonStyle"
+ style="@android:style/Widget.Material.Button.Colored"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginEnd="8dp"
diff --git a/app/src/main/res/layout/activity_reset_password.xml b/app/src/main/res/layout/activity_reset_password.xml
index d4cbff0..3e63670 100644
--- a/app/src/main/res/layout/activity_reset_password.xml
+++ b/app/src/main/res/layout/activity_reset_password.xml
@@ -23,7 +23,7 @@
android:layout_height="@dimen/logo_w_h"
android:layout_gravity="center_horizontal"
android:layout_marginBottom="10dp"
- android:src="@mipmap/ic_launcher" />
+ app:srcCompat="@drawable/ic_logo" />
<TextView
android:layout_width="wrap_content"
@@ -31,7 +31,7 @@
android:layout_gravity="center_horizontal"
android:padding="10dp"
android:text="@string/lbl_forgot_password"
- android:textColor="@android:color/white"
+ android:textColor="@android:color/black"
android:textSize="20dp" />
<TextView
@@ -41,7 +41,7 @@
android:gravity="center_horizontal"
android:padding="@dimen/activity_horizontal_margin"
android:text="@string/forgot_password_msg"
- android:textColor="@android:color/white"
+ android:textColor="@android:color/black"
android:textSize="14dp" />
<android.support.design.widget.TextInputLayout
@@ -56,8 +56,8 @@
android:layout_marginTop="20dp"
android:hint="@string/hint_email"
android:inputType="textEmailAddress"
- android:textColor="@android:color/white"
- android:textColorHint="@android:color/white" />
+ android:textColor="@android:color/black"
+ android:textColorHint="@android:color/black" />
</android.support.design.widget.TextInputLayout>
<!-- Login Button -->
@@ -69,7 +69,7 @@
android:layout_marginTop="20dip"
android:background="@color/colorAccent"
android:text="@string/btn_reset_password"
- android:textColor="@android:color/black" />
+ android:textColor="@android:color/white" />
<Button
android:id="@+id/btn_back"
diff --git a/app/src/main/res/layout/activity_signup.xml b/app/src/main/res/layout/activity_signup.xml
index 2d4d966..4eb983a 100644
--- a/app/src/main/res/layout/activity_signup.xml
+++ b/app/src/main/res/layout/activity_signup.xml
@@ -21,7 +21,7 @@
android:layout_height="@dimen/logo_w_h"
android:layout_gravity="center_horizontal"
android:layout_marginBottom="30dp"
- android:src="@mipmap/ic_launcher" />
+ app:srcCompat="@drawable/ic_logo" />
<android.support.design.widget.TextInputLayout
android:layout_width="match_parent"
@@ -35,7 +35,7 @@
android:inputType="textEmailAddress"
android:maxLines="1"
android:singleLine="true"
- android:textColor="@android:color/white" />
+ android:textColor="@android:color/black" />
</android.support.design.widget.TextInputLayout>
@@ -54,7 +54,7 @@
android:inputType="textPassword"
android:maxLines="1"
android:singleLine="true"
- android:textColor="@android:color/white" />
+ android:textColor="@android:color/black" />
</android.support.design.widget.TextInputLayout>
@@ -66,7 +66,7 @@
android:layout_marginTop="16dp"
android:background="@color/colorAccent"
android:text="@string/action_sign_in_short"
- android:textColor="@android:color/black"
+ android:textColor="@android:color/white"
android:textStyle="bold" />
<Button
@@ -89,7 +89,7 @@
android:background="@null"
android:text="@string/btn_link_to_login"
android:textAllCaps="false"
- android:textColor="@color/white"
+ android:textColor="@android:color/black"
android:textSize="15dp" />
</LinearLayout>
diff --git a/app/src/main/res/layout/app_bar_main.xml b/app/src/main/res/layout/app_bar_main.xml
index cb2a28a..8e19628 100644
--- a/app/src/main/res/layout/app_bar_main.xml
+++ b/app/src/main/res/layout/app_bar_main.xml
@@ -16,7 +16,7 @@
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
- android:background="?attr/colorPrimary"
+ android:background="@color/colorAccent"
app:popupTheme="@style/AppTheme.PopupOverlay" />
</android.support.design.widget.AppBarLayout>
diff --git a/app/src/main/res/layout/atlas_grid_item.xml b/app/src/main/res/layout/atlas_grid_item.xml
new file mode 100644
index 0000000..cda531a
--- /dev/null
+++ b/app/src/main/res/layout/atlas_grid_item.xml
@@ -0,0 +1,26 @@
+<?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"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:padding="8dp">
+
+ <ImageView
+ android:id="@+id/atlas_photo"
+ android:layout_width="100dp"
+ android:layout_height="100dp"
+ android:layout_alignParentStart="true"
+ android:layout_alignParentTop="true"
+ app:srcCompat="@drawable/common_google_signin_btn_icon_dark"
+ android:layout_alignParentLeft="true" />
+
+ <TextView
+ android:id="@+id/atlas_name"
+ android:layout_width="100dp"
+ android:layout_height="wrap_content"
+ android:layout_alignParentTop="true"
+ android:layout_alignStart="@+id/atlas_photo"
+ android:layout_marginTop="105dp"
+ android:text="TextView"
+ android:layout_alignLeft="@+id/atlas_photo" />
+</RelativeLayout> \ No newline at end of file
diff --git a/app/src/main/res/layout/fragment_about.xml b/app/src/main/res/layout/fragment_about.xml
new file mode 100644
index 0000000..002813c
--- /dev/null
+++ b/app/src/main/res/layout/fragment_about.xml
@@ -0,0 +1,82 @@
+<?xml version="1.0" encoding="utf-8"?>
+<android.support.constraint.ConstraintLayout
+ 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">
+
+ <ImageView
+ android:id="@+id/about_logo"
+ android:layout_width="64dp"
+ android:layout_height="64dp"
+ android:layout_gravity="center_horizontal"
+ android:layout_marginEnd="8dp"
+ android:layout_marginRight="8dp"
+ android:layout_marginTop="16dp"
+ app:srcCompat="@drawable/ic_logo"
+ app:layout_constraintEnd_toStartOf="@+id/about_title"
+ app:layout_constraintTop_toTopOf="parent"
+ android:contentDescription="@string/liberavem_logo" />
+
+ <TextView
+ android:id="@+id/about_title"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginEnd="8dp"
+ android:layout_marginLeft="72dp"
+ android:layout_marginRight="8dp"
+ android:layout_marginStart="72dp"
+ android:layout_marginTop="16dp"
+ android:text="Liberavem"
+ android:textSize="36sp"
+ app:layout_constraintBottom_toTopOf="@+id/about_author"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintTop_toTopOf="parent" />
+
+ <TextView
+ android:id="@+id/about_author"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginLeft="8dp"
+ android:layout_marginStart="8dp"
+ android:text="@string/author"
+ app:layout_constraintStart_toEndOf="@+id/about_logo"
+ app:layout_constraintTop_toBottomOf="@+id/about_title" />
+
+ <ScrollView
+ android:layout_width="0dp"
+ android:layout_height="0dp"
+ android:layout_marginEnd="16dp"
+ android:layout_marginLeft="16dp"
+ android:layout_marginRight="16dp"
+ android:layout_marginStart="16dp"
+ android:layout_marginTop="16dp"
+ app:layout_constraintBottom_toBottomOf="parent"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintTop_toBottomOf="@+id/about_author">
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:orientation="vertical">
+
+ <TextView
+ android:id="@+id/about_license"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginEnd="8dp"
+ android:layout_marginLeft="8dp"
+ android:layout_marginRight="8dp"
+ android:layout_marginStart="8dp"
+ android:layout_marginTop="16dp"
+ android:text="TextView"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintTop_toBottomOf="@+id/about_author" />
+ </LinearLayout>
+ </ScrollView>
+
+</android.support.constraint.ConstraintLayout> \ No newline at end of file
diff --git a/app/src/main/res/layout/fragment_atlas.xml b/app/src/main/res/layout/fragment_atlas.xml
index 0c5c59b..c6860b1 100644
--- a/app/src/main/res/layout/fragment_atlas.xml
+++ b/app/src/main/res/layout/fragment_atlas.xml
@@ -6,9 +6,16 @@
tools:context=".AtlasFragment">
<!-- TODO: Update blank fragment layout -->
- <TextView
+
+ <GridView xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@+id/atlas_grid"
android:layout_width="match_parent"
android:layout_height="match_parent"
- android:text="@string/atlas" />
-
+ android:columnWidth="90dp"
+ android:numColumns="auto_fit"
+ android:verticalSpacing="10dp"
+ android:horizontalSpacing="10dp"
+ android:stretchMode="columnWidth"
+ android:gravity="center"
+ />
</FrameLayout> \ No newline at end of file
diff --git a/app/src/main/res/layout/fragment_observations.xml b/app/src/main/res/layout/fragment_observations.xml
index 3396fcc..6dfd2de 100644
--- a/app/src/main/res/layout/fragment_observations.xml
+++ b/app/src/main/res/layout/fragment_observations.xml
@@ -33,6 +33,6 @@
android:layout_height="wrap_content"
android:layout_gravity="bottom|end"
android:layout_margin="@dimen/fab_margin"
- app:srcCompat="@android:drawable/ic_menu_add" />
+ app:srcCompat="@drawable/ic_add_white_24dp" />
</FrameLayout> \ No newline at end of file