Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/311.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 来自GitHub的pdfView未滚动_Java_Android_Xml_Android Studio - Fatal编程技术网

Java 来自GitHub的pdfView未滚动

Java 来自GitHub的pdfView未滚动,java,android,xml,android-studio,Java,Android,Xml,Android Studio,所以我在android应用程序上有了这个pdfView和一个附加组件,但不知怎么的,pdfView没有滚动。谁能告诉我我做错了什么?我真的不知道为什么滚动功能不起作用 <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.a

所以我在android应用程序上有了这个pdfView和一个附加组件,但不知怎么的,pdfView没有滚动。谁能告诉我我做错了什么?我真的不知道为什么滚动功能不起作用

 <androidx.constraintlayout.widget.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"
tools:context=".ResumosActivity">


<com.google.android.gms.ads.AdView
    android:id="@+id/adView"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_marginTop="682dp"
    app:adSize="BANNER"
    app:adUnitId="ca-app-pub-3940256099942544/6300978111"
    app:layout_constraintBottom_toBottomOf="parent"
    app:layout_constraintEnd_toEndOf="parent"
    app:layout_constraintStart_toStartOf="parent"
    app:layout_constraintTop_toTopOf="parent" />

<com.github.barteksc.pdfviewer.PDFView
    android:id="@+id/pdf"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    app:layout_constraintBottom_toTopOf="@+id/adView"
    app:layout_constraintEnd_toEndOf="parent"
    app:layout_constraintStart_toStartOf="parent"
    app:layout_constraintTop_toTopOf="parent">

</com.github.barteksc.pdfviewer.PDFView>
</androidx.constraintlayout.widget.ConstraintLayout>