Add dark icons
BIN
app/src/main/res/drawable-night-hdpi/round_aspect_ratio_24.png
Normal file
After Width: | Height: | Size: 237 B |
BIN
app/src/main/res/drawable-night-hdpi/round_font_download_24.png
Normal file
After Width: | Height: | Size: 348 B |
After Width: | Height: | Size: 213 B |
BIN
app/src/main/res/drawable-night-hdpi/round_text_fields_24.png
Normal file
After Width: | Height: | Size: 258 B |
BIN
app/src/main/res/drawable-night-hdpi/round_text_format_24.png
Normal file
After Width: | Height: | Size: 297 B |
BIN
app/src/main/res/drawable-night-hdpi/round_texture_24.png
Normal file
After Width: | Height: | Size: 291 B |
After Width: | Height: | Size: 216 B |
BIN
app/src/main/res/drawable-night-mdpi/round_aspect_ratio_24.png
Normal file
After Width: | Height: | Size: 161 B |
BIN
app/src/main/res/drawable-night-mdpi/round_font_download_24.png
Normal file
After Width: | Height: | Size: 245 B |
After Width: | Height: | Size: 158 B |
BIN
app/src/main/res/drawable-night-mdpi/round_text_fields_24.png
Normal file
After Width: | Height: | Size: 155 B |
BIN
app/src/main/res/drawable-night-mdpi/round_text_format_24.png
Normal file
After Width: | Height: | Size: 204 B |
BIN
app/src/main/res/drawable-night-mdpi/round_texture_24.png
Normal file
After Width: | Height: | Size: 208 B |
After Width: | Height: | Size: 143 B |
BIN
app/src/main/res/drawable-night-xhdpi/round_aspect_ratio_24.png
Normal file
After Width: | Height: | Size: 248 B |
BIN
app/src/main/res/drawable-night-xhdpi/round_font_download_24.png
Normal file
After Width: | Height: | Size: 445 B |
After Width: | Height: | Size: 218 B |
BIN
app/src/main/res/drawable-night-xhdpi/round_text_fields_24.png
Normal file
After Width: | Height: | Size: 206 B |
BIN
app/src/main/res/drawable-night-xhdpi/round_text_format_24.png
Normal file
After Width: | Height: | Size: 378 B |
BIN
app/src/main/res/drawable-night-xhdpi/round_texture_24.png
Normal file
After Width: | Height: | Size: 325 B |
After Width: | Height: | Size: 215 B |
BIN
app/src/main/res/drawable-night-xxhdpi/round_aspect_ratio_24.png
Normal file
After Width: | Height: | Size: 336 B |
After Width: | Height: | Size: 652 B |
After Width: | Height: | Size: 340 B |
BIN
app/src/main/res/drawable-night-xxhdpi/round_text_fields_24.png
Normal file
After Width: | Height: | Size: 329 B |
BIN
app/src/main/res/drawable-night-xxhdpi/round_text_format_24.png
Normal file
After Width: | Height: | Size: 556 B |
BIN
app/src/main/res/drawable-night-xxhdpi/round_texture_24.png
Normal file
After Width: | Height: | Size: 420 B |
After Width: | Height: | Size: 308 B |
After Width: | Height: | Size: 473 B |
After Width: | Height: | Size: 809 B |
After Width: | Height: | Size: 425 B |
BIN
app/src/main/res/drawable-night-xxxhdpi/round_text_fields_24.png
Normal file
After Width: | Height: | Size: 349 B |
BIN
app/src/main/res/drawable-night-xxxhdpi/round_text_format_24.png
Normal file
After Width: | Height: | Size: 750 B |
BIN
app/src/main/res/drawable-night-xxxhdpi/round_texture_24.png
Normal file
After Width: | Height: | Size: 523 B |
After Width: | Height: | Size: 395 B |
@ -10,6 +10,7 @@
|
|||||||
android:id="@+id/content_fragment"
|
android:id="@+id/content_fragment"
|
||||||
android:name="androidx.navigation.fragment.NavHostFragment"
|
android:name="androidx.navigation.fragment.NavHostFragment"
|
||||||
app:defaultNavHost="true"
|
app:defaultNavHost="true"
|
||||||
|
android:background="@color/colorPrimary"
|
||||||
app:navGraph="@navigation/nav_graph"
|
app:navGraph="@navigation/nav_graph"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"/>
|
android:layout_height="match_parent"/>
|
||||||
|
@ -124,7 +124,7 @@
|
|||||||
app:cardElevation="0dp"
|
app:cardElevation="0dp"
|
||||||
app:cardPreventCornerOverlap="true"
|
app:cardPreventCornerOverlap="true"
|
||||||
app:cardCornerRadius="0dp"
|
app:cardCornerRadius="0dp"
|
||||||
app:cardBackgroundColor="@color/colorPrimaryDark"
|
app:cardBackgroundColor="@color/colorPrimary"
|
||||||
android:orientation="vertical">
|
android:orientation="vertical">
|
||||||
<androidx.fragment.app.FragmentContainerView
|
<androidx.fragment.app.FragmentContainerView
|
||||||
android:id="@+id/settings_fragment"
|
android:id="@+id/settings_fragment"
|
||||||
|
@ -23,7 +23,6 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:id="@+id/scrollView"
|
android:id="@+id/scrollView"
|
||||||
android:background="@color/colorPrimary"
|
|
||||||
android:scrollbarThumbVertical="@color/colorPrimaryDark">
|
android:scrollbarThumbVertical="@color/colorPrimaryDark">
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
@ -42,112 +41,94 @@
|
|||||||
android:textColor="@color/colorAccent"
|
android:textColor="@color/colorAccent"
|
||||||
android:textAppearance="@style/AnotherWidget.Settings.Header"
|
android:textAppearance="@style/AnotherWidget.Settings.Header"
|
||||||
app:textAllCaps="false" />
|
app:textAllCaps="false" />
|
||||||
<com.google.android.material.card.MaterialCardView
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
app:cardElevation="0dp"
|
android:paddingTop="12dp"
|
||||||
android:layout_marginLeft="16dp"
|
android:paddingBottom="12dp"
|
||||||
android:layout_marginRight="16dp"
|
android:paddingLeft="8dp"
|
||||||
android:layout_marginTop="8dp"
|
android:paddingRight="8dp"
|
||||||
android:layout_marginBottom="4dp"
|
android:clickable="true"
|
||||||
app:strokeColor="@color/cardBorder"
|
android:focusable="true"
|
||||||
app:strokeWidth="1dp"
|
android:background="?android:attr/selectableItemBackground"
|
||||||
app:cardBackgroundColor="@color/colorPrimary"
|
android:gravity="center_vertical"
|
||||||
app:cardCornerRadius="8dp">
|
android:id="@+id/action_typography"
|
||||||
|
android:orientation="horizontal">
|
||||||
|
<ImageView
|
||||||
|
android:layout_width="40dp"
|
||||||
|
android:layout_height="40dp"
|
||||||
|
android:padding="8dp"
|
||||||
|
android:src="@drawable/round_text_fields_24"
|
||||||
|
app:tint="@color/colorPrimaryText"/>
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_weight="1"
|
||||||
|
android:paddingLeft="8dp"
|
||||||
|
android:paddingRight="8dp"
|
||||||
android:orientation="vertical">
|
android:orientation="vertical">
|
||||||
<LinearLayout
|
<TextView
|
||||||
android:layout_width="match_parent"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:paddingTop="12dp"
|
style="@style/AnotherWidget.Settings.Title"
|
||||||
android:paddingBottom="12dp"
|
android:text="Typography"/>
|
||||||
android:paddingStart="10dp"
|
<TextView
|
||||||
android:paddingEnd="0dp"
|
android:layout_width="wrap_content"
|
||||||
android:clickable="true"
|
|
||||||
android:focusable="true"
|
|
||||||
android:background="?android:attr/selectableItemBackground"
|
|
||||||
android:gravity="center_vertical"
|
|
||||||
android:id="@+id/action_typography"
|
|
||||||
android:orientation="horizontal">
|
|
||||||
<ImageView
|
|
||||||
android:layout_width="40dp"
|
|
||||||
android:layout_height="40dp"
|
|
||||||
android:padding="8dp"
|
|
||||||
android:src="@drawable/round_text_fields_24"
|
|
||||||
app:tint="@color/colorPrimaryText"/>
|
|
||||||
<LinearLayout
|
|
||||||
android:layout_width="0dp"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_weight="1"
|
|
||||||
android:paddingLeft="8dp"
|
|
||||||
android:paddingRight="8dp"
|
|
||||||
android:orientation="vertical">
|
|
||||||
<TextView
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
style="@style/AnotherWidget.Settings.Title"
|
|
||||||
android:text="Typography"/>
|
|
||||||
<TextView
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:text="Change the text design"
|
|
||||||
style="@style/AnotherWidget.Settings.Subtitle"/>
|
|
||||||
</LinearLayout>
|
|
||||||
<ImageView
|
|
||||||
android:layout_width="48dp"
|
|
||||||
android:layout_height="48dp"
|
|
||||||
android:padding="8dp"
|
|
||||||
android:src="@drawable/round_chevron_right_24"
|
|
||||||
app:tint="@color/colorPrimaryText"/>
|
|
||||||
</LinearLayout>
|
|
||||||
<LinearLayout
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:paddingTop="12dp"
|
android:text="Change the text design"
|
||||||
android:paddingBottom="12dp"
|
style="@style/AnotherWidget.Settings.Subtitle"/>
|
||||||
android:paddingStart="10dp"
|
|
||||||
android:paddingEnd="0dp"
|
|
||||||
android:clickable="true"
|
|
||||||
android:focusable="true"
|
|
||||||
android:background="?android:attr/selectableItemBackground"
|
|
||||||
android:gravity="center_vertical"
|
|
||||||
android:id="@+id/action_general_settings"
|
|
||||||
android:orientation="horizontal">
|
|
||||||
<ImageView
|
|
||||||
android:layout_width="40dp"
|
|
||||||
android:layout_height="40dp"
|
|
||||||
android:padding="8dp"
|
|
||||||
android:src="@drawable/round_palette_24"
|
|
||||||
app:tint="@color/colorPrimaryText"/>
|
|
||||||
<LinearLayout
|
|
||||||
android:layout_width="0dp"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_weight="1"
|
|
||||||
android:paddingLeft="8dp"
|
|
||||||
android:paddingRight="8dp"
|
|
||||||
android:orientation="vertical">
|
|
||||||
<TextView
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
style="@style/AnotherWidget.Settings.Title"
|
|
||||||
android:text="@string/appearance_header"/>
|
|
||||||
<TextView
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:text="Change the widget design"
|
|
||||||
style="@style/AnotherWidget.Settings.Subtitle"/>
|
|
||||||
</LinearLayout>
|
|
||||||
<ImageView
|
|
||||||
android:layout_width="48dp"
|
|
||||||
android:layout_height="48dp"
|
|
||||||
android:padding="8dp"
|
|
||||||
android:src="@drawable/round_chevron_right_24"
|
|
||||||
app:tint="@color/colorPrimaryText"/>
|
|
||||||
</LinearLayout>
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
</com.google.android.material.card.MaterialCardView>
|
<ImageView
|
||||||
|
android:layout_width="48dp"
|
||||||
|
android:layout_height="48dp"
|
||||||
|
android:padding="8dp"
|
||||||
|
android:src="@drawable/round_chevron_right_24"
|
||||||
|
app:tint="@color/colorPrimaryText"/>
|
||||||
|
</LinearLayout>
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:paddingTop="12dp"
|
||||||
|
android:paddingBottom="12dp"
|
||||||
|
android:paddingLeft="8dp"
|
||||||
|
android:paddingRight="8dp"
|
||||||
|
android:clickable="true"
|
||||||
|
android:focusable="true"
|
||||||
|
android:background="?android:attr/selectableItemBackground"
|
||||||
|
android:gravity="center_vertical"
|
||||||
|
android:id="@+id/action_general_settings"
|
||||||
|
android:orientation="horizontal">
|
||||||
|
<ImageView
|
||||||
|
android:layout_width="40dp"
|
||||||
|
android:layout_height="40dp"
|
||||||
|
android:padding="8dp"
|
||||||
|
android:src="@drawable/round_palette_24"
|
||||||
|
app:tint="@color/colorPrimaryText"/>
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_weight="1"
|
||||||
|
android:paddingLeft="8dp"
|
||||||
|
android:paddingRight="8dp"
|
||||||
|
android:orientation="vertical">
|
||||||
|
<TextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
style="@style/AnotherWidget.Settings.Title"
|
||||||
|
android:text="@string/appearance_header"/>
|
||||||
|
<TextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="Change the widget design"
|
||||||
|
style="@style/AnotherWidget.Settings.Subtitle"/>
|
||||||
|
</LinearLayout>
|
||||||
|
<ImageView
|
||||||
|
android:layout_width="48dp"
|
||||||
|
android:layout_height="48dp"
|
||||||
|
android:padding="8dp"
|
||||||
|
android:src="@drawable/round_chevron_right_24"
|
||||||
|
app:tint="@color/colorPrimaryText"/>
|
||||||
|
</LinearLayout>
|
||||||
<androidx.appcompat.widget.AppCompatTextView
|
<androidx.appcompat.widget.AppCompatTextView
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
@ -159,281 +140,263 @@
|
|||||||
android:paddingRight="20dp"
|
android:paddingRight="20dp"
|
||||||
android:textAppearance="@style/AnotherWidget.Settings.Header"
|
android:textAppearance="@style/AnotherWidget.Settings.Header"
|
||||||
app:textAllCaps="false" />
|
app:textAllCaps="false" />
|
||||||
<com.google.android.material.card.MaterialCardView
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
app:cardElevation="0dp"
|
android:gravity="center_vertical"
|
||||||
android:layout_marginLeft="16dp"
|
android:orientation="horizontal">
|
||||||
android:layout_marginRight="16dp"
|
|
||||||
android:layout_marginTop="8dp"
|
|
||||||
android:layout_marginBottom="4dp"
|
|
||||||
app:strokeColor="@color/cardBorder"
|
|
||||||
app:strokeWidth="1dp"
|
|
||||||
app:cardBackgroundColor="@color/colorPrimary"
|
|
||||||
app:cardCornerRadius="8dp">
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="0dp"
|
||||||
|
android:layout_weight="1"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:orientation="vertical">
|
android:paddingTop="12dp"
|
||||||
|
android:paddingBottom="12dp"
|
||||||
|
android:paddingLeft="8dp"
|
||||||
|
android:paddingRight="8dp"
|
||||||
|
android:orientation="horizontal"
|
||||||
|
android:gravity="center_vertical"
|
||||||
|
android:clickable="true"
|
||||||
|
android:focusable="true"
|
||||||
|
android:background="?android:attr/selectableItemBackground"
|
||||||
|
android:id="@+id/action_show_events">
|
||||||
|
<ImageView
|
||||||
|
android:layout_width="48dp"
|
||||||
|
android:layout_height="48dp"
|
||||||
|
android:padding="12dp"
|
||||||
|
app:tint="@color/colorPrimaryText"
|
||||||
|
android:src="@drawable/round_today_24"/>
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="0dp"
|
||||||
|
android:layout_weight="1"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:gravity="center_vertical"
|
android:paddingLeft="8dp"
|
||||||
android:orientation="horizontal">
|
android:paddingRight="8dp"
|
||||||
<LinearLayout
|
android:orientation="vertical">
|
||||||
android:layout_width="0dp"
|
<TextView
|
||||||
android:layout_weight="1"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:paddingTop="12dp"
|
|
||||||
android:paddingBottom="12dp"
|
|
||||||
android:paddingStart="10dp"
|
|
||||||
android:paddingEnd="0dp"
|
|
||||||
android:orientation="horizontal"
|
|
||||||
android:gravity="center_vertical"
|
|
||||||
android:clickable="true"
|
|
||||||
android:focusable="true"
|
|
||||||
android:background="?android:attr/selectableItemBackground"
|
|
||||||
android:id="@+id/action_show_events">
|
|
||||||
<ImageView
|
|
||||||
android:layout_width="48dp"
|
|
||||||
android:layout_height="48dp"
|
|
||||||
android:padding="12dp"
|
|
||||||
app:tint="@color/colorPrimaryText"
|
|
||||||
android:src="@drawable/round_today_24"/>
|
|
||||||
<LinearLayout
|
|
||||||
android:layout_width="0dp"
|
|
||||||
android:layout_weight="1"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:paddingLeft="8dp"
|
|
||||||
android:paddingRight="8dp"
|
|
||||||
android:orientation="vertical">
|
|
||||||
<TextView
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
style="@style/AnotherWidget.Settings.Title"
|
|
||||||
android:text="Calendar"/>
|
|
||||||
<TextView
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:text="Change the widget design"
|
|
||||||
style="@style/AnotherWidget.Settings.Subtitle"/>
|
|
||||||
</LinearLayout>
|
|
||||||
<LinearLayout
|
|
||||||
android:layout_width="1dp"
|
|
||||||
android:layout_height="match_parent"
|
|
||||||
android:background="@color/cardBorder"
|
|
||||||
android:layout_marginTop="4dp"
|
|
||||||
android:layout_marginBottom="4dp"
|
|
||||||
android:alpha="0.6" />
|
|
||||||
</LinearLayout>
|
|
||||||
<com.kyleduo.switchbutton.SwitchButton
|
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginEnd="16dp"
|
style="@style/AnotherWidget.Settings.Title"
|
||||||
android:layout_marginStart="16dp"
|
android:text="Calendar"/>
|
||||||
app:kswThumbWidth="16sp"
|
<TextView
|
||||||
app:kswThumbHeight="16sp"
|
|
||||||
android:checked="@{isCalendarEnabled}"
|
|
||||||
app:kswBackRadius="16dp"
|
|
||||||
app:kswTintColor="@color/colorAccent"
|
|
||||||
android:id="@+id/show_events_switch"
|
|
||||||
android:buttonTint="@color/colorAccent" />
|
|
||||||
</LinearLayout>
|
|
||||||
<LinearLayout
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:gravity="center_vertical"
|
|
||||||
android:orientation="horizontal">
|
|
||||||
<LinearLayout
|
|
||||||
android:layout_width="0dp"
|
|
||||||
android:layout_weight="1"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:paddingTop="12dp"
|
|
||||||
android:paddingBottom="12dp"
|
|
||||||
android:paddingStart="10dp"
|
|
||||||
android:paddingEnd="0dp"
|
|
||||||
android:orientation="horizontal"
|
|
||||||
android:gravity="center_vertical"
|
|
||||||
android:clickable="true"
|
|
||||||
android:focusable="true"
|
|
||||||
android:background="?android:attr/selectableItemBackground"
|
|
||||||
android:id="@+id/action_show_weather">
|
|
||||||
<ImageView
|
|
||||||
android:layout_width="48dp"
|
|
||||||
android:layout_height="48dp"
|
|
||||||
android:padding="12dp"
|
|
||||||
android:id="@+id/weather_icon_pack"
|
|
||||||
app:tint="@color/colorPrimaryText"
|
|
||||||
android:src="@drawable/round_brightness_5_24"/>
|
|
||||||
<LinearLayout
|
|
||||||
android:layout_width="0dp"
|
|
||||||
android:layout_weight="1"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:paddingLeft="8dp"
|
|
||||||
android:paddingRight="8dp"
|
|
||||||
android:orientation="vertical">
|
|
||||||
<TextView
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
style="@style/AnotherWidget.Settings.Title"
|
|
||||||
android:text="Weather"/>
|
|
||||||
<TextView
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:text="Change the widget design"
|
|
||||||
style="@style/AnotherWidget.Settings.Subtitle"/>
|
|
||||||
</LinearLayout>
|
|
||||||
<LinearLayout
|
|
||||||
android:layout_width="1dp"
|
|
||||||
android:layout_height="match_parent"
|
|
||||||
android:background="@color/cardBorder"
|
|
||||||
android:layout_marginTop="4dp"
|
|
||||||
android:layout_marginBottom="4dp"
|
|
||||||
android:alpha="0.6" />
|
|
||||||
</LinearLayout>
|
|
||||||
<com.kyleduo.switchbutton.SwitchButton
|
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginEnd="16dp"
|
android:text="Change the widget design"
|
||||||
android:layout_marginStart="16dp"
|
style="@style/AnotherWidget.Settings.Subtitle"/>
|
||||||
app:kswThumbWidth="16sp"
|
|
||||||
app:kswThumbHeight="16sp"
|
|
||||||
app:kswBackRadius="16dp"
|
|
||||||
app:kswTintColor="@color/colorAccent"
|
|
||||||
android:checked="@{isWeatherVisible}"
|
|
||||||
android:id="@+id/show_weather_switch"
|
|
||||||
android:buttonTint="@color/colorAccent" />
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="1dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="match_parent"
|
||||||
android:gravity="center_vertical"
|
android:background="@color/cardBorder"
|
||||||
android:orientation="horizontal">
|
android:layout_marginTop="4dp"
|
||||||
<LinearLayout
|
android:layout_marginBottom="4dp"
|
||||||
android:layout_width="0dp"
|
android:alpha="0.6" />
|
||||||
android:layout_weight="1"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:paddingTop="12dp"
|
|
||||||
android:paddingBottom="12dp"
|
|
||||||
android:paddingStart="10dp"
|
|
||||||
android:paddingEnd="0dp"
|
|
||||||
android:orientation="horizontal"
|
|
||||||
android:gravity="center_vertical"
|
|
||||||
android:clickable="true"
|
|
||||||
android:focusable="true"
|
|
||||||
android:background="?android:attr/selectableItemBackground"
|
|
||||||
android:id="@+id/action_show_clock">
|
|
||||||
<ImageView
|
|
||||||
android:layout_width="48dp"
|
|
||||||
android:layout_height="48dp"
|
|
||||||
android:padding="12dp"
|
|
||||||
app:tint="@color/colorPrimaryText"
|
|
||||||
android:src="@drawable/round_schedule_24"/>
|
|
||||||
<LinearLayout
|
|
||||||
android:layout_width="0dp"
|
|
||||||
android:layout_weight="1"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:paddingLeft="8dp"
|
|
||||||
android:paddingRight="8dp"
|
|
||||||
android:orientation="vertical">
|
|
||||||
<TextView
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
style="@style/AnotherWidget.Settings.Title"
|
|
||||||
android:text="Clock"/>
|
|
||||||
<TextView
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:text="Change the clock "
|
|
||||||
style="@style/AnotherWidget.Settings.Subtitle"/>
|
|
||||||
</LinearLayout>
|
|
||||||
<LinearLayout
|
|
||||||
android:layout_width="1dp"
|
|
||||||
android:layout_height="match_parent"
|
|
||||||
android:background="@color/cardBorder"
|
|
||||||
android:layout_marginTop="4dp"
|
|
||||||
android:layout_marginBottom="4dp"
|
|
||||||
android:alpha="0.6" />
|
|
||||||
</LinearLayout>
|
|
||||||
<com.kyleduo.switchbutton.SwitchButton
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_marginEnd="16dp"
|
|
||||||
android:layout_marginStart="16dp"
|
|
||||||
app:kswThumbWidth="16sp"
|
|
||||||
app:kswThumbHeight="16sp"
|
|
||||||
app:kswBackRadius="16dp"
|
|
||||||
app:kswTintColor="@color/colorAccent"
|
|
||||||
android:checked="@{isClockVisible}"
|
|
||||||
android:id="@+id/show_clock_switch"
|
|
||||||
android:buttonTint="@color/colorAccent" />
|
|
||||||
</LinearLayout>
|
|
||||||
<LinearLayout
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:gravity="center_vertical"
|
|
||||||
android:orientation="horizontal">
|
|
||||||
<LinearLayout
|
|
||||||
android:layout_width="0dp"
|
|
||||||
android:layout_weight="1"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:paddingTop="12dp"
|
|
||||||
android:paddingBottom="12dp"
|
|
||||||
android:paddingStart="10dp"
|
|
||||||
android:paddingEnd="0dp"
|
|
||||||
android:orientation="horizontal"
|
|
||||||
android:gravity="center_vertical"
|
|
||||||
android:clickable="true"
|
|
||||||
android:focusable="true"
|
|
||||||
android:background="?android:attr/selectableItemBackground"
|
|
||||||
android:id="@+id/action_show_glance">
|
|
||||||
<ImageView
|
|
||||||
android:layout_width="48dp"
|
|
||||||
android:layout_height="48dp"
|
|
||||||
android:padding="10dp"
|
|
||||||
app:tint="@color/colorPrimaryText"
|
|
||||||
android:src="@drawable/round_pageview"/>
|
|
||||||
<LinearLayout
|
|
||||||
android:layout_width="0dp"
|
|
||||||
android:layout_weight="1"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:paddingLeft="8dp"
|
|
||||||
android:paddingRight="8dp"
|
|
||||||
android:orientation="vertical">
|
|
||||||
<TextView
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
style="@style/AnotherWidget.Settings.Title"
|
|
||||||
android:text="Glance"/>
|
|
||||||
<TextView
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:text="Change glace info"
|
|
||||||
style="@style/AnotherWidget.Settings.Subtitle"/>
|
|
||||||
</LinearLayout>
|
|
||||||
<LinearLayout
|
|
||||||
android:layout_width="1dp"
|
|
||||||
android:layout_height="match_parent"
|
|
||||||
android:background="@color/cardBorder"
|
|
||||||
android:layout_marginTop="4dp"
|
|
||||||
android:layout_marginBottom="4dp"
|
|
||||||
android:alpha="0.6" />
|
|
||||||
</LinearLayout>
|
|
||||||
<com.kyleduo.switchbutton.SwitchButton
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_marginEnd="16dp"
|
|
||||||
android:layout_marginStart="16dp"
|
|
||||||
app:kswThumbWidth="16sp"
|
|
||||||
app:kswThumbHeight="16sp"
|
|
||||||
app:kswBackRadius="16dp"
|
|
||||||
app:kswTintColor="@color/colorAccent"
|
|
||||||
android:checked="@{isGlanceVisible}"
|
|
||||||
android:id="@+id/show_glance_switch"
|
|
||||||
android:buttonTint="@color/colorAccent" />
|
|
||||||
</LinearLayout>
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
</com.google.android.material.card.MaterialCardView>
|
<com.kyleduo.switchbutton.SwitchButton
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginEnd="16dp"
|
||||||
|
android:layout_marginStart="16dp"
|
||||||
|
app:kswThumbWidth="16sp"
|
||||||
|
app:kswThumbHeight="16sp"
|
||||||
|
android:checked="@{isCalendarEnabled}"
|
||||||
|
app:kswBackRadius="16dp"
|
||||||
|
app:kswTintColor="@color/colorAccent"
|
||||||
|
android:id="@+id/show_events_switch"
|
||||||
|
android:buttonTint="@color/colorAccent" />
|
||||||
|
</LinearLayout>
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:gravity="center_vertical"
|
||||||
|
android:orientation="horizontal">
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_weight="1"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:paddingTop="12dp"
|
||||||
|
android:paddingBottom="12dp"
|
||||||
|
android:paddingLeft="8dp"
|
||||||
|
android:paddingRight="8dp"
|
||||||
|
android:orientation="horizontal"
|
||||||
|
android:gravity="center_vertical"
|
||||||
|
android:clickable="true"
|
||||||
|
android:focusable="true"
|
||||||
|
android:background="?android:attr/selectableItemBackground"
|
||||||
|
android:id="@+id/action_show_weather">
|
||||||
|
<ImageView
|
||||||
|
android:layout_width="48dp"
|
||||||
|
android:layout_height="48dp"
|
||||||
|
android:padding="12dp"
|
||||||
|
android:id="@+id/weather_icon_pack"
|
||||||
|
app:tint="@color/colorPrimaryText"
|
||||||
|
android:src="@drawable/round_brightness_5_24"/>
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_weight="1"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:paddingLeft="8dp"
|
||||||
|
android:paddingRight="8dp"
|
||||||
|
android:orientation="vertical">
|
||||||
|
<TextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
style="@style/AnotherWidget.Settings.Title"
|
||||||
|
android:text="Weather"/>
|
||||||
|
<TextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="Change the widget design"
|
||||||
|
style="@style/AnotherWidget.Settings.Subtitle"/>
|
||||||
|
</LinearLayout>
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="1dp"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:background="@color/cardBorder"
|
||||||
|
android:layout_marginTop="4dp"
|
||||||
|
android:layout_marginBottom="4dp"
|
||||||
|
android:alpha="0.6" />
|
||||||
|
</LinearLayout>
|
||||||
|
<com.kyleduo.switchbutton.SwitchButton
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginEnd="16dp"
|
||||||
|
android:layout_marginStart="16dp"
|
||||||
|
app:kswThumbWidth="16sp"
|
||||||
|
app:kswThumbHeight="16sp"
|
||||||
|
app:kswBackRadius="16dp"
|
||||||
|
app:kswTintColor="@color/colorAccent"
|
||||||
|
android:checked="@{isWeatherVisible}"
|
||||||
|
android:id="@+id/show_weather_switch"
|
||||||
|
android:buttonTint="@color/colorAccent" />
|
||||||
|
</LinearLayout>
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:gravity="center_vertical"
|
||||||
|
android:orientation="horizontal">
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_weight="1"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:paddingTop="12dp"
|
||||||
|
android:paddingBottom="12dp"
|
||||||
|
android:paddingLeft="8dp"
|
||||||
|
android:paddingRight="8dp"
|
||||||
|
android:orientation="horizontal"
|
||||||
|
android:gravity="center_vertical"
|
||||||
|
android:clickable="true"
|
||||||
|
android:focusable="true"
|
||||||
|
android:background="?android:attr/selectableItemBackground"
|
||||||
|
android:id="@+id/action_show_clock">
|
||||||
|
<ImageView
|
||||||
|
android:layout_width="48dp"
|
||||||
|
android:layout_height="48dp"
|
||||||
|
android:padding="12dp"
|
||||||
|
app:tint="@color/colorPrimaryText"
|
||||||
|
android:src="@drawable/round_schedule_24"/>
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_weight="1"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:paddingLeft="8dp"
|
||||||
|
android:paddingRight="8dp"
|
||||||
|
android:orientation="vertical">
|
||||||
|
<TextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
style="@style/AnotherWidget.Settings.Title"
|
||||||
|
android:text="Clock"/>
|
||||||
|
<TextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="Change the clock "
|
||||||
|
style="@style/AnotherWidget.Settings.Subtitle"/>
|
||||||
|
</LinearLayout>
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="1dp"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:background="@color/cardBorder"
|
||||||
|
android:layout_marginTop="4dp"
|
||||||
|
android:layout_marginBottom="4dp"
|
||||||
|
android:alpha="0.6" />
|
||||||
|
</LinearLayout>
|
||||||
|
<com.kyleduo.switchbutton.SwitchButton
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginEnd="16dp"
|
||||||
|
android:layout_marginStart="16dp"
|
||||||
|
app:kswThumbWidth="16sp"
|
||||||
|
app:kswThumbHeight="16sp"
|
||||||
|
app:kswBackRadius="16dp"
|
||||||
|
app:kswTintColor="@color/colorAccent"
|
||||||
|
android:checked="@{isClockVisible}"
|
||||||
|
android:id="@+id/show_clock_switch"
|
||||||
|
android:buttonTint="@color/colorAccent" />
|
||||||
|
</LinearLayout>
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="match_parent"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:gravity="center_vertical"
|
||||||
|
android:orientation="horizontal">
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_weight="1"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:paddingTop="12dp"
|
||||||
|
android:paddingBottom="12dp"
|
||||||
|
android:paddingLeft="8dp"
|
||||||
|
android:paddingRight="8dp"
|
||||||
|
android:orientation="horizontal"
|
||||||
|
android:gravity="center_vertical"
|
||||||
|
android:clickable="true"
|
||||||
|
android:focusable="true"
|
||||||
|
android:background="?android:attr/selectableItemBackground"
|
||||||
|
android:id="@+id/action_show_glance">
|
||||||
|
<ImageView
|
||||||
|
android:layout_width="48dp"
|
||||||
|
android:layout_height="48dp"
|
||||||
|
android:padding="10dp"
|
||||||
|
app:tint="@color/colorPrimaryText"
|
||||||
|
android:src="@drawable/round_pageview"/>
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_weight="1"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:paddingLeft="8dp"
|
||||||
|
android:paddingRight="8dp"
|
||||||
|
android:orientation="vertical">
|
||||||
|
<TextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
style="@style/AnotherWidget.Settings.Title"
|
||||||
|
android:text="Glance"/>
|
||||||
|
<TextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:text="Change glace info"
|
||||||
|
style="@style/AnotherWidget.Settings.Subtitle"/>
|
||||||
|
</LinearLayout>
|
||||||
|
<LinearLayout
|
||||||
|
android:layout_width="1dp"
|
||||||
|
android:layout_height="match_parent"
|
||||||
|
android:background="@color/cardBorder"
|
||||||
|
android:layout_marginTop="4dp"
|
||||||
|
android:layout_marginBottom="4dp"
|
||||||
|
android:alpha="0.6" />
|
||||||
|
</LinearLayout>
|
||||||
|
<com.kyleduo.switchbutton.SwitchButton
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginEnd="16dp"
|
||||||
|
android:layout_marginStart="16dp"
|
||||||
|
app:kswThumbWidth="16sp"
|
||||||
|
app:kswThumbHeight="16sp"
|
||||||
|
app:kswBackRadius="16dp"
|
||||||
|
app:kswTintColor="@color/colorAccent"
|
||||||
|
android:checked="@{isGlanceVisible}"
|
||||||
|
android:id="@+id/show_glance_switch"
|
||||||
|
android:buttonTint="@color/colorAccent" />
|
||||||
|
</LinearLayout>
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
</com.tommasoberlose.anotherwidget.components.FixedFocusScrollView>
|
</com.tommasoberlose.anotherwidget.components.FixedFocusScrollView>
|
||||||
</layout>
|
</layout>
|