2019-10-02 18:32:59 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<RelativeLayout
|
2019-11-05 09:34:22 +01:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
2019-10-02 18:32:59 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:orientation="vertical"
|
2020-03-04 17:15:57 +01:00
|
|
|
android:background="?attr/primaryBackgroundColor">
|
2019-10-02 18:32:59 +02:00
|
|
|
|
|
|
|
<com.google.android.material.appbar.AppBarLayout
|
2020-03-28 13:44:45 +01:00
|
|
|
android:id="@+id/appbar"
|
2019-10-02 18:32:59 +02:00
|
|
|
android:layout_width="match_parent"
|
2020-03-28 13:44:45 +01:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:theme="@style/Widget.AppCompat.SearchView">
|
2019-10-02 18:32:59 +02:00
|
|
|
|
|
|
|
<androidx.appcompat.widget.Toolbar
|
|
|
|
android:id="@+id/toolbar"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2020-03-04 17:15:57 +01:00
|
|
|
android:background="?attr/primaryBackgroundColor"
|
2019-10-02 18:32:59 +02:00
|
|
|
tools:ignore="UnusedAttribute">
|
|
|
|
|
|
|
|
<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"
|
2019-10-02 18:32:59 +02:00
|
|
|
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/defaultFilename"
|
2020-03-04 17:15:57 +01:00
|
|
|
android:textColor="?attr/primaryTextColor"
|
2019-10-17 19:47:27 +02:00
|
|
|
android:ellipsize="none"
|
|
|
|
android:scrollbars="horizontal"
|
|
|
|
android:singleLine="true"
|
|
|
|
android:layout_marginEnd="20dp"
|
|
|
|
android:textSize="18sp" />
|
2019-10-02 18:32:59 +02:00
|
|
|
|
|
|
|
</androidx.appcompat.widget.Toolbar>
|
|
|
|
|
|
|
|
</com.google.android.material.appbar.AppBarLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
2020-03-04 17:15:57 +01:00
|
|
|
android:id="@+id/singleFileContentsFrame"
|
2019-10-02 18:32:59 +02:00
|
|
|
android:layout_marginTop="50dp"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2020-03-04 17:15:57 +01:00
|
|
|
android:background="?attr/primaryBackgroundColor"
|
2019-10-30 15:04:49 +01:00
|
|
|
android:orientation="vertical">
|
2019-10-02 18:32:59 +02:00
|
|
|
|
|
|
|
<ScrollView
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
tools:ignore="UselessParent">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/singleFileContents"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2020-03-04 17:15:57 +01:00
|
|
|
android:textColor="?attr/primaryTextColor"
|
2019-10-17 19:47:27 +02:00
|
|
|
android:textSize="14sp"
|
2019-10-02 18:32:59 +02:00
|
|
|
android:padding="15dp"
|
2020-03-15 16:09:26 +01:00
|
|
|
android:textIsSelectable="true" />
|
2019-10-02 18:32:59 +02:00
|
|
|
|
|
|
|
</ScrollView>
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
2020-01-30 19:00:31 +01:00
|
|
|
<LinearLayout
|
2020-03-04 17:15:57 +01:00
|
|
|
android:id="@+id/pdfViewFrame"
|
2020-01-30 19:00:31 +01:00
|
|
|
android:layout_marginTop="55dp"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2020-03-04 17:15:57 +01:00
|
|
|
android:background="?attr/primaryBackgroundColor"
|
2020-01-30 19:00:31 +01:00
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<com.github.barteksc.pdfviewer.PDFView
|
|
|
|
android:id="@+id/pdfView"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2020-03-04 17:15:57 +01:00
|
|
|
android:background="?attr/primaryBackgroundColor" />
|
2020-01-30 19:00:31 +01:00
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
2020-04-30 08:28:27 +02:00
|
|
|
<org.mian.gitnex.helpers.highlightjs.HighlightJsView
|
2019-11-05 09:34:22 +01:00
|
|
|
android:id="@+id/singleCodeContents"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:textSize="14sp"
|
|
|
|
android:layout_marginTop="42dp"
|
|
|
|
android:visibility="gone" />
|
|
|
|
|
2019-10-30 15:04:49 +01:00
|
|
|
<com.github.chrisbanes.photoview.PhotoView
|
|
|
|
android:id="@+id/imageView"
|
|
|
|
android:layout_centerInParent="true"
|
|
|
|
android:visibility="gone"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"/>
|
|
|
|
|
2019-10-02 18:32:59 +02:00
|
|
|
<ProgressBar
|
|
|
|
android:id="@+id/progress_bar"
|
|
|
|
style="@style/Base.Widget.AppCompat.ProgressBar"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_centerInParent="true"
|
|
|
|
android:indeterminate="true"
|
|
|
|
android:visibility="visible" />
|
|
|
|
|
2020-01-30 19:00:31 +01:00
|
|
|
</RelativeLayout>
|