From 26238f260a59170166bc63eaa236515cbffb5975 Mon Sep 17 00:00:00 2001 From: Forrest Guice Date: Sun, 21 Aug 2016 13:22:05 -0700 Subject: [PATCH] refactor layouts; nextprev, timecard refactored nextprev buttons to separate layout file. refactored "timecard" to separate layout file. cleanup layout_main. next/prev buttons moved to bottom right. related to #43 . --- app/src/main/res/layout-land/layout_main.xml | 35 ++----- app/src/main/res/layout-v14/info_time_all.xml | 33 +------ app/src/main/res/layout/info_time_all.xml | 94 +++---------------- app/src/main/res/layout/info_time_card.xml | 33 +++++++ .../main/res/layout/info_time_nextprev.xml | 28 ++++++ app/src/main/res/layout/layout_main.xml | 45 +++------ 6 files changed, 92 insertions(+), 176 deletions(-) create mode 100644 app/src/main/res/layout/info_time_card.xml create mode 100644 app/src/main/res/layout/info_time_nextprev.xml diff --git a/app/src/main/res/layout-land/layout_main.xml b/app/src/main/res/layout-land/layout_main.xml index 4146eb8bd..3799ab26c 100644 --- a/app/src/main/res/layout-land/layout_main.xml +++ b/app/src/main/res/layout-land/layout_main.xml @@ -83,47 +83,24 @@ - - - - - - - - - + android:layout_width="match_parent" android:layout_height="wrap_content" + android:id="@+id/info_time_all_today"> + - - - - - - - - - + - diff --git a/app/src/main/res/layout-v14/info_time_all.xml b/app/src/main/res/layout-v14/info_time_all.xml index c210b5bfe..b451486c5 100644 --- a/app/src/main/res/layout-v14/info_time_all.xml +++ b/app/src/main/res/layout-v14/info_time_all.xml @@ -22,7 +22,7 @@ @@ -225,7 +225,7 @@ - + @@ -255,34 +255,5 @@ - - - - - - - - - - \ No newline at end of file diff --git a/app/src/main/res/layout/info_time_all.xml b/app/src/main/res/layout/info_time_all.xml index e3b630423..fe62a15aa 100644 --- a/app/src/main/res/layout/info_time_all.xml +++ b/app/src/main/res/layout/info_time_all.xml @@ -24,68 +24,26 @@ android:orientation="vertical"> + - - - + android:layout_gravity="bottom"> + - - - - - - + + + - - - - - - + + + @@ -353,34 +311,6 @@ - - - - - - - - - \ No newline at end of file diff --git a/app/src/main/res/layout/info_time_card.xml b/app/src/main/res/layout/info_time_card.xml new file mode 100644 index 000000000..25d6ceb4f --- /dev/null +++ b/app/src/main/res/layout/info_time_card.xml @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/info_time_nextprev.xml b/app/src/main/res/layout/info_time_nextprev.xml new file mode 100644 index 000000000..a163b70f6 --- /dev/null +++ b/app/src/main/res/layout/info_time_nextprev.xml @@ -0,0 +1,28 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/layout_main.xml b/app/src/main/res/layout/layout_main.xml index f4f6e9ae1..11256d5ea 100644 --- a/app/src/main/res/layout/layout_main.xml +++ b/app/src/main/res/layout/layout_main.xml @@ -22,6 +22,7 @@ android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" > + + + + + - - - - - - - - + - + - - - - - - - - - +