activity_web_views.xml 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:app="http://schemas.android.com/apk/res-auto"
  4. xmlns:tools="http://schemas.android.com/tools"
  5. android:layout_width="match_parent"
  6. android:layout_height="match_parent"
  7. tools:context="com.zhong.inspection.ui.WebViewsActivity">
  8. <com.tencent.smtt.sdk.WebView
  9. android:id="@+id/web_view"
  10. android:layout_width="match_parent"
  11. android:layout_height="match_parent" />
  12. <com.github.barteksc.pdfviewer.PDFView
  13. android:id="@+id/pdfView"
  14. android:visibility="gone"
  15. android:layout_width="match_parent"
  16. android:layout_height="match_parent" />
  17. <ProgressBar
  18. android:id="@+id/progressbar"
  19. style="@android:style/Widget.ProgressBar.Horizontal"
  20. android:layout_width="0dp"
  21. android:layout_height="2dp"
  22. android:progress="0"
  23. android:progressDrawable="@drawable/progressbar" />
  24. <FrameLayout
  25. android:id="@+id/videoFullScreen"
  26. android:layout_width="0dp"
  27. android:layout_height="0dp"
  28. app:layout_constraintBottom_toBottomOf="parent"
  29. app:layout_constraintEnd_toEndOf="parent"
  30. app:layout_constraintStart_toStartOf="parent"
  31. app:layout_constraintTop_toTopOf="parent" />
  32. <TextView
  33. android:id="@+id/tvPrint"
  34. android:layout_width="match_parent"
  35. android:layout_height="40dp"
  36. android:layout_alignParentBottom="true"
  37. android:background="#0183FA"
  38. android:gravity="center"
  39. android:visibility="gone"
  40. android:text="打印二维码"
  41. android:textColor="@color/white" />
  42. </RelativeLayout>