Skip to content

Commit

Permalink
textSize
Browse files Browse the repository at this point in the history
apply attrs
  • Loading branch information
forrestguice committed Nov 12, 2022
1 parent 8abef63 commit b27d335
Show file tree
Hide file tree
Showing 9 changed files with 25 additions and 25 deletions.
2 changes: 1 addition & 1 deletion app/src/main/res/layout-land/layout_dialog_worldmap.xml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
android:gravity="center" android:layout_gravity="center"
android:visibility="gone"
android:layout_margin="16dp"
android:textSize="@dimen/text_size_small"
android:textSize="?attr/text_size_small"
android:text="@string/feature_not_supported_by_source" />

</FrameLayout>
Expand Down
6 changes: 3 additions & 3 deletions app/src/main/res/layout/info_time_datasource.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
android:gravity="start|center_vertical"
android:scaleX="0.7"
android:scaleY="0.7"
android:textSize="@dimen/text_size_xsmall"
android:textSize="?attr/text_size_xsmall"
android:textStyle="bold"
app:buttonTint="?colorControlActivated"
tools:ignore="SmallSp" />
Expand All @@ -73,7 +73,7 @@
android:paddingTop="2dp"
android:gravity="center_vertical|start"
android:textColor="?android:textColorPrimary"
android:textSize="@dimen/text_size_xsmall"
android:textSize="?attr/text_size_xsmall"
android:textStyle="bold"
tools:ignore="SmallSp"
tools:text="36000 ft" />
Expand All @@ -89,7 +89,7 @@
android:layout_marginLeft="0dp" android:paddingLeft="8dp"
android:layout_marginRight="0dp" android:paddingRight="8dp"
android:layout_width="0dp" android:layout_height="0dp" android:gravity="center_vertical|end"
android:textColor="?attr/date_buttonSelector" android:textSize="@dimen/text_size_xsmall" android:textStyle="bold"
android:textColor="?attr/date_buttonSelector" android:textSize="?attr/text_size_xsmall" android:textStyle="bold"
tools:text="sunrisesunsetlib" tools:ignore="SmallSp"
android:background="?attr/selectableItemBackground"
android:ellipsize="start" android:maxLines="2"
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/res/layout/info_time_now.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@
android:id="@+id/text_time"
android:layout_gravity="end"
android:text=""
android:textSize="@dimen/clock_fontsize"
android:textSize="?attr/text_size_enormous"
tools:text="12:00" />

<TextView android:id="@+id/text_time_suffix"
style="@style/SunsetTimeTextSuffixView"
android:layout_gravity="center_vertical|bottom|end"
android:textSize="@dimen/clock_suffix_fontsize"
android:textSize="?attr/text_size_xlarge"
android:text="" android:maxEms="@integer/clock_amppm_maxems"
tools:text="p.m." />
</LinearLayout>
Expand Down
16 changes: 8 additions & 8 deletions app/src/main/res/layout/info_time_solsticequinox.xml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
<TextView
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:id="@+id/text_date_equinox_vernal"
android:textSize="@dimen/text_size_small" android:antialias="true"
android:textSize="?attr/text_size_small" android:antialias="true"
android:textColor="@drawable/txt_equinox_vernal"
android:clickable="true" android:focusable="true" android:focusableInTouchMode="true"
android:singleLine="true" android:ellipsize="marquee"
Expand All @@ -87,7 +87,7 @@
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:id="@+id/text_date_equinox_vernal_note"
tools:text="21d 6h 5m from now"
android:textSize="@dimen/text_size_small" android:antialias="true"
android:textSize="?attr/text_size_small" android:antialias="true"
android:layout_marginBottom="8dp" />

