335 lines
16 KiB
XML
335 lines
16 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:orientation="vertical">
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingBottom="48dp"
|
|
android:orientation="vertical">
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:paddingTop="16dp"
|
|
android:paddingBottom="24dp"
|
|
android:paddingLeft="32dp"
|
|
android:paddingRight="32dp">
|
|
<LinearLayout
|
|
android:layout_width="0dp"
|
|
android:layout_weight="1"
|
|
android:paddingEnd="16dp"
|
|
android:paddingStart="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
<androidx.appcompat.widget.AppCompatTextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
style="@style/AnotherWidget.Settings.Title"
|
|
android:gravity="start"
|
|
android:id="@+id/title"
|
|
android:textAlignment="viewStart"
|
|
android:text="@string/settings_weather_provider_open_weather"/>
|
|
<androidx.appcompat.widget.AppCompatTextView
|
|
android:textAppearance="@style/AnotherWidget.Settings.Subtitle"
|
|
app:textAllCaps="false"
|
|
android:letterSpacing="0"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="start"
|
|
android:textAlignment="viewStart"
|
|
android:paddingTop="4dp"
|
|
android:id="@+id/subtitle"
|
|
android:text=""/>
|
|
</LinearLayout>
|
|
<com.kyleduo.switchbutton.SwitchButton
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
app:kswThumbWidth="16sp"
|
|
app:kswThumbHeight="16sp"
|
|
app:kswBackRadius="16dp"
|
|
app:kswTintColor="@color/colorAccent"
|
|
android:id="@+id/provider_switch" />
|
|
</LinearLayout>
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="1dp"
|
|
android:id="@+id/divider"
|
|
android:background="@color/disabledButtonBackground" />
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:id="@+id/settings_container">
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:paddingLeft="32dp"
|
|
android:paddingRight="32dp"
|
|
android:paddingTop="16dp"
|
|
android:paddingBottom="16dp"
|
|
android:clickable="true"
|
|
android:focusable="true"
|
|
android:foreground="?attr/selectableItemBackground"
|
|
android:gravity="center_vertical"
|
|
android:background="@color/errorColorText_op10"
|
|
android:id="@+id/warning_container">
|
|
<androidx.appcompat.widget.AppCompatTextView
|
|
android:textSize="16sp"
|
|
style="@style/AnotherWidget.Settings.Title"
|
|
app:textAllCaps="false"
|
|
android:letterSpacing="0"
|
|
android:layout_width="0dp"
|
|
android:layout_weight="1"
|
|
android:layout_height="wrap_content"
|
|
android:gravity="start"
|
|
android:layout_marginEnd="16dp"
|
|
android:textAlignment="viewStart"
|
|
android:textColor="@color/errorColorText"
|
|
android:id="@+id/warning_title"
|
|
android:text="Errore"/>
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
android:layout_width="48dp"
|
|
android:layout_height="48dp"
|
|
android:padding="10dp"
|
|
android:src="@drawable/round_arrow_circle_down_24"
|
|
android:rotation="-90"
|
|
app:tint="@color/errorColorText" />
|
|
</LinearLayout>
|
|
<androidx.appcompat.widget.AppCompatTextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingTop="16dp"
|
|
android:text="@string/preferences_header"
|
|
android:textAlignment="viewStart"
|
|
android:paddingLeft="32dp"
|
|
android:paddingRight="32dp"
|
|
android:textSize="16sp"
|
|
android:id="@+id/header"
|
|
android:textColor="@color/colorAccent"
|
|
android:textAppearance="@style/AnotherWidget.Settings.Header"
|
|
app:textAllCaps="false" />
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingTop="16dp"
|
|
android:paddingBottom="16dp"
|
|
android:paddingLeft="24dp"
|
|
android:paddingRight="24dp"
|
|
android:gravity="center_vertical"
|
|
android:id="@+id/alarm_set_by_container"
|
|
android:orientation="horizontal">
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
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:id="@+id/alarm_set_by_title"
|
|
android:textSize="16sp"
|
|
android:text="@string/settings_show_next_alarm_app_title"/>
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:textSize="14sp"
|
|
android:text="@string/settings_show_next_alarm_app_subtitle_correct"
|
|
android:id="@+id/alarm_set_by_subtitle"
|
|
style="@style/AnotherWidget.Settings.Subtitle"/>
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingTop="16dp"
|
|
android:paddingBottom="16dp"
|
|
android:paddingLeft="24dp"
|
|
android:paddingRight="24dp"
|
|
android:clickable="true"
|
|
android:focusable="true"
|
|
android:background="?android:attr/selectableItemBackground"
|
|
android:gravity="center_vertical"
|
|
android:id="@+id/action_filter_music_players"
|
|
android:orientation="horizontal">
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
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"
|
|
android:textSize="16sp"
|
|
style="@style/AnotherWidget.Settings.Title"
|
|
android:text="@string/settings_music_players_filter_title"/>
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:textSize="14sp"
|
|
android:text="@string/settings_music_players_filter_subtitle"
|
|
style="@style/AnotherWidget.Settings.Subtitle"/>
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingTop="16dp"
|
|
android:paddingBottom="16dp"
|
|
android:paddingLeft="24dp"
|
|
android:paddingRight="24dp"
|
|
android:clickable="true"
|
|
android:focusable="true"
|
|
android:background="?android:attr/selectableItemBackground"
|
|
android:gravity="center_vertical"
|
|
android:id="@+id/action_change_media_info_format"
|
|
android:orientation="horizontal">
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
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"
|
|
android:textSize="16sp"
|
|
style="@style/AnotherWidget.Settings.Title"
|
|
android:text="@string/song_info_format_activity_title"/>
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:textSize="14sp"
|
|
android:text="@string/song_info_format_activity_subtitle"
|
|
style="@style/AnotherWidget.Settings.Subtitle"/>
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingTop="16dp"
|
|
android:paddingBottom="16dp"
|
|
android:paddingLeft="24dp"
|
|
android:paddingRight="24dp"
|
|
android:clickable="true"
|
|
android:focusable="true"
|
|
android:background="?android:attr/selectableItemBackground"
|
|
android:gravity="center_vertical"
|
|
android:id="@+id/action_filter_notifications_app"
|
|
android:orientation="horizontal">
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
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"
|
|
android:textSize="16sp"
|
|
style="@style/AnotherWidget.Settings.Title"
|
|
android:text="@string/applications_filter_title"/>
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:textSize="14sp"
|
|
android:text="@string/applications_filter_subtitle"
|
|
style="@style/AnotherWidget.Settings.Subtitle"/>
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingTop="16dp"
|
|
android:paddingBottom="16dp"
|
|
android:paddingLeft="24dp"
|
|
android:paddingRight="24dp"
|
|
android:clickable="true"
|
|
android:focusable="true"
|
|
android:background="?android:attr/selectableItemBackground"
|
|
android:gravity="center_vertical"
|
|
android:id="@+id/action_change_notification_timer"
|
|
android:orientation="horizontal">
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
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"
|
|
android:textSize="16sp"
|
|
style="@style/AnotherWidget.Settings.Title"
|
|
android:text="@string/glance_notification_hide_timeout_title"/>
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:textSize="14sp"
|
|
android:id="@+id/notification_timer_label"
|
|
style="@style/AnotherWidget.Settings.Subtitle"/>
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingTop="16dp"
|
|
android:paddingBottom="16dp"
|
|
android:paddingLeft="24dp"
|
|
android:paddingRight="24dp"
|
|
android:clickable="true"
|
|
android:focusable="true"
|
|
android:background="?android:attr/selectableItemBackground"
|
|
android:gravity="center_vertical"
|
|
android:id="@+id/action_toggle_google_fit"
|
|
android:orientation="horizontal">
|
|
<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"
|
|
android:textSize="16sp"
|
|
style="@style/AnotherWidget.Settings.Title"
|
|
android:text="@string/google_fit"/>
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:textSize="14sp"
|
|
android:id="@+id/google_fit_status_label"
|
|
android:text="@string/google_fit_account_not_connected"
|
|
style="@style/AnotherWidget.Settings.Subtitle"/>
|
|
</LinearLayout>
|
|
<com.google.android.material.button.MaterialButton
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
style="@style/Widget.MaterialComponents.Button.TextButton"
|
|
app:backgroundTint="@color/colorAccent_op10"
|
|
android:textColor="@color/colorAccent"
|
|
android:text="@string/action_connect"
|
|
android:textAllCaps="false"
|
|
android:id="@+id/action_connect_to_google_fit" />
|
|
<com.google.android.material.button.MaterialButton
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
style="@style/Widget.MaterialComponents.Button.OutlinedButton"
|
|
android:textColor="@color/colorSecondaryText"
|
|
android:visibility="gone"
|
|
app:strokeColor="@color/disabledButtonBackground"
|
|
android:text="@string/action_disconnect"
|
|
android:textAllCaps="false"
|
|
android:id="@+id/action_disconnect_to_google_fit" />
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
</ScrollView> |