2019-10-02 18:32:59 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2020-08-08 17:43:14 +02:00
|
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2021-03-21 19:26:28 +01:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
2019-10-02 18:32:59 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2020-08-09 10:23:51 +02:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
2019-10-02 18:32:59 +02:00
|
|
|
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"
|
2021-05-25 22:39:06 +02:00
|
|
|
app:elevation="0dp"
|
2020-03-28 13:44:45 +01:00
|
|
|
android:theme="@style/Widget.AppCompat.SearchView">
|
2019-10-02 18:32:59 +02:00
|
|
|
|
2020-08-08 17:43:14 +02:00
|
|
|
<com.google.android.material.appbar.MaterialToolbar
|
2019-10-02 18:32:59 +02:00
|
|
|
android:id="@+id/toolbar"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2020-08-08 17:43:14 +02:00
|
|
|
android:background="?attr/primaryBackgroundColor">
|
2019-10-02 18:32:59 +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"
|
2019-10-02 18:32:59 +02:00
|
|
|
android:layout_marginRight="15dp"
|
|
|
|
android:layout_marginLeft="15dp"
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
android:contentDescription="@string/close"
|
2021-04-13 20:56:50 +02:00
|
|
|
android:background="?android:attr/selectableItemBackgroundBorderless"
|
|
|
|
android:focusable="true"
|
|
|
|
android:clickable="true"
|
2019-10-02 18:32:59 +02:00
|
|
|
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
|
|
|
|
2020-08-08 17:43:14 +02:00
|
|
|
</com.google.android.material.appbar.MaterialToolbar>
|
2019-10-02 18:32:59 +02:00
|
|
|
|
|
|
|
</com.google.android.material.appbar.AppBarLayout>
|
|
|
|
|
2021-03-09 22:15:42 +01:00
|
|
|
<com.google.android.material.progressindicator.LinearProgressIndicator
|
2020-08-09 10:23:51 +02:00
|
|
|
android:id="@+id/progress_bar"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2021-03-09 22:15:42 +01:00
|
|
|
android:indeterminate="true"
|
|
|
|
style="@style/Widget.MaterialComponents.LinearProgressIndicator"
|
2020-08-09 10:23:51 +02:00
|
|
|
app:indicatorColor="?attr/progressIndicatorColor" />
|
|
|
|
|
2021-12-15 23:39:04 +01:00
|
|
|
<androidx.core.widget.NestedScrollView
|
2019-10-02 18:32:59 +02:00
|
|
|
android:layout_width="match_parent"
|
2020-08-08 17:43:14 +02:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:background="?attr/primaryBackgroundColor">
|
2019-10-02 18:32:59 +02:00
|
|
|
|
2020-08-08 17:43:14 +02:00
|
|
|
<LinearLayout
|
2019-10-02 18:32:59 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2020-08-08 17:43:14 +02:00
|
|
|
android:orientation="vertical">
|
2019-10-02 18:32:59 +02:00
|
|
|
|
2020-08-08 17:43:14 +02:00
|
|
|
<LinearLayout
|
2021-03-21 16:56:54 +01:00
|
|
|
android:id="@+id/markdownFrame"
|
2019-10-02 18:32:59 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2020-08-08 17:43:14 +02:00
|
|
|
android:background="?attr/primaryBackgroundColor"
|
2021-03-21 16:56:54 +01:00
|
|
|
android:orientation="vertical"
|
2020-08-08 17:43:14 +02:00
|
|
|
android:padding="16dp"
|
2021-03-21 16:56:54 +01:00
|
|
|
android:visibility="gone">
|
2020-08-08 17:43:14 +02:00
|
|
|
|
2021-12-15 23:39:04 +01:00
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
2021-03-21 16:56:54 +01:00
|
|
|
android:id="@+id/markdown"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:textColor="?attr/primaryTextColor"
|
|
|
|
android:textIsSelectable="true"
|
|
|
|
android:textSize="14sp" />
|
2020-08-08 17:43:14 +02:00
|
|
|
|
2021-12-15 23:39:04 +01:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/markdownTv"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:textColor="?attr/primaryTextColor"
|
|
|
|
android:textIsSelectable="true"
|
|
|
|
android:visibility="gone"
|
|
|
|
android:textSize="14sp" />
|
|
|
|
|
2020-08-08 17:43:14 +02:00
|
|
|
</LinearLayout>
|
|
|
|
|
2021-04-10 19:54:05 +02:00
|
|
|
<org.mian.gitnex.helpers.views.SyntaxHighlightedArea
|
2021-03-21 16:56:54 +01:00
|
|
|
android:id="@+id/contents"
|
2020-08-08 17:43:14 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2021-03-21 19:26:28 +01:00
|
|
|
android:visibility="gone"
|
|
|
|
tools:visibility="visible" />
|
2020-01-30 19:00:31 +01:00
|
|
|
|
2020-08-08 17:43:14 +02:00
|
|
|
<com.github.chrisbanes.photoview.PhotoView
|
2021-03-21 16:56:54 +01:00
|
|
|
android:id="@+id/photo_view"
|
2020-08-08 17:43:14 +02:00
|
|
|
android:visibility="gone"
|
|
|
|
android:padding="16dp"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"/>
|
2020-01-30 19:00:31 +01:00
|
|
|
|
2020-08-08 17:43:14 +02:00
|
|
|
</LinearLayout>
|
2020-01-30 19:00:31 +01:00
|
|
|
|
2021-12-15 23:39:04 +01:00
|
|
|
</androidx.core.widget.NestedScrollView>
|
2019-10-30 15:04:49 +01:00
|
|
|
|
2020-08-08 17:43:14 +02:00
|
|
|
</LinearLayout>
|