mirror of https://codeberg.org/gitnex/GitNex.git
274 lines
11 KiB
XML
274 lines
11 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"
|
|
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">
|
|
|
|
<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_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/settingsAppearanceHeader"
|
|
android:textColor="?attr/primaryTextColor"
|
|
android:textSize="@dimen/dimen20sp"/>
|
|
|
|
</com.google.android.material.appbar.MaterialToolbar>
|
|
|
|
</com.google.android.material.appbar.AppBarLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/themeSelectionFrame"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="@dimen/dimen6dp"
|
|
android:background="?android:attr/selectableItemBackground"
|
|
android:clickable="true"
|
|
android:focusable="true"
|
|
android:orientation="vertical"
|
|
android:padding="@dimen/dimen16dp">
|
|
|
|
<TextView
|
|
android:id="@+id/themeHeaderSelector"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="@dimen/dimen24dp"
|
|
android:layout_marginEnd="@dimen/dimen24dp"
|
|
android:text="@string/themeSelectionHeaderText"
|
|
android:textColor="?attr/primaryTextColor"
|
|
android:textSize="@dimen/dimen18sp"/>
|
|
|
|
<TextView
|
|
android:id="@+id/themeSelected"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="@dimen/dimen24dp"
|
|
android:layout_marginEnd="@dimen/dimen24dp"
|
|
android:text="@string/themeSelectionSelectedText"
|
|
android:textColor="?attr/selectedTextColor"
|
|
android:textSize="@dimen/dimen16sp"/>
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/lightThemeTimeSelectionFrame"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="@dimen/dimen6dp"
|
|
android:background="?android:attr/selectableItemBackground"
|
|
android:clickable="true"
|
|
android:focusable="true"
|
|
android:orientation="vertical"
|
|
android:padding="@dimen/dimen16dp">
|
|
|
|
<TextView
|
|
android:id="@+id/lightThemeTimeHeaderSelector"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="@dimen/dimen24dp"
|
|
android:layout_marginEnd="@dimen/dimen24dp"
|
|
android:text="@string/settingsLightThemeTimeSelectorHeader"
|
|
android:textColor="?attr/primaryTextColor"
|
|
android:textSize="@dimen/dimen18sp"/>
|
|
|
|
<TextView
|
|
android:id="@+id/lightThemeSelectedTime"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="@dimen/dimen24dp"
|
|
android:layout_marginEnd="@dimen/dimen24dp"
|
|
android:text="@string/settingsThemeTimeSelectedHint"
|
|
android:textColor="?attr/selectedTextColor"
|
|
android:textSize="@dimen/dimen16sp"/>
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/darkThemeTimeSelectionFrame"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="@dimen/dimen6dp"
|
|
android:background="?android:attr/selectableItemBackground"
|
|
android:clickable="true"
|
|
android:focusable="true"
|
|
android:orientation="vertical"
|
|
android:padding="@dimen/dimen16dp">
|
|
|
|
<TextView
|
|
android:id="@+id/darkThemeTimeHeaderSelector"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="@dimen/dimen24dp"
|
|
android:layout_marginEnd="@dimen/dimen24dp"
|
|
android:text="@string/settingsDarkThemeTimeSelectorHeader"
|
|
android:textColor="?attr/primaryTextColor"
|
|
android:textSize="@dimen/dimen18sp"/>
|
|
|
|
<TextView
|
|
android:id="@+id/darkThemeSelectedTime"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="@dimen/dimen24dp"
|
|
android:layout_marginEnd="@dimen/dimen24dp"
|
|
android:text="@string/settingsThemeTimeSelectedHint"
|
|
android:textColor="?attr/selectedTextColor"
|
|
android:textSize="@dimen/dimen16sp"/>
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/customFontFrame"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="@dimen/dimen6dp"
|
|
android:background="?android:attr/selectableItemBackground"
|
|
android:clickable="true"
|
|
android:focusable="true"
|
|
android:orientation="vertical"
|
|
android:padding="@dimen/dimen16dp">
|
|
|
|
<TextView
|
|
android:id="@+id/customFontHeaderSelector"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="@dimen/dimen24dp"
|
|
android:layout_marginEnd="@dimen/dimen24dp"
|
|
android:text="@string/settingsCustomFontHeaderText"
|
|
android:textColor="?attr/primaryTextColor"
|
|
android:textSize="@dimen/dimen18sp"/>
|
|
|
|
<TextView
|
|
android:id="@+id/customFontSelected"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="@dimen/dimen24dp"
|
|
android:layout_marginEnd="@dimen/dimen24dp"
|
|
android:text="@string/settingsCustomFontDefault"
|
|
android:textColor="?attr/selectedTextColor"
|
|
android:textSize="@dimen/dimen16sp"/>
|
|
|
|
</LinearLayout>
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/counterBadgeFrame"
|
|
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/tvCounterBadgeHeader"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="@dimen/dimen24dp"
|
|
android:layout_marginEnd="@dimen/dimen48dp"
|
|
android:text="@string/settingsCounterBadges"
|
|
android:textColor="?attr/primaryTextColor"
|
|
android:textSize="@dimen/dimen18sp"/>
|
|
|
|
<com.google.android.material.switchmaterial.SwitchMaterial
|
|
android:id="@+id/switchCounterBadge"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="@dimen/dimen24dp"
|
|
android:layout_alignParentEnd="true"
|
|
android:layout_gravity="end"
|
|
android:layout_toEndOf="@+id/tvCounterBadgeHeader"
|
|
android:gravity="end"
|
|
android:paddingStart="@dimen/dimen0dp"
|
|
android:paddingEnd="@dimen/dimen24dp"
|
|
android:switchMinWidth="@dimen/dimen56dp"/>
|
|
|
|
</RelativeLayout>
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/labelsInListFrame"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginBottom="@dimen/dimen60dp"
|
|
android:background="?android:attr/selectableItemBackground"
|
|
android:orientation="horizontal"
|
|
android:padding="@dimen/dimen16dp">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/label_title_frame"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:weightSum="100"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:id="@+id/tvLabelsInListHeader"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="90"
|
|
android:layout_marginStart="@dimen/dimen24dp"
|
|
android:text="@string/settingsLabelsInListHeader"
|
|
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.switchmaterial.SwitchMaterial
|
|
android:id="@+id/switchLabelsInListBadge"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="@dimen/dimen32dp"
|
|
android:paddingStart="@dimen/dimen24dp"
|
|
android:paddingEnd="@dimen/dimen24dp"
|
|
android:switchMinWidth="@dimen/dimen56dp" />
|
|
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_below="@+id/label_title_frame"
|
|
android:layout_marginStart="@dimen/dimen24dp"
|
|
android:layout_marginEnd="@dimen/dimen72dp"
|
|
android:text="@string/settingsLabelsInListHint"
|
|
android:textColor="?attr/hintColor"
|
|
android:textSize="@dimen/dimen12sp" />
|
|
|
|
</RelativeLayout>
|
|
|
|
</LinearLayout>
|