Open alexei-28 opened 7 years ago
If I can put PdfViewer in layout xml with ConstraintLayout?
<?xml version="1.0" encoding="utf-8"?> <android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent"> <TextView android:id="@+id/pageNumberTextView" android:layout_width="0dp" android:layout_height="30dp" android:background="@drawable/page_number_bg" android:gravity="center" android:text="Test text" android:textColor="#292929" android:textSize="15sp" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintRight_toRightOf="parent" /> <com.github.barteksc.pdfviewer.PDFView android:id="@+id/pdfView" android:layout_width="0dp" android:layout_height="wrap_content" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintRight_toRightOf="parent" tools:layout_editor_absoluteX="8dp" tools:layout_editor_absoluteY="8dp" /> </android.support.constraint.ConstraintLayout>
TextView is show but PDFView NOT.
as far as I know you should specifically set height of pdfview. Wrap content doesnt work for height at least
If I can put PdfViewer in layout xml with ConstraintLayout?
TextView is show but PDFView NOT.