Weather gps now works properly with nicer code as well

This commit is contained in:
ottoptj 2024-08-08 18:10:18 +03:00
commit bcb8f331b3
10 changed files with 78 additions and 61 deletions

View file

@ -127,13 +127,13 @@
<Space
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="0.25" />
android:layout_weight="0.23" />
<TextView
android:id="@+id/app1"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="0.08"
android:layout_weight="0.09"
android:autoSizeMaxTextSize="28sp"
android:autoSizeTextType="uniform"
android:clickable="false"
@ -150,7 +150,7 @@
android:id="@+id/app2"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="0.08"
android:layout_weight="0.09"
android:autoSizeMaxTextSize="28sp"
android:autoSizeTextType="uniform"
android:clickable="false"
@ -168,7 +168,7 @@
android:id="@+id/app3"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="0.08"
android:layout_weight="0.09"
android:autoSizeMaxTextSize="28sp"
android:autoSizeTextType="uniform"
android:clickable="false"
@ -186,7 +186,7 @@
android:id="@+id/app4"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="0.08"
android:layout_weight="0.09"
android:autoSizeMaxTextSize="28sp"
android:autoSizeTextType="uniform"
android:clickable="false"
@ -204,7 +204,7 @@
android:id="@+id/app5"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="0.08"
android:layout_weight="0.09"
android:autoSizeMaxTextSize="28sp"
android:autoSizeTextType="uniform"
android:clickable="false"
@ -222,7 +222,7 @@
android:id="@+id/app6"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="0.08"
android:layout_weight="0.09"
android:autoSizeMaxTextSize="28sp"
android:autoSizeTextType="uniform"
android:clickable="false"
@ -240,7 +240,7 @@
android:id="@+id/app7"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="0.08"
android:layout_weight="0.09"
android:autoSizeMaxTextSize="28sp"
android:autoSizeTextType="uniform"
android:clickable="false"
@ -258,7 +258,7 @@
android:id="@+id/app8"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="0.08"
android:layout_weight="0.09"
android:autoSizeMaxTextSize="28sp"
android:autoSizeTextType="uniform"
android:clickable="false"

View file

@ -117,8 +117,8 @@
android:text="Stripe"
android:textAlignment="center"
android:textSize="20sp"
app:layout_constraintEnd_toStartOf="@+id/githubLink"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@+id/liberaLink"
app:layout_constraintTop_toBottomOf="@+id/divider2" />
<TextView
@ -130,8 +130,8 @@
android:text="Liberapay"
android:textAlignment="center"
android:textSize="20sp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@+id/codebergLink"
app:layout_constraintEnd_toStartOf="@+id/stripeLink"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/divider2" />
<TextView

View file

@ -70,8 +70,8 @@
<string name="codeberg_link"><![CDATA[<a href="https://codeberg.org/ottoptj/yamlauncher">Codeberg</a>]]></string>
<string name="github_link"><![CDATA[<a href="https://github.com">GitHub</a>]]></string>
<string name="stripe_link"><![CDATA[<a href="https://codeberg.org/ottoptj/yamlauncher">Stripe</a>]]></string>
<string name="libera_link"><![CDATA[<a href="https://github.com">Liberapay</a>]]></string>
<string name="libera_link"><![CDATA[<a href="https://github.com">Liberapay</a><br>(recurring)]]></string>
<string name="stripe_link"><![CDATA[<a href="https://codeberg.org/ottoptj/yamlauncher">Stripe</a><br>(one-time)]]></string>
<string name="weather_link"><![CDATA[Weather data by <a href="https://open-meteo.com/">Open-Meteo.com</a><br>(<a href="https://creativecommons.org/licenses/by/4.0/">CC BY 4.0</a>)]]></string>
<string name="location_link"><![CDATA[Location data by <a href="https://open-meteo.com/">Open-Meteo.com</a> (<a href="https://creativecommons.org/licenses/by/4.0/">CC BY 4.0</a>)]]></string>

View file

@ -7,7 +7,7 @@
<item name="android:navigationBarColor">@android:color/transparent</item>
<item name="android:statusBarColor">@android:color/transparent</item>
<item name="android:windowLightStatusBar">?attr/isLightTheme</item>
<item name="android:windowFullscreen">false</item>
<item name="android:windowFullscreen">true</item>
<item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item>
<item name="android:enforceNavigationBarContrast">false</item>
<item name="android:enforceStatusBarContrast">false</item>

View file

@ -109,7 +109,7 @@
app:entries="@array/size_options"
app:entryValues="@array/size_values"
app:key="shortcutSize"
app:title="Home App Size"
app:title="Shortcut Size"
app:useSimpleSummaryProvider="true" />
<ListPreference
android:layout_width="wrap_content"