Skip to content

Commit

Permalink
Updated styling.
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshLudahl committed May 19, 2024
1 parent 4b58895 commit 371540f
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 3 deletions.
14 changes: 14 additions & 0 deletions app/src/main/res/drawable/circle.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<shape

xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="oval">

<solid
android:color="@color/colorYellow"/>


<stroke
android:width="1dp"
android:color="@color/colorBlack"/>
</shape>
5 changes: 2 additions & 3 deletions app/src/main/res/layout/fragment_main_weather.xml
Original file line number Diff line number Diff line change
Expand Up @@ -335,15 +335,14 @@

<androidx.appcompat.widget.AppCompatTextView
android:id="@+id/uv_index_value"
style="@style/weather_detail_text"
style="@style/weather_detail_text_aqi_value"
android:layout_marginStart="16dp"
android:layout_marginTop="8dp"
android:layout_marginEnd="16dp"
android:layout_marginBottom="8dp"
android:background="@drawable/search_bg"
android:background="@drawable/circle"
android:contentDescription="@string/uv_index"
android:includeFontPadding="false"
android:padding="8dp"
android:text="@{viewModel.aqiValue}"
android:textAlignment="center"
android:textColor="@color/colorBlack"
Expand Down
8 changes: 8 additions & 0 deletions app/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,14 @@
<item name="android:textSize">@dimen/title_text_option_size</item>
<item name="layout_constrainedWidth">true</item>
</style>
<style name="weather_detail_text_aqi_value">
<item name="android:layout_width">35dp</item>
<item name="android:layout_height">35dp</item>
<item name="android:textColor">@color/colorAccent</item>
<item name="android:textSize">@dimen/title_text_option_size</item>
<item name="layout_constrainedWidth">true</item>
<item name="android:gravity">center</item>
</style>

<style name="weather_detail_text_label">
<item name="android:layout_width">wrap_content</item>
Expand Down

0 comments on commit 371540f

Please sign in to comment.