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
95 lines
4 KiB
XML
95 lines
4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
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">
|
|
|
|
<com.google.android.material.appbar.MaterialToolbar
|
|
android:id="@+id/toolbar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="?attr/primaryBackgroundColor"
|
|
android:theme="@style/AppTheme.AppBarOverlay">
|
|
|
|
<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:focusable="true"
|
|
android:clickable="true"
|
|
android:background="?android:attr/selectableItemBackgroundBorderless"
|
|
android:src="@drawable/ic_close" />
|
|
|
|
<TextView
|
|
android:id="@+id/toolbarTitle"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_vertical"
|
|
android:maxLines="1"
|
|
android:text="@string/draftsHeader"
|
|
android:textColor="?attr/primaryTextColor"
|
|
android:textSize="@dimen/dimen20sp" />
|
|
|
|
</com.google.android.material.appbar.MaterialToolbar>
|
|
|
|
</com.google.android.material.appbar.AppBarLayout>
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/enableDraftsCommentsDeletion"
|
|
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/enableCommentsDeletionHeader"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="@dimen/dimen24dp"
|
|
android:layout_marginEnd="@dimen/dimen72dp"
|
|
android:text="@string/settingsEnableCommentsDeletionText"
|
|
android:textColor="?attr/primaryTextColor"
|
|
android:textSize="@dimen/dimen18sp" />
|
|
|
|
<com.google.android.material.switchmaterial.SwitchMaterial
|
|
android:id="@+id/commentsDeletionSwitch"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="@dimen/dimen24dp"
|
|
android:layout_alignParentEnd="true"
|
|
android:layout_gravity="end"
|
|
android:layout_toEndOf="@+id/enableCommentsDeletionHeader"
|
|
android:gravity="end"
|
|
android:paddingStart="@dimen/dimen0dp"
|
|
android:paddingEnd="@dimen/dimen24dp"
|
|
android:switchMinWidth="@dimen/dimen56dp" />
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_below="@+id/enableCommentsDeletionHeader"
|
|
android:layout_marginStart="@dimen/dimen24dp"
|
|
android:layout_marginEnd="@dimen/dimen48dp"
|
|
android:text="@string/settingsEnableCommentsDeletionHintText"
|
|
android:textColor="?attr/hintColor"
|
|
android:textSize="@dimen/dimen12sp" />
|
|
|
|
</RelativeLayout>
|
|
|
|
</LinearLayout>
|