mirror of
https://github.com/He4eT/yamf_launcher.git
synced 2026-05-05 09:57:26 +00:00
Added weather conditions, fixed the thread for finding locations and added options to disable weather and battery indicators.
This commit is contained in:
parent
dfc08513f5
commit
71af6d7d49
8 changed files with 121 additions and 460 deletions
|
|
@ -112,6 +112,7 @@
|
|||
android:fontFamily="@null"
|
||||
android:format12Hour="dd MMM yyyy"
|
||||
android:format24Hour="dd MMM yyyy"
|
||||
android:lineSpacingExtra="8sp"
|
||||
android:paddingHorizontal="2dp"
|
||||
android:textAlignment="textStart"
|
||||
android:textAppearance="@android:style/TextAppearance.DeviceDefault"
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:id="@+id/settingsLayout"
|
||||
|
|
@ -17,444 +17,4 @@
|
|||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:visibility="gone">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/clock_alignment_label"
|
||||
android:layout_width="250dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:clickable="false"
|
||||
android:gravity="start"
|
||||
android:paddingLeft="20dp"
|
||||
android:paddingTop="20dp"
|
||||
android:paddingRight="20dp"
|
||||
android:paddingBottom="20dp"
|
||||
android:text="Clock Alignment"
|
||||
android:textAppearance="@android:style/TextAppearance.DeviceDefault"
|
||||
android:textColor="#F3F3F3"
|
||||
android:textSize="20sp"
|
||||
android:visibility="visible" />
|
||||
|
||||
<Spinner
|
||||
android:id="@+id/clock_alignment"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
android:entries="@array/h_alignment_options"
|
||||
android:spinnerMode="dropdown"
|
||||
tools:layout_editor_absoluteX="250dp" />
|
||||
|
||||
<View
|
||||
android:id="@+id/divider2"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:background="?android:attr/listDivider"
|
||||
tools:layout_editor_absoluteY="66dp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/home_app_alignment_label"
|
||||
android:layout_width="250dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:clickable="false"
|
||||
android:gravity="start"
|
||||
android:paddingLeft="20dp"
|
||||
android:paddingTop="20dp"
|
||||
android:paddingRight="20dp"
|
||||
android:paddingBottom="20dp"
|
||||
android:text="Home App Alignment"
|
||||
android:textAppearance="@android:style/TextAppearance.DeviceDefault"
|
||||
android:textColor="#F3F3F3"
|
||||
android:textSize="20sp"
|
||||
android:visibility="visible"
|
||||
tools:layout_editor_absoluteY="67dp" />
|
||||
|
||||
<Spinner
|
||||
android:id="@+id/home_app_alignment"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
android:entries="@array/h_alignment_options"
|
||||
android:spinnerMode="dropdown"
|
||||
tools:layout_editor_absoluteX="250dp"
|
||||
tools:layout_editor_absoluteY="67dp" />
|
||||
|
||||
<View
|
||||
android:id="@+id/divider3"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:background="?android:attr/listDivider"
|
||||
tools:layout_editor_absoluteY="134dp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/app_alignment_label"
|
||||
android:layout_width="250dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:clickable="false"
|
||||
android:gravity="start"
|
||||
android:paddingLeft="20dp"
|
||||
android:paddingTop="20dp"
|
||||
android:paddingRight="20dp"
|
||||
android:paddingBottom="20dp"
|
||||
android:text="App Menu Alignment"
|
||||
android:textAppearance="@android:style/TextAppearance.DeviceDefault"
|
||||
android:textColor="#F3F3F3"
|
||||
android:textSize="20sp"
|
||||
android:visibility="visible"
|
||||
tools:layout_editor_absoluteY="135dp" />
|
||||
|
||||
<Spinner
|
||||
android:id="@+id/app_alignment"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
android:entries="@array/h_alignment_options"
|
||||
android:spinnerMode="dropdown"
|
||||
tools:layout_editor_absoluteX="250dp"
|
||||
tools:layout_editor_absoluteY="135dp" />
|
||||
|
||||
<View
|
||||
android:id="@+id/divider"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:background="?android:attr/listDivider"
|
||||
tools:layout_editor_absoluteY="202dp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/search_alignment_label"
|
||||
android:layout_width="250dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:clickable="false"
|
||||
android:gravity="start"
|
||||
android:paddingLeft="20dp"
|
||||
android:paddingTop="20dp"
|
||||
android:paddingRight="20dp"
|
||||
android:paddingBottom="20dp"
|
||||
android:text="Search Bar Alignment"
|
||||
android:textAppearance="@android:style/TextAppearance.DeviceDefault"
|
||||
android:textColor="#F3F3F3"
|
||||
android:textSize="20sp"
|
||||
android:visibility="visible"
|
||||
tools:layout_editor_absoluteY="202dp" />
|
||||
|
||||
<Spinner
|
||||
android:id="@+id/search_alignment"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
android:entries="@array/h_alignment_options"
|
||||
android:spinnerMode="dropdown"
|
||||
tools:layout_editor_absoluteX="250dp"
|
||||
tools:layout_editor_absoluteY="202dp" />
|
||||
|
||||
<View
|
||||
android:id="@+id/divider5"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:background="?android:attr/listDivider"
|
||||
tools:layout_editor_absoluteY="270dp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/clock_size_label"
|
||||
android:layout_width="250dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:clickable="false"
|
||||
android:gravity="start"
|
||||
android:paddingLeft="20dp"
|
||||
android:paddingTop="20dp"
|
||||
android:paddingRight="20dp"
|
||||
android:paddingBottom="20dp"
|
||||
android:text="Clock Size"
|
||||
android:textAppearance="@android:style/TextAppearance.DeviceDefault"
|
||||
android:textColor="#F3F3F3"
|
||||
android:textSize="20sp"
|
||||
android:visibility="visible"
|
||||
tools:layout_editor_absoluteY="270dp" />
|
||||
|
||||
<Spinner
|
||||
android:id="@+id/clock_size"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
android:entries="@array/size_options"
|
||||
android:spinnerMode="dropdown"
|
||||
tools:layout_editor_absoluteX="250dp"
|
||||
tools:layout_editor_absoluteY="270dp" />
|
||||
|
||||
<View
|
||||
android:id="@+id/divider7"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:background="?android:attr/listDivider"
|
||||
tools:layout_editor_absoluteY="337dp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/date_size_label"
|
||||
android:layout_width="250dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:clickable="false"
|
||||
android:gravity="start"
|
||||
android:paddingLeft="20dp"
|
||||
android:paddingTop="20dp"
|
||||
android:paddingRight="20dp"
|
||||
android:paddingBottom="20dp"
|
||||
android:text="Date Size"
|
||||
android:textAppearance="@android:style/TextAppearance.DeviceDefault"
|
||||
android:textColor="#F3F3F3"
|
||||
android:textSize="20sp"
|
||||
android:visibility="visible"
|
||||
tools:layout_editor_absoluteY="337dp" />
|
||||
|
||||
<Spinner
|
||||
android:id="@+id/date_size"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
android:entries="@array/size_options"
|
||||
android:spinnerMode="dropdown"
|
||||
tools:layout_editor_absoluteX="250dp"
|
||||
tools:layout_editor_absoluteY="337dp" />
|
||||
|
||||
<View
|
||||
android:id="@+id/divider8"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:background="?android:attr/listDivider"
|
||||
tools:layout_editor_absoluteY="405dp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/shortcut_size_label"
|
||||
android:layout_width="250dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:clickable="false"
|
||||
android:gravity="start"
|
||||
android:paddingLeft="20dp"
|
||||
android:paddingTop="20dp"
|
||||
android:paddingRight="20dp"
|
||||
android:paddingBottom="20dp"
|
||||
android:text="Shortcut Title Size"
|
||||
android:textAppearance="@android:style/TextAppearance.DeviceDefault"
|
||||
android:textColor="#F3F3F3"
|
||||
android:textSize="20sp"
|
||||
android:visibility="visible"
|
||||
tools:layout_editor_absoluteY="405dp" />
|
||||
|
||||
<Spinner
|
||||
android:id="@+id/shortcut_size"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
android:entries="@array/size_options"
|
||||
android:spinnerMode="dropdown"
|
||||
tools:layout_editor_absoluteX="250dp"
|
||||
tools:layout_editor_absoluteY="405dp" />
|
||||
|
||||
<View
|
||||
android:id="@+id/divider4"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:background="?android:attr/listDivider"
|
||||
tools:layout_editor_absoluteY="472dp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/app_size_label"
|
||||
android:layout_width="250dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:clickable="false"
|
||||
android:gravity="start"
|
||||
android:paddingLeft="20dp"
|
||||
android:paddingTop="20dp"
|
||||
android:paddingRight="20dp"
|
||||
android:paddingBottom="20dp"
|
||||
android:text="App Menu Title Size"
|
||||
android:textAppearance="@android:style/TextAppearance.DeviceDefault"
|
||||
android:textColor="#F3F3F3"
|
||||
android:textSize="20sp"
|
||||
android:visibility="visible"
|
||||
tools:layout_editor_absoluteY="472dp" />
|
||||
|
||||
<Spinner
|
||||
android:id="@+id/app_size"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
android:entries="@array/size_options"
|
||||
android:spinnerMode="dropdown"
|
||||
tools:layout_editor_absoluteX="250dp"
|
||||
tools:layout_editor_absoluteY="472dp" />
|
||||
|
||||
<View
|
||||
android:id="@+id/divider6"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:background="?android:attr/listDivider"
|
||||
tools:layout_editor_absoluteY="539dp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/search_size_label"
|
||||
android:layout_width="250dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:clickable="false"
|
||||
android:gravity="start"
|
||||
android:paddingLeft="20dp"
|
||||
android:paddingTop="20dp"
|
||||
android:paddingRight="20dp"
|
||||
android:paddingBottom="20dp"
|
||||
android:text="Search Bar Size"
|
||||
android:textAppearance="@android:style/TextAppearance.DeviceDefault"
|
||||
android:textColor="#F3F3F3"
|
||||
android:textSize="20sp"
|
||||
android:visibility="visible"
|
||||
tools:layout_editor_absoluteY="539dp" />
|
||||
|
||||
<Spinner
|
||||
android:id="@+id/search_size"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
android:entries="@array/size_options"
|
||||
android:spinnerMode="dropdown"
|
||||
tools:layout_editor_absoluteX="250dp"
|
||||
tools:layout_editor_absoluteY="539dp" />
|
||||
|
||||
<View
|
||||
android:id="@+id/divider9"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:background="?android:attr/listDivider"
|
||||
tools:layout_editor_absoluteY="607dp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/camera_label"
|
||||
android:layout_width="250dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:clickable="false"
|
||||
android:gravity="start"
|
||||
android:paddingLeft="20dp"
|
||||
android:paddingTop="20dp"
|
||||
android:paddingRight="20dp"
|
||||
android:paddingBottom="20dp"
|
||||
android:text="Camera Swipe Left"
|
||||
android:textAppearance="@android:style/TextAppearance.DeviceDefault"
|
||||
android:textColor="#F3F3F3"
|
||||
android:textSize="20sp"
|
||||
android:visibility="visible"
|
||||
tools:layout_editor_absoluteY="607dp" />
|
||||
|
||||
<Switch
|
||||
android:id="@+id/camera"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:checked="true"
|
||||
tools:layout_editor_absoluteX="260dp"
|
||||
tools:layout_editor_absoluteY="627dp" />
|
||||
|
||||
<View
|
||||
android:id="@+id/divider10"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:background="?android:attr/listDivider"
|
||||
tools:layout_editor_absoluteY="674dp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/contacts_label"
|
||||
android:layout_width="250dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:clickable="false"
|
||||
android:gravity="start"
|
||||
android:paddingLeft="20dp"
|
||||
android:paddingTop="20dp"
|
||||
android:paddingRight="20dp"
|
||||
android:paddingBottom="20dp"
|
||||
android:text="Phone Swipe Right"
|
||||
android:textAppearance="@android:style/TextAppearance.DeviceDefault"
|
||||
android:textColor="#F3F3F3"
|
||||
android:textSize="20sp"
|
||||
android:visibility="visible"
|
||||
tools:layout_editor_absoluteY="674dp" />
|
||||
|
||||
<Switch
|
||||
android:id="@+id/contacts"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:checked="true"
|
||||
tools:layout_editor_absoluteX="260dp"
|
||||
tools:layout_editor_absoluteY="694dp" />
|
||||
|
||||
<View
|
||||
android:id="@+id/divider11"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:background="?android:attr/listDivider"
|
||||
tools:layout_editor_absoluteY="742dp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/hidden_apps"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:clickable="false"
|
||||
android:gravity="start"
|
||||
android:paddingLeft="20dp"
|
||||
android:paddingTop="20dp"
|
||||
android:paddingRight="20dp"
|
||||
android:paddingBottom="20dp"
|
||||
android:text="Hidden Apps"
|
||||
android:textAppearance="@android:style/TextAppearance.DeviceDefault"
|
||||
android:textColor="#F3F3F3"
|
||||
android:textSize="20sp"
|
||||
android:visibility="visible"
|
||||
tools:layout_editor_absoluteY="743dp" />
|
||||
|
||||
<View
|
||||
android:id="@+id/divider12"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:background="?android:attr/listDivider"
|
||||
tools:layout_editor_absoluteY="810dp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/weather_location"
|
||||
android:layout_width="250dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:clickable="false"
|
||||
android:gravity="start"
|
||||
android:paddingLeft="20dp"
|
||||
android:paddingTop="20dp"
|
||||
android:paddingRight="20dp"
|
||||
android:paddingBottom="20dp"
|
||||
android:text="Weather Location"
|
||||
android:textAppearance="@android:style/TextAppearance.DeviceDefault"
|
||||
android:textColor="#F3F3F3"
|
||||
android:textSize="20sp"
|
||||
android:visibility="visible"
|
||||
tools:layout_editor_absoluteY="810dp" />
|
||||
|
||||
<androidx.appcompat.widget.AppCompatButton
|
||||
android:id="@+id/manual_city"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="0dp"
|
||||
android:layout_gravity="center"
|
||||
android:layout_weight="0.3"
|
||||
android:background="#89000000"
|
||||
android:gravity="center"
|
||||
android:insetTop="0dp"
|
||||
android:insetBottom="0dp"
|
||||
android:paddingHorizontal="20dp"
|
||||
android:text="Set Manually"
|
||||
android:textAppearance="@android:style/TextAppearance.DeviceDefault"
|
||||
android:textColor="#F3F3F3"
|
||||
android:textSize="16sp"
|
||||
tools:layout_editor_absoluteX="250dp"
|
||||
tools:layout_editor_absoluteY="810dp" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/imageView"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
android:paddingVertical="15dp"
|
||||
app:srcCompat="@android:drawable/ic_menu_mylocation"
|
||||
tools:layout_editor_absoluteX="382dp"
|
||||
tools:layout_editor_absoluteY="810dp" />
|
||||
|
||||
<View
|
||||
android:id="@+id/divider13"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp"
|
||||
android:background="?android:attr/listDivider"
|
||||
tools:layout_editor_absoluteY="810dp" />
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
</FrameLayout>
|
||||
</LinearLayout>
|
||||
|
|
@ -47,12 +47,14 @@
|
|||
<string-array name="bg_options">
|
||||
<item>Transparent</item>
|
||||
<item>Black</item>
|
||||
<item>Grey</item>
|
||||
<item>White</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="bg_values">
|
||||
<item>#00000000</item>
|
||||
<item>#FF000000</item>
|
||||
<item>#FF1B1B1B</item>
|
||||
<item>#FFD6D6D6</item>
|
||||
</string-array>
|
||||
|
||||
|
|
|
|||
|
|
@ -138,15 +138,23 @@
|
|||
android:layout_height="wrap_content"
|
||||
app:allowDividerAbove="false"
|
||||
app:title="Weather">
|
||||
<SwitchPreference
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:defaultValue="false"
|
||||
android:title="Weather"
|
||||
app:key="weather_enabled" />
|
||||
<SwitchPreference
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:defaultValue="false"
|
||||
android:title="GPS Location"
|
||||
app:dependency="weather_enabled"
|
||||
app:key="gps_location" />
|
||||
<Preference
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
app:dependency="weather_enabled"
|
||||
app:key="manual_location"
|
||||
app:selectable="true"
|
||||
app:title="Set Manual Location" />
|
||||
|
|
@ -154,6 +162,7 @@
|
|||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
app:defaultValue="celsius"
|
||||
app:dependency="weather_enabled"
|
||||
app:entries="@array/temp_units"
|
||||
app:entryValues="@array/unit_values"
|
||||
app:key="tempUnits"
|
||||
|
|
@ -172,5 +181,17 @@
|
|||
app:selectable="true"
|
||||
app:title="Manage Hidden Apps" />
|
||||
</PreferenceCategory>
|
||||
<PreferenceCategory
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
app:allowDividerAbove="false"
|
||||
app:title="Battery">
|
||||
<SwitchPreference
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:defaultValue="false"
|
||||
android:title="Battery Indicator"
|
||||
app:key="battery_enabled" />
|
||||
</PreferenceCategory>
|
||||
|
||||
</PreferenceScreen>
|
||||
Loading…
Add table
Add a link
Reference in a new issue