</LinearLayout>
Expand All @@ -111,7 +111,7 @@
<TextView
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:id="@+id/text_date_solstice_summer"
android:textSize="@dimen/text_size_small" android:antialias="true"
android:textSize="?attr/text_size_small" android:antialias="true"
android:textColor="@drawable/txt_solstice_summer"
android:clickable="true" android:focusable="true" android:focusableInTouchMode="true"
android:singleLine="true" android:ellipsize="marquee"
Expand All @@ -120,7 +120,7 @@
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:id="@+id/text_date_solstice_summer_note"
tools:text="21d 6h 5m from now"
android:textSize="@dimen/text_size_small" android:antialias="true"
android:textSize="?attr/text_size_small" android:antialias="true"
android:layout_marginBottom="8dp" />

</LinearLayout>
Expand All @@ -145,7 +145,7 @@
<TextView
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:id="@+id/text_date_equinox_autumnal"
android:textSize="@dimen/text_size_small" android:antialias="true"
android:textSize="?attr/text_size_small" android:antialias="true"
android:textColor="@drawable/txt_equinox_autumnal"
android:clickable="true" android:focusable="true" android:focusableInTouchMode="true"
android:singleLine="true" android:ellipsize="marquee"
Expand All @@ -155,7 +155,7 @@
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:id="@+id/text_date_equinox_autumnal_note"
tools:text="21d 6h 5m from now"
android:textSize="@dimen/text_size_small" android:antialias="true"
android:textSize="?attr/text_size_small" android:antialias="true"
android:layout_marginBottom="8dp" />
</LinearLayout>

Expand All @@ -178,7 +178,7 @@
<TextView
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:id="@+id/text_date_solstice_winter"
android:textSize="@dimen/text_size_small" android:antialias="true"
android:textSize="?attr/text_size_small" android:antialias="true"
android:textColor="@drawable/txt_solstice_winter"
android:clickable="true" android:focusable="true" android:focusableInTouchMode="true"
android:singleLine="true" android:ellipsize="marquee"
Expand All @@ -188,7 +188,7 @@
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:id="@+id/text_date_solstice_winter_note"
tools:text="21d 6h 5m from now"
android:textSize="@dimen/text_size_small" android:antialias="true"
android:textSize="?attr/text_size_small" android:antialias="true"
android:layout_marginBottom="8dp" />
</LinearLayout>

Expand Down
6 changes: 3 additions & 3 deletions app/src/main/res/layout/layout_activity_dismissalarm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
android:orientation="vertical" android:padding="16dp" android:animateLayoutChanges="true">

<TextView
style="@style/TextAppearance.AppCompat.Large" android:textSize="@dimen/text_size_huge"
style="@style/TextAppearance.AppCompat.Large" android:textSize="?attr/text_size_huge"
android:id="@+id/txt_alarm_label"
android:layout_width="match_parent" android:layout_height="wrap_content"
android:gravity="center"
Expand All @@ -44,7 +44,7 @@

<TextView
style="@style/TextAppearance.AppCompat.Small"
android:id="@+id/txt_alarm_offset" android:textSize="@dimen/text_size_small"
android:id="@+id/txt_alarm_offset" android:textSize="?attr/text_size_small"
android:layout_width="match_parent" android:layout_height="wrap_content"
android:gravity="bottom|center_horizontal" tools:text="30m before" />

Expand Down Expand Up @@ -95,7 +95,7 @@
</ViewFlipper>

<TextView android:id="@+id/txt_clock_time"
style="@style/SunsetTimeTextView" android:textSize="@dimen/text_size_enormous" android:textStyle="bold"
style="@style/SunsetTimeTextView" android:textSize="?attr/text_size_enormous" android:textStyle="bold"
android:layout_width="match_parent" android:layout_height="wrap_content"
android:gravity="center"
app:layout_constraintVertical_bias="0.65"
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/res/layout/layout_listitem_alarmclock.xml
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@
android:layout_width="0dp" android:layout_height="wrap_content"
android:layout_marginTop="14dp"
android:textColor="?attr/text_buttonSelector" android:gravity="center"
android:textSize="@dimen/text_size_small" android:maxLines="1" android:ellipsize="end"
android:textSize="?attr/text_size_small" android:maxLines="1" android:ellipsize="end"
tools:text="1h 30m before" android:minEms="5"

app:layout_constraintHorizontal_bias="1"
Expand All @@ -159,7 +159,7 @@
tools:text="June 21, 2019"
android:layout_marginTop="8dp"
android:gravity="start"
android:textSize="@dimen/text_size_small" android:maxLines="1" android:ellipsize="end" android:textStyle="bold"
android:textSize="?attr/text_size_small" android:maxLines="1" android:ellipsize="end" android:textStyle="bold"
app:layout_constraintBottom_toTopOf="@+id/layout_options"
app:layout_constraintStart_toStartOf="@+id/text_event"
app:layout_constraintEnd_toEndOf="@+id/text_location"
Expand Down
6 changes: 3 additions & 3 deletions app/src/main/res/layout/layout_listitem_alarmclock2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@
android:layout_width="wrap_content" android:layout_height="wrap_content" android:minHeight="18dp"
android:gravity="center"
android:layout_marginTop="4dp" android:layout_marginBottom="-8dp"
android:textSize="@dimen/text_size_small" android:maxLines="1" android:ellipsize="end"
android:textSize="?attr/text_size_small" android:maxLines="1" android:ellipsize="end"
tools:text="1h 30m before" android:minEms="5" />

<TextView
Expand All @@ -132,7 +132,7 @@
android:layout_marginRight="4dp" android:layout_marginEnd="4dp"
android:layout_marginTop="-8dp" android:layout_marginBottom="8dp"
android:ellipsize="end" android:gravity="start" android:maxLines="1"
android:textSize="@dimen/text_size_small" android:textStyle="bold"
android:textSize="?attr/text_size_small" android:textStyle="bold"
tools:text="June 21, 2019" />

</LinearLayout>
Expand All @@ -155,7 +155,7 @@
<TextView android:id="@+id/text_repeat"
android:layout_width="wrap_content" android:layout_height="match_parent"
android:gravity="bottom|start"
android:maxLines="1" android:textSize="@dimen/text_size_small"
android:maxLines="1" android:textSize="?attr/text_size_small"
android:text="@string/alarmOption_repeat" tools:text="Sun, Mon, Tue, Wed, Thu, Fri" />

</LinearLayout>
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/layout_view_editintent.xml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
<TextView android:id="@+id/appwidget_action_desc" style="?android:attr/dropDownItemStyle" tools:text="Description"
android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_weight="1"
android:paddingTop="0dp" android:paddingBottom="2dp"
android:textAppearance="?android:attr/textAppearanceSmall" android:textSize="@dimen/text_size_small"
android:textAppearance="?android:attr/textAppearanceSmall" android:textSize="?attr/text_size_small"
android:singleLine="true" android:duplicateParentState="true" android:textColor="?attr/text_buttonSelector" />

</LinearLayout>
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/res/layout/layout_view_equinox.xml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@

<TextView android:id="@+id/info_time_year_length_label"
android:layout_width="@dimen/solsticetable_column0_width" android:layout_height="wrap_content"
style="@style/SunsetTimeTextView" android:textSize="@dimen/text_size_small" android:gravity="start"
style="@style/SunsetTimeTextView" android:textSize="?attr/text_size_small" android:gravity="start"
android:labelFor="@+id/info_time_year_length"
android:layout_marginLeft="14dp" android:layout_marginStart="14dp"
android:layout_marginRight="0dp" android:layout_marginEnd="0dp"
Expand All @@ -96,7 +96,7 @@
<TextView android:id="@+id/info_time_year_length"
android:layout_width="wrap_content" android:layout_height="wrap_content" android:minWidth="100dp"
android:layout_margin="0dp" android:padding="0dp" android:gravity="start|center_vertical"
style="@style/SunsetTextView" android:textSize="@dimen/text_size_small"
style="@style/SunsetTextView" android:textSize="?attr/text_size_small"
android:text="365d 5h 41m\n365.24 days" />

</LinearLayout>
Expand Down

0 comments on commit b27d335

Please sign in to comment.