Moved stopwatch style to its own file
This commit is contained in:
parent
61c4a8a3f7
commit
25b709e793
@ -20,11 +20,7 @@
|
|||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:background="?attr/colorPrimary"
|
style="@style/Stopwatch"/>
|
||||||
android:gravity="center"
|
|
||||||
android:textSize="@dimen/text_size_display_3"
|
|
||||||
android:fontFamily="sans-serif-thin"
|
|
||||||
android:theme="@style/AppTheme.TextOverlay"/>
|
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
- Unfortunately, we can't include fragment_recycler_view
|
- Unfortunately, we can't include fragment_recycler_view
|
||||||
@ -40,6 +36,8 @@
|
|||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
<!--TODO: If we are changing the style of the mini FABS often,
|
||||||
|
then create a style resource for them. -->
|
||||||
<android.support.v7.widget.GridLayout
|
<android.support.v7.widget.GridLayout
|
||||||
android:id="@id/mini_fab_layout"
|
android:id="@id/mini_fab_layout"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
@ -77,11 +75,8 @@
|
|||||||
|
|
||||||
<com.philliphsu.clock2.UntouchableSeekBar
|
<com.philliphsu.clock2.UntouchableSeekBar
|
||||||
android:id="@+id/seek_bar"
|
android:id="@+id/seek_bar"
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
app:layout_anchor="@id/mini_fab_layout"
|
app:layout_anchor="@id/mini_fab_layout"
|
||||||
app:layout_anchorGravity="top"
|
app:layout_anchorGravity="top"
|
||||||
android:paddingStart="0dp"
|
style="@style/BaseSeekBar"/>
|
||||||
android:paddingEnd="0dp"/>
|
|
||||||
|
|
||||||
</android.support.design.widget.CoordinatorLayout>
|
</android.support.design.widget.CoordinatorLayout>
|
||||||
@ -15,11 +15,7 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:padding="@dimen/chronometer_padding"
|
android:padding="@dimen/chronometer_padding"
|
||||||
android:background="?attr/colorPrimary"
|
style="@style/Stopwatch"/>
|
||||||
android:gravity="center_horizontal"
|
|
||||||
android:textSize="@dimen/text_size_display_3"
|
|
||||||
android:fontFamily="sans-serif-thin"
|
|
||||||
android:theme="@style/AppTheme.TextOverlay"/>
|
|
||||||
|
|
||||||
<include layout="@layout/fragment_recycler_view"
|
<include layout="@layout/fragment_recycler_view"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
@ -30,13 +26,12 @@
|
|||||||
|
|
||||||
<com.philliphsu.clock2.UntouchableSeekBar
|
<com.philliphsu.clock2.UntouchableSeekBar
|
||||||
android:id="@+id/seek_bar"
|
android:id="@+id/seek_bar"
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
app:layout_anchor="@id/chronometer"
|
app:layout_anchor="@id/chronometer"
|
||||||
app:layout_anchorGravity="bottom"
|
app:layout_anchorGravity="bottom"
|
||||||
android:paddingStart="0dp"
|
style="@style/BaseSeekBar"/>
|
||||||
android:paddingEnd="0dp"/>
|
|
||||||
|
|
||||||
|
<!--TODO: If we are changing the style of the mini FABS often,
|
||||||
|
then create a style resource for them. -->
|
||||||
<android.support.v7.widget.GridLayout
|
<android.support.v7.widget.GridLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="@dimen/fab_total_height"
|
android:layout_height="@dimen/fab_total_height"
|
||||||
|
|||||||
10
app/src/main/res/values/styles_stopwatch.xml
Normal file
10
app/src/main/res/values/styles_stopwatch.xml
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<resources>
|
||||||
|
<style name="Stopwatch" parent="TextAppearance.AppCompat.Display3">
|
||||||
|
<item name="android:background">?attr/colorPrimary</item>
|
||||||
|
<item name="android:gravity">center</item>
|
||||||
|
<item name="android:fontFamily">sans-serif-light</item>
|
||||||
|
<item name="android:theme">@style/AppTheme.TextOverlay</item>
|
||||||
|
<item name="android:textColor">?android:attr/textColorPrimary</item>
|
||||||
|
</style>
|
||||||
|
</resources>
|
||||||
Loading…
Reference in New Issue
Block a user