2020-03-06 14:46:22 +01:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<LinearLayout
|
|
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
android:layout_width="match_parent"
|
2020-04-26 15:36:33 +02:00
|
|
|
android:layout_height="match_parent"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
2020-03-06 14:46:22 +01:00
|
|
|
android:id="@+id/layoutFileView"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:background="?attr/primaryBackgroundColor">
|
|
|
|
|
2020-04-26 15:36:33 +02:00
|
|
|
<com.google.android.material.appbar.AppBarLayout
|
|
|
|
android:id="@+id/appbar"
|
2020-03-06 14:46:22 +01:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2020-04-26 15:36:33 +02:00
|
|
|
android:theme="@style/Widget.AppCompat.SearchView">
|
2020-03-06 14:46:22 +01:00
|
|
|
|
2020-04-26 15:36:33 +02:00
|
|
|
<androidx.appcompat.widget.Toolbar
|
|
|
|
android:id="@+id/toolbar"
|
|
|
|
android:layout_width="match_parent"
|
2020-03-06 14:46:22 +01:00
|
|
|
android:layout_height="wrap_content"
|
2020-04-26 15:36:33 +02:00
|
|
|
android:background="?attr/primaryBackgroundColor"
|
|
|
|
android:theme="@style/AppTheme.AppBarOverlay"
|
|
|
|
tools:ignore="UnusedAttribute">
|
2020-03-06 14:46:22 +01:00
|
|
|
|
2020-04-26 15:36:33 +02:00
|
|
|
<ImageView
|
|
|
|
android:id="@+id/close"
|
2020-04-28 14:39:41 +02:00
|
|
|
android:layout_width="@dimen/close_button_size"
|
|
|
|
android:layout_height="@dimen/close_button_size"
|
2020-04-26 15:36:33 +02:00
|
|
|
android:layout_marginRight="15dp"
|
|
|
|
android:layout_marginLeft="15dp"
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:contentDescription="@string/close"
|
|
|
|
android:src="@drawable/ic_close" />
|
2020-03-06 14:46:22 +01:00
|
|
|
|
2020-04-26 15:36:33 +02:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/toolbar_title"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
android:text="@string/fileViewerHeader"
|
|
|
|
android:textColor="?attr/primaryTextColor"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:textSize="20sp" />
|
|
|
|
|
|
|
|
</androidx.appcompat.widget.Toolbar>
|
|
|
|
|
|
|
|
</com.google.android.material.appbar.AppBarLayout>
|
2020-03-06 14:46:22 +01:00
|
|
|
|
2020-04-13 17:23:31 +02:00
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/sourceCodeThemeFrame"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="10dp"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/sourceCodeThemeHeader"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:textSize="16sp"
|
|
|
|
android:layout_marginTop="10dp"
|
|
|
|
android:layout_marginStart="44dp"
|
2020-04-26 15:36:33 +02:00
|
|
|
android:layout_marginEnd="24dp"
|
2020-04-13 17:23:31 +02:00
|
|
|
android:text="@string/settingsFileviewerSourceCodeHeaderText"
|
|
|
|
android:textColor="?attr/primaryTextColor"/>
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/sourceCodeThemeSelected"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:textSize="14sp"
|
|
|
|
android:layout_marginStart="44dp"
|
2020-04-26 15:36:33 +02:00
|
|
|
android:layout_marginEnd="24dp"
|
2020-04-13 17:23:31 +02:00
|
|
|
android:text="@string/settingsFileviewerSourceCodeSelectedText"
|
|
|
|
android:textColor="?attr/selectedTextColor"/>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
2020-04-26 15:36:33 +02:00
|
|
|
<RelativeLayout
|
|
|
|
android:id="@+id/pdfMode"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="25dp"
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/pdfModeHeader"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:textSize="16sp"
|
|
|
|
android:layout_marginStart="44dp"
|
|
|
|
android:layout_marginEnd="24dp"
|
|
|
|
android:text="@string/settingsPdfModeHeaderText"
|
|
|
|
android:textColor="?attr/primaryTextColor"/>
|
|
|
|
|
|
|
|
<Switch
|
|
|
|
android:id="@+id/switchPdfMode"
|
|
|
|
android:layout_toEndOf="@+id/pdfModeHeader"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:switchMinWidth="56dp"
|
|
|
|
android:paddingStart="0dp"
|
|
|
|
android:paddingEnd="25dp"
|
|
|
|
android:layout_alignParentEnd="true"
|
|
|
|
android:gravity="end"
|
|
|
|
android:layout_gravity="end" />
|
|
|
|
|
|
|
|
</RelativeLayout>
|
|
|
|
|
2020-03-06 14:46:22 +01:00
|
|
|
</LinearLayout>
|