mirror of
https://codeberg.org/gitnex/GitNex.git
synced 2023-12-13 20:50:18 +01:00
There are not any functinality changes except more of UI changes which comes with M3. There are still few things left but that are not there yet from Google side. I will be merging this PR as it does not break any function but attaching a few screenshots if you would like to know how it looks like. Feel free to build from `main` to test it out. Co-authored-by: M M Arif <mmarif@swatian.com> Reviewed-on: https://codeberg.org/gitnex/GitNex/pulls/1181
217 lines
8.9 KiB
XML
217 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"
|
|
app:elevation="@dimen/dimen0dp"
|
|
android:theme="@style/Widget.AppCompat.SearchView">
|
|
|
|
<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_marginEnd="@dimen/dimen16dp"
|
|
android:layout_marginStart="@dimen/dimen16dp"
|
|
android:contentDescription="@string/close"
|
|
android:gravity="center_vertical"
|
|
android:background="?android:attr/selectableItemBackgroundBorderless"
|
|
android:focusable="true"
|
|
android:clickable="true"
|
|
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>
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/enableNotificationsFrame"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="?android:attr/selectableItemBackground"
|
|
android:orientation="horizontal"
|
|
android:padding="@dimen/dimen16dp"
|
|
android:layout_marginBottom="@dimen/dimen6dp">
|
|
|
|
<TextView
|
|
android:id="@+id/enableNotificationsHeader"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="@dimen/dimen24dp"
|
|
android:layout_marginEnd="@dimen/dimen72dp"
|
|
android:text="@string/enableNotificationsHeaderText"
|
|
android:textColor="?attr/primaryTextColor"
|
|
android:textSize="@dimen/dimen18sp" />
|
|
|
|
<com.google.android.material.switchmaterial.SwitchMaterial
|
|
android:id="@+id/enableNotificationsMode"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="@dimen/dimen24dp"
|
|
android:layout_alignParentEnd="true"
|
|
android:layout_gravity="end"
|
|
android:layout_toEndOf="@+id/enableNotificationsHeader"
|
|
android:gravity="end"
|
|
android:paddingStart="0dp"
|
|
android:paddingEnd="@dimen/dimen24dp"
|
|
android:switchMinWidth="@dimen/dimen56dp" />
|
|
|
|
</RelativeLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/pollingDelayFrame"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="?android:attr/selectableItemBackground"
|
|
android:orientation="vertical"
|
|
android:padding="@dimen/dimen16dp"
|
|
android:layout_marginBottom="6dp">
|
|
|
|
<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:background="?android:attr/selectableItemBackground"
|
|
android:orientation="horizontal"
|
|
android:padding="@dimen/dimen16dp"
|
|
android:layout_marginBottom="6dp">
|
|
|
|
<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.switchmaterial.SwitchMaterial
|
|
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"
|
|
android:switchMinWidth="@dimen/dimen56dp" />
|
|
|
|
</RelativeLayout>
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/chooseColorFrame"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="?android:attr/selectableItemBackground"
|
|
android:orientation="horizontal"
|
|
android:padding="@dimen/dimen16dp"
|
|
android:layout_marginBottom="6dp">
|
|
|
|
<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"
|
|
android:layout_width="@dimen/dimen28dp"
|
|
android:layout_height="@dimen/dimen28dp"
|
|
style="?attr/materialCardViewFilledStyle"
|
|
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:background="?android:attr/selectableItemBackground"
|
|
android:orientation="horizontal"
|
|
android:padding="@dimen/dimen16dp"
|
|
android:layout_marginBottom="@dimen/dimen6dp">
|
|
|
|
<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.switchmaterial.SwitchMaterial
|
|
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"
|
|
android:switchMinWidth="@dimen/dimen56dp" />
|
|
|
|
</RelativeLayout>
|
|
|
|
</LinearLayout>
|