diff --git a/app/src/main/java/com/philliphsu/clock2/stopwatch/ui/StopwatchFragment.java b/app/src/main/java/com/philliphsu/clock2/stopwatch/ui/StopwatchFragment.java index 5188e71..a9424b3 100644 --- a/app/src/main/java/com/philliphsu/clock2/stopwatch/ui/StopwatchFragment.java +++ b/app/src/main/java/com/philliphsu/clock2/stopwatch/ui/StopwatchFragment.java @@ -17,6 +17,7 @@ import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; +import android.widget.ImageButton; import android.widget.SeekBar; import com.philliphsu.clock2.R; @@ -43,20 +44,20 @@ public class StopwatchFragment extends RecyclerViewFragment< private static final String TAG = "StopwatchFragment"; // Exposed for StopwatchNotificationService - public static final String KEY_START_TIME = "start_time"; - public static final String KEY_PAUSE_TIME = "pause_time"; + public static final String KEY_START_TIME = "start_time"; + public static final String KEY_PAUSE_TIME = "pause_time"; public static final String KEY_CHRONOMETER_RUNNING = "chronometer_running"; - private ObjectAnimator mProgressAnimator; - private SharedPreferences mPrefs; + private ObjectAnimator mProgressAnimator; + private SharedPreferences mPrefs; private WeakReference mActivityFab; - private Drawable mStartDrawable; - private Drawable mPauseDrawable; + private Drawable mStartDrawable; + private Drawable mPauseDrawable; @Bind(R.id.chronometer) ChronometerWithMillis mChronometer; - @Bind(R.id.new_lap) FloatingActionButton mNewLapButton; - @Bind(R.id.stop) FloatingActionButton mStopButton; - @Bind(R.id.seek_bar) SeekBar mSeekBar; + @Bind(R.id.new_lap) ImageButton mNewLapButton; + @Bind(R.id.stop) ImageButton mStopButton; + @Bind(R.id.seek_bar) SeekBar mSeekBar; /** * This is called only when a new instance of this Fragment is being created, @@ -142,7 +143,7 @@ public class StopwatchFragment extends RecyclerViewFragment< * this Fragment gets to. Here, the view hierarchy returned from onCreateView() * is destroyed--the Fragment itself is NOT destroyed. If the user navigates back * to this tab, this Fragment goes through its lifecycle beginning from onCreateView(). - * + *

* TODO: Verify that members are not reset. */ @Override diff --git a/app/src/main/res/drawable/ic_add_lap_40dp.xml b/app/src/main/res/drawable/ic_add_lap_40dp.xml new file mode 100644 index 0000000..ae3be10 --- /dev/null +++ b/app/src/main/res/drawable/ic_add_lap_40dp.xml @@ -0,0 +1,10 @@ + + + + \ No newline at end of file diff --git a/app/src/main/res/drawable/ic_stop_40dp.xml b/app/src/main/res/drawable/ic_stop_40dp.xml new file mode 100644 index 0000000..249ca9c --- /dev/null +++ b/app/src/main/res/drawable/ic_stop_40dp.xml @@ -0,0 +1,9 @@ + + + diff --git a/app/src/main/res/layout-land/fragment_stopwatch.xml b/app/src/main/res/layout-land/fragment_stopwatch.xml index a628b79..90ab98b 100644 --- a/app/src/main/res/layout-land/fragment_stopwatch.xml +++ b/app/src/main/res/layout-land/fragment_stopwatch.xml @@ -36,8 +36,6 @@ - - + style="@style/AddLapButton"/> - + style="@style/StopButton"/> diff --git a/app/src/main/res/layout/fragment_stopwatch.xml b/app/src/main/res/layout/fragment_stopwatch.xml index 8c15b78..05b994f 100644 --- a/app/src/main/res/layout/fragment_stopwatch.xml +++ b/app/src/main/res/layout/fragment_stopwatch.xml @@ -30,37 +30,19 @@ app:layout_anchorGravity="bottom" style="@style/BaseSeekBar"/> - - + style="@style/AddLapButton"/> - + style="@style/StopButton"/> diff --git a/app/src/main/res/values-v21/styles.xml b/app/src/main/res/values-v21/styles.xml index ceb105a..e217531 100644 --- a/app/src/main/res/values-v21/styles.xml +++ b/app/src/main/res/values-v21/styles.xml @@ -36,4 +36,8 @@ @color/alert_dialog_background_color_black + + diff --git a/app/src/main/res/values-v21/styles_alarm.xml b/app/src/main/res/values-v21/styles_alarm.xml deleted file mode 100644 index e2630c5..0000000 --- a/app/src/main/res/values-v21/styles_alarm.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - \ No newline at end of file diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index fa6f7e6..d4fea22 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -188,4 +188,8 @@ 1 @dimen/text_size_subhead + + diff --git a/app/src/main/res/values/styles_alarm.xml b/app/src/main/res/values/styles_alarm.xml index 4252c2e..68cbef1 100644 --- a/app/src/main/res/values/styles_alarm.xml +++ b/app/src/main/res/values/styles_alarm.xml @@ -1,15 +1,12 @@ - - - + + + \ No newline at end of file