mirror of https://codeberg.org/gitnex/GitNex.git
220 lines
8.9 KiB
XML
220 lines
8.9 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<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:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="?attr/primaryBackgroundColor"
|
|
android:orientation="vertical">
|
|
|
|
<com.google.android.material.appbar.AppBarLayout
|
|
android:id="@+id/appbar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="@dimen/dimen10dp"
|
|
android:theme="@style/Widget.AppCompat.SearchView"
|
|
app:elevation="@dimen/dimen0dp">
|
|
|
|
<androidx.appcompat.widget.Toolbar
|
|
android:id="@+id/toolbar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="?attr/primaryBackgroundColor"
|
|
android:theme="@style/AppTheme.AppBarOverlay"
|
|
tools:ignore="UnusedAttribute">
|
|
|
|
<ImageView
|
|
android:id="@+id/close"
|
|
android:layout_width="@dimen/dimen26dp"
|
|
android:layout_height="@dimen/dimen26dp"
|
|
android:layout_marginStart="@dimen/dimen16dp"
|
|
android:layout_marginEnd="@dimen/dimen16dp"
|
|
android:background="?android:attr/selectableItemBackgroundBorderless"
|
|
android:clickable="true"
|
|
android:contentDescription="@string/close"
|
|
android:focusable="true"
|
|
android:gravity="center_vertical"
|
|
android:src="@drawable/ic_close" />
|
|
|
|
<TextView
|
|
android:id="@+id/toolbar_title"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_vertical"
|
|
android:maxLines="1"
|
|
android:text="@string/pageTitleNotifications"
|
|
android:textColor="?attr/primaryTextColor"
|
|
android:textSize="@dimen/dimen20sp" />
|
|
|
|
</androidx.appcompat.widget.Toolbar>
|
|
|
|
</com.google.android.material.appbar.AppBarLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/enableNotificationsFrame"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="@dimen/dimen6dp"
|
|
android:background="?android:attr/selectableItemBackground"
|
|
android:orientation="horizontal"
|
|
android:weightSum="100"
|
|
android:padding="@dimen/dimen16dp">
|
|
|
|
<TextView
|
|
android:id="@+id/enableNotificationsHeader"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="90"
|
|
android:layout_marginStart="@dimen/dimen24dp"
|
|
android:text="@string/enableNotificationsHeaderText"
|
|
android:textColor="?attr/primaryTextColor"
|
|
android:textSize="@dimen/dimen18sp" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="10"
|
|
android:gravity="center_vertical|end"
|
|
android:orientation="horizontal">
|
|
|
|
<com.google.android.material.materialswitch.MaterialSwitch
|
|
android:id="@+id/enableNotificationsMode"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="@dimen/dimen32dp"
|
|
android:paddingStart="@dimen/dimen24dp"
|
|
android:paddingEnd="@dimen/dimen24dp" />
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/pollingDelayFrame"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="6dp"
|
|
android:background="?android:attr/selectableItemBackground"
|
|
android:orientation="vertical"
|
|
android:padding="@dimen/dimen16dp">
|
|
|
|
<TextView
|
|
android:id="@+id/pollingDelayHeaderSelector"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="@dimen/dimen24dp"
|
|
android:layout_marginEnd="@dimen/dimen24dp"
|
|
android:text="@string/notificationsPollingHeaderText"
|
|
android:textColor="?attr/primaryTextColor"
|
|
android:textSize="@dimen/dimen18sp" />
|
|
|
|
<TextView
|
|
android:id="@+id/pollingDelaySelected"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="@dimen/dimen24dp"
|
|
android:layout_marginEnd="@dimen/dimen24dp"
|
|
android:text="@string/pollingDelaySelectedText"
|
|
android:textColor="?attr/selectedTextColor"
|
|
android:textSize="@dimen/dimen16sp" />
|
|
|
|
</LinearLayout>
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/enableLightsFrame"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="6dp"
|
|
android:background="?android:attr/selectableItemBackground"
|
|
android:orientation="horizontal"
|
|
android:padding="@dimen/dimen16dp">
|
|
|
|
<TextView
|
|
android:id="@+id/enableLightsHeader"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="@dimen/dimen24dp"
|
|
android:layout_marginEnd="@dimen/dimen24dp"
|
|
android:text="@string/enableLightsHeaderText"
|
|
android:textColor="?attr/primaryTextColor"
|
|
android:textSize="@dimen/dimen18sp" />
|
|
|
|
<com.google.android.material.materialswitch.MaterialSwitch
|
|
android:id="@+id/enableLightsMode"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="@dimen/dimen24dp"
|
|
android:layout_alignParentEnd="true"
|
|
android:layout_gravity="end"
|
|
android:layout_toEndOf="@+id/enableLightsHeader"
|
|
android:gravity="end"
|
|
android:paddingStart="@dimen/dimen0dp"
|
|
android:paddingEnd="@dimen/dimen24dp" />
|
|
|
|
</RelativeLayout>
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/chooseColorFrame"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="6dp"
|
|
android:background="?android:attr/selectableItemBackground"
|
|
android:orientation="horizontal"
|
|
android:padding="@dimen/dimen16dp">
|
|
|
|
<TextView
|
|
android:id="@+id/chooseColorHeader"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="@dimen/dimen24dp"
|
|
android:layout_marginEnd="@dimen/dimen24dp"
|
|
android:text="@string/chooseColorSelectorHeader"
|
|
android:textColor="?attr/primaryTextColor"
|
|
android:textSize="@dimen/dimen18sp" />
|
|
|
|
<com.google.android.material.card.MaterialCardView
|
|
android:id="@+id/chooseColorState"
|
|
style="?attr/materialCardViewFilledStyle"
|
|
android:layout_width="@dimen/dimen28dp"
|
|
android:layout_height="@dimen/dimen28dp"
|
|
android:layout_alignEnd="@id/chooseColorHeader"
|
|
android:layout_alignParentEnd="true"
|
|
android:layout_marginEnd="@dimen/dimen28dp"
|
|
android:gravity="end"
|
|
app:cardCornerRadius="@dimen/dimen16dp"
|
|
app:cardElevation="@dimen/dimen0dp" />
|
|
|
|
</RelativeLayout>
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/enableVibrationFrame"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="@dimen/dimen6dp"
|
|
android:background="?android:attr/selectableItemBackground"
|
|
android:orientation="horizontal"
|
|
android:padding="@dimen/dimen16dp">
|
|
|
|
<TextView
|
|
android:id="@+id/enableVibrationHeader"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="@dimen/dimen24dp"
|
|
android:layout_marginEnd="@dimen/dimen72dp"
|
|
android:text="@string/enableVibrationHeaderText"
|
|
android:textColor="?attr/primaryTextColor"
|
|
android:textSize="@dimen/dimen18sp" />
|
|
|
|
<com.google.android.material.materialswitch.MaterialSwitch
|
|
android:id="@+id/enableVibrationMode"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="@dimen/dimen24dp"
|
|
android:layout_alignParentEnd="true"
|
|
android:layout_gravity="end"
|
|
android:layout_toEndOf="@+id/enableVibrationHeader"
|
|
android:gravity="end"
|
|
android:paddingStart="@dimen/dimen0dp"
|
|
android:paddingEnd="@dimen/dimen24dp" />
|
|
|
|
</RelativeLayout>
|
|
|
|
</LinearLayout>
|