apkfuckery/com.discord/res/layout/widget_settings_notifications.xml
2019-02-04 21:05:16 +01:00

37 lines
No EOL
8.2 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<ScrollView android:background="@color/theme_white" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
<TextView android:textSize="@dimen/settings_option_text_header" android:textColor="@color/theme_grey_2" android:background="@drawable/drawable_bg_settings_header" android:paddingLeft="@dimen/settings_option_padding" android:paddingTop="@dimen/settings_option_padding_header_top" android:paddingRight="@dimen/settings_option_padding" android:paddingBottom="@dimen/settings_option_padding" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/form_label_mobile_notifications_label" fontPath="@string/font_whitney_semibold" />
<RelativeLayout android:id="@id/settings_notifications_enabled" android:background="@drawable/drawable_bg_settings_item" android:padding="@dimen/settings_option_padding" android:layout_width="fill_parent" android:layout_height="wrap_content">
<TextView android:id="@id/settings_notifications_enabled_toggle" android:background="@drawable/drawable_icon_switch" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentRight="true" android:layout_centerVertical="true" />
<TextView android:textSize="@dimen/settings_option_text_item" android:textColor="@color/theme_grey_channels" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="@string/form_label_mobile_notifications" android:layout_toLeftOf="@id/settings_notifications_enabled_toggle" android:layout_centerVertical="true" fontPath="@string/font_whitney_medium" />
</RelativeLayout>
<LinearLayout android:orientation="vertical" android:id="@id/settings_notifications_wrap" android:layout_width="fill_parent" android:layout_height="wrap_content">
<TextView android:textSize="@dimen/settings_option_text_header" android:textColor="@color/theme_grey_2" android:gravity="center_vertical" android:background="@drawable/drawable_bg_settings_header" android:paddingLeft="@dimen/settings_option_padding" android:paddingTop="@dimen/settings_option_padding_header_top" android:paddingRight="@dimen/settings_option_padding" android:paddingBottom="@dimen/settings_option_padding" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/form_label_mobile_notifications_behavior" fontPath="@string/font_whitney_semibold" />
<RelativeLayout android:id="@id/settings_notifications_wake_lock" android:background="@drawable/drawable_bg_settings_item" android:padding="@dimen/settings_option_padding" android:layout_width="fill_parent" android:layout_height="wrap_content">
<TextView android:id="@id/settings_notifications_wake_lock_toggle" android:background="@drawable/drawable_icon_switch" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentRight="true" android:layout_centerVertical="true" />
<TextView android:textSize="@dimen/settings_option_text_item" android:textColor="@color/theme_grey_channels" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="@string/form_label_mobile_notifications_wake_device" android:layout_toLeftOf="@id/settings_notifications_wake_lock_toggle" android:layout_centerVertical="true" fontPath="@string/font_whitney_medium" />
</RelativeLayout>
<RelativeLayout android:id="@id/settings_notifications_blink" android:background="@drawable/drawable_bg_settings_item" android:padding="@dimen/settings_option_padding" android:layout_width="fill_parent" android:layout_height="wrap_content">
<TextView android:id="@id/settings_notifications_blink_toggle" android:background="@drawable/drawable_icon_switch" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentRight="true" android:layout_centerVertical="true" />
<TextView android:textSize="@dimen/settings_option_text_item" android:textColor="@color/theme_grey_channels" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="@string/form_label_mobile_notifications_blink" android:layout_toLeftOf="@id/settings_notifications_blink_toggle" android:layout_centerVertical="true" fontPath="@string/font_whitney_medium" />
</RelativeLayout>
<RelativeLayout android:id="@id/settings_notifications_vibrations" android:background="@drawable/drawable_bg_settings_item" android:padding="@dimen/settings_option_padding" android:layout_width="fill_parent" android:layout_height="wrap_content">
<TextView android:id="@id/settings_notifications_vibrations_toggle" android:background="@drawable/drawable_icon_switch" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentRight="true" android:layout_centerVertical="true" />
<TextView android:textSize="@dimen/settings_option_text_item" android:textColor="@color/theme_grey_channels" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="@string/form_label_mobile_notifications_vibrations" android:layout_toLeftOf="@id/settings_notifications_vibrations_toggle" android:layout_centerVertical="true" fontPath="@string/font_whitney_medium" />
</RelativeLayout>
<TextView android:textSize="@dimen/settings_option_text_header" android:textColor="@color/theme_grey_2" android:gravity="center_vertical" android:background="@drawable/drawable_bg_settings_header" android:paddingLeft="@dimen/settings_option_padding" android:paddingTop="@dimen/settings_option_padding_header_top" android:paddingRight="@dimen/settings_option_padding" android:paddingBottom="@dimen/settings_option_padding" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/sounds" fontPath="@string/font_whitney_semibold" />
<RelativeLayout android:gravity="center_vertical" android:id="@id/settings_notifications_sound_1" android:background="@drawable/drawable_bg_settings_item" android:padding="@dimen/settings_option_padding" android:layout_width="fill_parent" android:layout_height="wrap_content">
<LinearLayout android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
<TextView android:textSize="@dimen/settings_option_text_item" android:textColor="@color/theme_grey_channels" android:gravity="center_vertical" android:id="@id/settings_notifications_sound" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/form_label_mobile_notifications_sound_message" fontPath="@string/font_whitney_medium" />
<TextView android:textSize="@dimen/settings_option_text_item_small" android:textColor="#ff757575" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="3.0dip" android:text="@string/_default" fontPath="@string/font_whitney_medium" />
</LinearLayout>
</RelativeLayout>
<RelativeLayout android:id="@id/settings_notifications_mute_all" android:background="@drawable/drawable_bg_settings_item" android:padding="@dimen/settings_option_padding" android:layout_width="fill_parent" android:layout_height="wrap_content">
<TextView android:enabled="false" android:id="@id/settings_notifications_mute_all_toggle" android:background="@drawable/drawable_icon_switch" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_alignParentRight="true" android:layout_centerVertical="true" />
<TextView android:textSize="@dimen/settings_option_text_item" android:textColor="@color/theme_grey_channels" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="@string/form_label_mobile_notifications_sound_disable" android:layout_toLeftOf="@id/settings_notifications_mute_all_toggle" android:layout_centerVertical="true" fontPath="@string/font_whitney_medium" />
</RelativeLayout>
</LinearLayout>
</LinearLayout>
</ScrollView>