2017-05-05 16:36:04 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<!--
|
|
|
|
Copyright 2017 Thomas Schneider
|
|
|
|
|
2019-05-18 11:10:30 +02:00
|
|
|
This file is a part of Fedilab
|
2017-05-05 16:36:04 +02:00
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify it under the terms of the
|
|
|
|
GNU General Public License as published by the Free Software Foundation; either version 3 of the
|
|
|
|
License, or (at your option) any later version.
|
|
|
|
|
2019-05-18 11:10:30 +02:00
|
|
|
Fedilab is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
2017-05-05 16:36:04 +02:00
|
|
|
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
|
|
|
|
Public License for more details.
|
|
|
|
|
2019-05-18 11:10:30 +02:00
|
|
|
You should have received a copy of the GNU General Public License along with Fedilab; if not,
|
2017-05-05 16:36:04 +02:00
|
|
|
see <http://www.gnu.org/licenses>.
|
|
|
|
-->
|
|
|
|
<ScrollView
|
|
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
android:id="@+id/swipeContainer"
|
|
|
|
android:paddingLeft="@dimen/drawer_padding"
|
|
|
|
android:paddingRight="@dimen/drawer_padding"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent">
|
|
|
|
|
|
|
|
|
2017-10-01 11:49:37 +02:00
|
|
|
|
2017-05-05 16:36:04 +02:00
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:padding="@dimen/fab_margin"
|
|
|
|
android:orientation="vertical"
|
|
|
|
tools:ignore="UselessParent">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2017-10-01 11:49:37 +02:00
|
|
|
android:text="@string/set_notify"/>
|
2017-05-05 16:36:04 +02:00
|
|
|
<android.support.v7.widget.SwitchCompat
|
2017-10-01 11:49:37 +02:00
|
|
|
android:id="@+id/set_notify"
|
2017-05-05 16:36:04 +02:00
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:gravity="center"
|
|
|
|
android:layout_margin="10dp"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
/>
|
|
|
|
</LinearLayout>
|
2017-10-01 11:49:37 +02:00
|
|
|
|
2017-05-20 10:14:10 +02:00
|
|
|
<LinearLayout
|
2017-10-01 11:49:37 +02:00
|
|
|
android:id="@+id/notification_settings"
|
2017-05-20 10:14:10 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2017-10-01 11:49:37 +02:00
|
|
|
android:orientation="vertical">
|
2018-09-19 10:13:28 +02:00
|
|
|
|
2019-04-21 20:16:45 +02:00
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<View
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="1dp"
|
|
|
|
android:layout_margin="10dp"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:background="?colorAccent" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:gravity="center"
|
|
|
|
android:text="@string/settings_category_notif_customize"
|
|
|
|
android:textColor="?colorAccent"
|
|
|
|
android:textSize="16sp" />
|
|
|
|
|
|
|
|
<View
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="1dp"
|
|
|
|
android:layout_margin="10dp"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:background="?colorAccent" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
2018-09-19 10:13:28 +02:00
|
|
|
<Button
|
|
|
|
android:id="@+id/set_notif_sound"
|
|
|
|
android:gravity="center"
|
|
|
|
style="@style/Base.Widget.AppCompat.Button.Colored"
|
|
|
|
android:tint="@android:color/white"
|
2019-04-21 20:16:45 +02:00
|
|
|
android:layout_marginTop="@dimen/settings_checkbox_margin"
|
|
|
|
android:layout_marginBottom="@dimen/settings_checkbox_margin"
|
2018-09-19 10:13:28 +02:00
|
|
|
android:text="@string/set_notif_sound"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"/>
|
2019-04-19 16:05:00 +02:00
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:id="@+id/channels_container"
|
2019-04-21 20:16:45 +02:00
|
|
|
android:layout_marginTop="@dimen/settings_checkbox_margin"
|
|
|
|
android:layout_marginBottom="@dimen/settings_checkbox_margin"
|
2019-04-19 16:05:00 +02:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="vertical">
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
>
|
|
|
|
<Button
|
|
|
|
android:id="@+id/sound_mention"
|
|
|
|
android:gravity="center"
|
|
|
|
style="@style/Base.Widget.AppCompat.Button.Colored"
|
|
|
|
android:tint="@android:color/white"
|
|
|
|
android:text="@string/channel_notif_mention"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:layout_height="wrap_content"/>
|
|
|
|
<Button
|
|
|
|
android:id="@+id/sound_follow"
|
|
|
|
android:gravity="center"
|
|
|
|
style="@style/Base.Widget.AppCompat.Button.Colored"
|
|
|
|
android:tint="@android:color/white"
|
|
|
|
android:text="@string/channel_notif_follow"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:layout_height="wrap_content"/>
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
>
|
|
|
|
<Button
|
|
|
|
android:id="@+id/sound_boost"
|
|
|
|
android:gravity="center"
|
|
|
|
style="@style/Base.Widget.AppCompat.Button.Colored"
|
|
|
|
android:tint="@android:color/white"
|
|
|
|
android:text="@string/channel_notif_boost"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:layout_height="wrap_content"/>
|
|
|
|
<Button
|
|
|
|
android:id="@+id/sound_fav"
|
|
|
|
android:gravity="center"
|
|
|
|
style="@style/Base.Widget.AppCompat.Button.Colored"
|
|
|
|
android:tint="@android:color/white"
|
|
|
|
android:text="@string/channel_notif_fav"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:layout_height="wrap_content"/>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
>
|
|
|
|
<Button
|
2019-05-04 12:58:58 +02:00
|
|
|
android:id="@+id/sound_poll"
|
2019-04-19 16:05:00 +02:00
|
|
|
android:gravity="center"
|
|
|
|
style="@style/Base.Widget.AppCompat.Button.Colored"
|
|
|
|
android:tint="@android:color/white"
|
2019-05-04 12:58:58 +02:00
|
|
|
android:text="@string/channel_notif_poll"
|
2019-04-19 16:05:00 +02:00
|
|
|
android:maxLines="1"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:layout_height="wrap_content"/>
|
|
|
|
<Button
|
|
|
|
android:id="@+id/sound_media"
|
|
|
|
android:gravity="center"
|
|
|
|
style="@style/Base.Widget.AppCompat.Button.Colored"
|
|
|
|
android:tint="@android:color/white"
|
|
|
|
android:text="@string/channel_notif_media"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:layout_height="wrap_content"/>
|
|
|
|
</LinearLayout>
|
2019-05-04 12:58:58 +02:00
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
>
|
|
|
|
<Button
|
|
|
|
android:id="@+id/sound_backup"
|
|
|
|
android:gravity="center"
|
|
|
|
style="@style/Base.Widget.AppCompat.Button.Colored"
|
|
|
|
android:tint="@android:color/white"
|
|
|
|
android:text="@string/channel_notif_backup"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:layout_height="wrap_content"/>
|
|
|
|
<Button
|
|
|
|
android:visibility="invisible"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:layout_height="wrap_content"/>
|
|
|
|
</LinearLayout>
|
2019-04-19 16:05:00 +02:00
|
|
|
|
|
|
|
</LinearLayout>
|
2017-10-01 11:49:37 +02:00
|
|
|
<!-- NOTIFICATIONS SETTINGS -->
|
2019-04-21 20:16:45 +02:00
|
|
|
<LinearLayout
|
2017-10-01 11:49:37 +02:00
|
|
|
android:layout_width="match_parent"
|
2019-04-21 20:16:45 +02:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<View
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="1dp"
|
|
|
|
android:layout_margin="10dp"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:background="?colorAccent" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:gravity="center"
|
|
|
|
android:text="@string/settings_category_notif_categories"
|
|
|
|
android:textColor="?colorAccent"
|
|
|
|
android:textSize="16sp" />
|
|
|
|
|
|
|
|
<View
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="1dp"
|
|
|
|
android:layout_margin="10dp"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:background="?colorAccent" />
|
|
|
|
</LinearLayout>
|
2017-10-01 11:49:37 +02:00
|
|
|
<!-- Toots per page -->
|
|
|
|
<CheckBox
|
|
|
|
android:id="@+id/set_notif_follow"
|
2017-05-20 10:14:10 +02:00
|
|
|
android:layout_width="wrap_content"
|
2019-04-21 20:16:45 +02:00
|
|
|
android:layout_marginTop="@dimen/settings_checkbox_margin"
|
|
|
|
android:layout_marginBottom="@dimen/settings_checkbox_margin"
|
2017-10-01 11:49:37 +02:00
|
|
|
android:text="@string/set_notif_follow"
|
|
|
|
android:layout_height="wrap_content" />
|
|
|
|
<CheckBox
|
|
|
|
android:id="@+id/set_notif_follow_add"
|
2017-05-20 10:14:10 +02:00
|
|
|
android:layout_width="wrap_content"
|
2019-04-21 20:16:45 +02:00
|
|
|
android:layout_marginTop="@dimen/settings_checkbox_margin"
|
|
|
|
android:layout_marginBottom="@dimen/settings_checkbox_margin"
|
2017-10-01 11:49:37 +02:00
|
|
|
android:text="@string/set_notif_follow_add"
|
|
|
|
android:layout_height="wrap_content" />
|
|
|
|
<CheckBox
|
|
|
|
android:id="@+id/set_notif_follow_ask"
|
|
|
|
android:layout_width="wrap_content"
|
2019-04-21 20:16:45 +02:00
|
|
|
android:layout_marginTop="@dimen/settings_checkbox_margin"
|
|
|
|
android:layout_marginBottom="@dimen/settings_checkbox_margin"
|
2017-10-01 11:49:37 +02:00
|
|
|
android:text="@string/set_notif_follow_ask"
|
|
|
|
android:layout_height="wrap_content" />
|
|
|
|
<CheckBox
|
|
|
|
android:id="@+id/set_notif_follow_mention"
|
|
|
|
android:layout_width="wrap_content"
|
2019-04-21 20:16:45 +02:00
|
|
|
android:layout_marginTop="@dimen/settings_checkbox_margin"
|
|
|
|
android:layout_marginBottom="@dimen/settings_checkbox_margin"
|
2017-10-01 11:49:37 +02:00
|
|
|
android:text="@string/set_notif_follow_mention"
|
|
|
|
android:layout_height="wrap_content" />
|
|
|
|
<CheckBox
|
|
|
|
android:id="@+id/set_notif_follow_share"
|
|
|
|
android:layout_width="wrap_content"
|
2019-04-21 20:16:45 +02:00
|
|
|
android:layout_marginTop="@dimen/settings_checkbox_margin"
|
|
|
|
android:layout_marginBottom="@dimen/settings_checkbox_margin"
|
2017-10-01 11:49:37 +02:00
|
|
|
android:text="@string/set_notif_follow_share"
|
|
|
|
android:layout_height="wrap_content" />
|
2019-05-04 12:58:58 +02:00
|
|
|
<CheckBox
|
|
|
|
android:id="@+id/set_notif_follow_poll"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_marginTop="@dimen/settings_checkbox_margin"
|
|
|
|
android:layout_marginBottom="@dimen/settings_checkbox_margin"
|
|
|
|
android:text="@string/set_notif_follow_poll"
|
|
|
|
android:layout_height="wrap_content" />
|
2017-10-01 11:49:37 +02:00
|
|
|
<!-- END NOTIFICATIONS SETTINGS -->
|
2017-08-29 21:10:41 +02:00
|
|
|
|
2017-10-01 11:49:37 +02:00
|
|
|
<!-- NOTIFICATION CONTENT NEW -->
|
2019-04-21 20:16:45 +02:00
|
|
|
<LinearLayout
|
2017-10-01 11:49:37 +02:00
|
|
|
android:layout_width="match_parent"
|
2019-04-21 20:16:45 +02:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<View
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="1dp"
|
|
|
|
android:layout_margin="10dp"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:background="?colorAccent" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:gravity="center"
|
|
|
|
android:text="@string/settings_category_notif_news"
|
|
|
|
android:textColor="?colorAccent"
|
|
|
|
android:textSize="16sp" />
|
|
|
|
|
|
|
|
<View
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="1dp"
|
|
|
|
android:layout_margin="10dp"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:background="?colorAccent" />
|
|
|
|
</LinearLayout>
|
2017-10-01 11:49:37 +02:00
|
|
|
<!-- New hometimeline content -->
|
|
|
|
<CheckBox
|
|
|
|
android:id="@+id/set_notif_hometimeline"
|
2017-08-29 21:10:41 +02:00
|
|
|
android:layout_width="wrap_content"
|
2019-04-21 20:16:45 +02:00
|
|
|
android:layout_marginTop="@dimen/settings_checkbox_margin"
|
|
|
|
android:layout_marginBottom="@dimen/settings_checkbox_margin"
|
2017-10-01 11:49:37 +02:00
|
|
|
android:text="@string/set_notification_news"
|
|
|
|
android:layout_height="wrap_content" />
|
|
|
|
|
2019-04-21 20:16:45 +02:00
|
|
|
<LinearLayout
|
2017-10-01 11:49:37 +02:00
|
|
|
android:layout_width="match_parent"
|
2019-04-21 20:16:45 +02:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<View
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="1dp"
|
|
|
|
android:layout_margin="10dp"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:background="?colorAccent" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:gravity="center"
|
|
|
|
android:text="@string/settings_category_notif_time_slot"
|
|
|
|
android:textColor="?colorAccent"
|
|
|
|
android:textSize="16sp" />
|
|
|
|
|
|
|
|
<View
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="1dp"
|
|
|
|
android:layout_margin="10dp"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:background="?colorAccent" />
|
|
|
|
</LinearLayout>
|
2018-09-19 10:13:28 +02:00
|
|
|
<CheckBox
|
|
|
|
android:id="@+id/set_enable_time_slot"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:text="@string/set_enable_time_slot"
|
2019-04-21 20:16:45 +02:00
|
|
|
android:layout_marginTop="@dimen/settings_checkbox_margin"
|
|
|
|
android:layout_marginBottom="@dimen/settings_checkbox_margin"
|
2018-09-19 10:13:28 +02:00
|
|
|
android:layout_height="wrap_content" />
|
2017-10-01 11:49:37 +02:00
|
|
|
<LinearLayout
|
|
|
|
style="?attr/shapeBorder"
|
|
|
|
android:layout_width="match_parent"
|
2017-08-29 21:10:41 +02:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_vertical"
|
2017-10-01 11:49:37 +02:00
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:paddingBottom="10dp"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
|
|
android:text="@string/settings_time_from"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content" />
|
|
|
|
<Button
|
|
|
|
android:focusableInTouchMode="false"
|
|
|
|
android:id="@+id/settings_time_from"
|
2018-11-03 14:45:55 +01:00
|
|
|
style="?attr/borderlessColored"
|
2017-10-01 11:49:37 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content" />
|
|
|
|
<TextView
|
|
|
|
android:text="@string/settings_time_to"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content" />
|
|
|
|
<Button
|
|
|
|
android:focusableInTouchMode="false"
|
2018-11-03 14:45:55 +01:00
|
|
|
style="?attr/borderlessColored"
|
2017-10-01 11:49:37 +02:00
|
|
|
android:id="@+id/settings_time_to"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content" />
|
2018-12-16 15:23:27 +01:00
|
|
|
<Spinner
|
|
|
|
android:id="@+id/action_notification"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:entries="@array/action_notification"/>
|
2017-10-01 11:49:37 +02:00
|
|
|
</LinearLayout>
|
|
|
|
<!-- MORE OPTIONS SETTINGS -->
|
2019-04-21 20:16:45 +02:00
|
|
|
<LinearLayout
|
2017-10-01 11:49:37 +02:00
|
|
|
android:layout_width="match_parent"
|
2019-04-21 20:16:45 +02:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<View
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="1dp"
|
|
|
|
android:layout_margin="10dp"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:background="?colorAccent" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:gravity="center"
|
|
|
|
android:text="@string/settings_category_notif_advanced"
|
|
|
|
android:textColor="?colorAccent"
|
|
|
|
android:textSize="16sp" />
|
2017-10-01 11:49:37 +02:00
|
|
|
|
2019-04-21 20:16:45 +02:00
|
|
|
<View
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="1dp"
|
|
|
|
android:layout_margin="10dp"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:background="?colorAccent" />
|
|
|
|
</LinearLayout>
|
2017-10-01 11:49:37 +02:00
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/set_wifi_only"/>
|
|
|
|
<android.support.v7.widget.SwitchCompat
|
|
|
|
android:id="@+id/set_wifi_only"
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:gravity="center"
|
|
|
|
android:layout_margin="10dp"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
/>
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
2017-08-29 21:10:41 +02:00
|
|
|
android:layout_height="wrap_content"
|
2017-10-01 11:49:37 +02:00
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/set_notif_silent"/>
|
|
|
|
<android.support.v7.widget.SwitchCompat
|
|
|
|
android:id="@+id/set_silence"
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:gravity="center"
|
|
|
|
android:layout_margin="10dp"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
/>
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/set_led_colour_label"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:layout_marginLeft="10dp"
|
|
|
|
android:text="@string/set_led_colour"/>
|
|
|
|
<Spinner
|
|
|
|
android:id="@+id/led_colour_spinner"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:entries="@array/led_colours"/>
|
|
|
|
</LinearLayout>
|
2017-08-29 21:10:41 +02:00
|
|
|
</LinearLayout>
|
2017-05-05 16:36:04 +02:00
|
|
|
</LinearLayout>
|
|
|
|
</ScrollView>
|
|
|
|
|