webview_activity.xml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:app="http://schemas.android.com/apk/res-auto"
  4. android:layout_width="match_parent"
  5. android:layout_height="match_parent"
  6. android:orientation="vertical">
  7. <com.google.android.material.appbar.AppBarLayout
  8. android:layout_width="match_parent"
  9. android:layout_height="wrap_content">
  10. <com.google.android.material.appbar.MaterialToolbar
  11. android:id="@+id/toolbar"
  12. android:layout_width="match_parent"
  13. android:layout_height="?attr/actionBarSize"
  14. android:background="?attr/colorPrimary"
  15. android:theme="?attr/actionBarTheme"
  16. app:navigationIcon="@drawable/ic_close_24dp" />
  17. </com.google.android.material.appbar.AppBarLayout>
  18. <eu.kanade.tachiyomi.widget.ThemedSwipeRefreshLayout
  19. android:id="@id/swipe_refresh"
  20. android:layout_width="match_parent"
  21. android:layout_height="match_parent">
  22. <WebView
  23. android:id="@+id/webview"
  24. android:layout_width="match_parent"
  25. android:layout_height="match_parent">
  26. <ProgressBar
  27. android:id="@+id/progress_bar"
  28. style="?android:attr/progressBarStyleHorizontal"
  29. android:layout_width="match_parent"
  30. android:layout_height="2dp"
  31. android:progressBackgroundTint="@color/colorPrimary"
  32. android:progressTint="@color/colorPrimary" />
  33. </WebView>
  34. </eu.kanade.tachiyomi.widget.ThemedSwipeRefreshLayout>
  35. </LinearLayout>