mirror of
https://codeberg.org/gitnex/GitNex.git
synced 2023-12-13 20:50:18 +01:00
48abe71645
add reports section Add translation, fix change lang bug not taking affect Add security section Add file viewer section Change settings screen into different sections Co-authored-by: 6543 <6543@noreply.gitea.io> Reviewed-on: https://gitea.com/gitnex/GitNex/pulls/457 Reviewed-by: 6543 <6543@noreply.gitea.io>
81 lines
3 KiB
XML
81 lines
3 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:tools="http://schemas.android.com/tools"
|
|
android:id="@+id/layoutReportingView"
|
|
android:orientation="vertical"
|
|
android:background="?attr/primaryBackgroundColor">
|
|
|
|
<com.google.android.material.appbar.AppBarLayout
|
|
android:id="@+id/appbar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
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="30dp"
|
|
android:layout_height="30dp"
|
|
android:layout_marginRight="15dp"
|
|
android:layout_marginLeft="15dp"
|
|
android:gravity="center_vertical"
|
|
android:contentDescription="@string/close"
|
|
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:text="@string/reportViewerHeader"
|
|
android:textColor="?attr/primaryTextColor"
|
|
android:maxLines="1"
|
|
android:textSize="20sp" />
|
|
|
|
</androidx.appcompat.widget.Toolbar>
|
|
|
|
</com.google.android.material.appbar.AppBarLayout>
|
|
|
|
<RelativeLayout
|
|
android:id="@+id/enableSendReports"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="25dp"
|
|
android:orientation="horizontal">
|
|
|
|
<TextView
|
|
android:id="@+id/enableReportsHeader"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:textSize="16sp"
|
|
android:layout_marginStart="44dp"
|
|
android:layout_marginEnd="24dp"
|
|
android:text="@string/settingsEnableReportsText"
|
|
android:textColor="?attr/primaryTextColor" />
|
|
|
|
<Switch
|
|
android:id="@+id/crashReportsSwitch"
|
|
android:layout_toEndOf="@+id/enableReportsHeader"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:switchMinWidth="56dp"
|
|
android:layout_alignParentEnd="true"
|
|
android:paddingStart="0dp"
|
|
android:paddingEnd="25dp"
|
|
android:gravity="end"
|
|
android:layout_gravity="end"
|
|
android:layout_marginBottom="30dp" />
|
|
|
|
</RelativeLayout>
|
|
|
|
</LinearLayout> |