From 0e84ec6ab64e4041c8a11d62aec8fdde1cf757b2 Mon Sep 17 00:00:00 2001 From: Jacques Foucry Date: Fri, 20 May 2016 17:47:37 +0200 Subject: [PATCH] Mise en place new look sur la vue de detail --- app/src/main/res/drawable/gradient_bg.xml | 10 +++ .../main/res/drawable/gradient_bg_hover.xml | 10 +++ app/src/main/res/drawable/list_selector.xml | 7 ++ .../res/layout/activity_medicament_detail.xml | 8 +-- app/src/main/res/layout/info_cell.xml | 26 +++++++ app/src/main/res/layout/medicament_detail.xml | 69 ++++++++++++++++--- app/src/main/res/layout/value_input.xml | 30 ++++++++ 7 files changed, 148 insertions(+), 12 deletions(-) create mode 100644 app/src/main/res/drawable/gradient_bg.xml create mode 100644 app/src/main/res/drawable/gradient_bg_hover.xml create mode 100644 app/src/main/res/drawable/list_selector.xml create mode 100644 app/src/main/res/layout/info_cell.xml create mode 100644 app/src/main/res/layout/value_input.xml diff --git a/app/src/main/res/drawable/gradient_bg.xml b/app/src/main/res/drawable/gradient_bg.xml new file mode 100644 index 0000000..dd7817d --- /dev/null +++ b/app/src/main/res/drawable/gradient_bg.xml @@ -0,0 +1,10 @@ + + + + + \ No newline at end of file diff --git a/app/src/main/res/drawable/gradient_bg_hover.xml b/app/src/main/res/drawable/gradient_bg_hover.xml new file mode 100644 index 0000000..2ff9ac4 --- /dev/null +++ b/app/src/main/res/drawable/gradient_bg_hover.xml @@ -0,0 +1,10 @@ + + + + + \ No newline at end of file diff --git a/app/src/main/res/drawable/list_selector.xml b/app/src/main/res/drawable/list_selector.xml new file mode 100644 index 0000000..84646ce --- /dev/null +++ b/app/src/main/res/drawable/list_selector.xml @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/activity_medicament_detail.xml b/app/src/main/res/layout/activity_medicament_detail.xml index 160cdae..e000762 100644 --- a/app/src/main/res/layout/activity_medicament_detail.xml +++ b/app/src/main/res/layout/activity_medicament_detail.xml @@ -21,7 +21,7 @@ android:fitsSystemWindows="true" app:contentScrim="?attr/colorPrimary" app:layout_scrollFlags="scroll|exitUntilCollapsed" - app:toolbarId="@+id/toolbar"> + app:toolbarId="@+id/toolbar"/> - - + app:layout_behavior="@string/appbar_scrolling_view_behavior"/> + + diff --git a/app/src/main/res/layout/info_cell.xml b/app/src/main/res/layout/info_cell.xml new file mode 100644 index 0000000..fc77a7a --- /dev/null +++ b/app/src/main/res/layout/info_cell.xml @@ -0,0 +1,26 @@ + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/medicament_detail.xml b/app/src/main/res/layout/medicament_detail.xml index c08e7cb..21b72ac 100644 --- a/app/src/main/res/layout/medicament_detail.xml +++ b/app/src/main/res/layout/medicament_detail.xml @@ -1,9 +1,62 @@ - + + + + + + + + + + + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:orientation="vertical" + tools:context="net.foucry.pilldroid.MedicamentDetailFragment"> + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/value_input.xml b/app/src/main/res/layout/value_input.xml new file mode 100644 index 0000000..1861fcc --- /dev/null +++ b/app/src/main/res/layout/value_input.xml @@ -0,0 +1,30 @@ + + + + + + + + \ No newline at end of file