mirror of
https://github.com/He4eT/yamf_launcher.git
synced 2026-05-05 09:57:26 +00:00
Date now aligns with the clock and temperature units can be selected
This commit is contained in:
parent
f23d71a477
commit
dade0c9a3b
6 changed files with 66 additions and 194 deletions
|
|
@ -88,10 +88,9 @@
|
|||
|
||||
<TextClock
|
||||
android:id="@+id/text_clock"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginHorizontal="32dp"
|
||||
android:layout_marginStart="32dp"
|
||||
android:layout_marginTop="40dp"
|
||||
android:layout_marginBottom="27dp"
|
||||
android:fontFamily="@null"
|
||||
|
|
@ -103,16 +102,18 @@
|
|||
android:textColor="#F3F3F3"
|
||||
android:textSize="68sp"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<TextClock
|
||||
android:id="@+id/text_date"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:fontFamily="@null"
|
||||
android:format12Hour="dd MMM yyyy"
|
||||
android:format24Hour="dd MMM yyyy"
|
||||
android:paddingHorizontal="2dp"
|
||||
android:textAlignment="textStart"
|
||||
android:textAppearance="@android:style/TextAppearance.DeviceDefault"
|
||||
android:textColor="#F3F3F3"
|
||||
|
|
|
|||
|
|
@ -33,4 +33,14 @@
|
|||
<item>medium</item>
|
||||
<item>large</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="temp_units">
|
||||
<item>°C</item>
|
||||
<item>°F</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="unit_values">
|
||||
<item>celsius</item>
|
||||
<item>fahrenheit</item>
|
||||
</string-array>
|
||||
</resources>
|
||||
|
|
@ -126,6 +126,15 @@
|
|||
app:key="manual_location"
|
||||
app:selectable="true"
|
||||
app:title="Set Manual Location" />
|
||||
<ListPreference
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
app:defaultValue="celsius"
|
||||
app:entries="@array/temp_units"
|
||||
app:entryValues="@array/unit_values"
|
||||
app:key="tempUnits"
|
||||
app:title="Units"
|
||||
app:useSimpleSummaryProvider="true" />
|
||||
</PreferenceCategory>
|
||||
<PreferenceCategory
|
||||
android:layout_width="wrap_content"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue