Support pdf files in file viewer (#259)

auto convert EOL

this fix it for me

fix layout

implement support for pdf files in file viewer

Co-authored-by: 6543 <6543@obermui.de>
Reviewed-on: https://gitea.com/gitnex/GitNex/pulls/259
Reviewed-by: 6543 <6543@noreply.gitea.io>
This commit is contained in:
M M Arif
2020-01-30 18:00:31 +00:00
parent ec62e3cebf
commit 1293e8be27
6 changed files with 62 additions and 3 deletions

View File

@ -71,6 +71,22 @@
</LinearLayout>
<LinearLayout
android:layout_marginTop="55dp"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/colorPrimary"
android:orientation="vertical">
<com.github.barteksc.pdfviewer.PDFView
android:id="@+id/pdfView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/black"
android:visibility="visible" />
</LinearLayout>
<com.pddstudio.highlightjs.HighlightJsView
android:id="@+id/singleCodeContents"
android:layout_width="match_parent"
@ -95,4 +111,4 @@
android:indeterminate="true"
android:visibility="visible" />
</RelativeLayout>
</RelativeLayout>