From be9aca1eded9da5833ceb93bb119865b7735d4ea Mon Sep 17 00:00:00 2001 From: Phillip Hsu Date: Tue, 30 Aug 2016 02:20:17 -0700 Subject: [PATCH] Create landscape layout for StopwatchFragment --- .../clock2/stopwatch/StopwatchFragment.java | 3 +- .../res/layout-land/fragment_stopwatch.xml | 115 ++++++++++-------- 2 files changed, 65 insertions(+), 53 deletions(-) diff --git a/app/src/main/java/com/philliphsu/clock2/stopwatch/StopwatchFragment.java b/app/src/main/java/com/philliphsu/clock2/stopwatch/StopwatchFragment.java index 853f94b..f596d82 100644 --- a/app/src/main/java/com/philliphsu/clock2/stopwatch/StopwatchFragment.java +++ b/app/src/main/java/com/philliphsu/clock2/stopwatch/StopwatchFragment.java @@ -200,7 +200,8 @@ public class StopwatchFragment extends RecyclerViewFragment< } else { // I verified the bar was visible already without this, so we probably don't need this, // but it's just a safety measure.. - mSeekBar.setVisibility(View.VISIBLE); + // ACTUALLY NOT A SAFETY MEASURE! +// mSeekBar.setVisibility(View.VISIBLE); ProgressBarUtils.setProgress(mSeekBar, getCurrentLapProgressRatio()); } } else { diff --git a/app/src/main/res/layout-land/fragment_stopwatch.xml b/app/src/main/res/layout-land/fragment_stopwatch.xml index e1744e9..145490f 100644 --- a/app/src/main/res/layout-land/fragment_stopwatch.xml +++ b/app/src/main/res/layout-land/fragment_stopwatch.xml @@ -1,71 +1,82 @@ + android:layout_height="match_parent"> - + android:layout_height="match_parent"> - + android:layout_height="match_parent" + android:orientation="horizontal" + android:layout_above="@+id/mini_fab_layout"> - - + - + + + + + + + + + + + + + + - - - - - - - - - \ No newline at end of file