95036915f6
- ProgressBar in activity_main.xml (top of screen) - LoadingProgress.kt utility with WebChromeClient - Shows during page load, hides on complete - Smooth UX with slight hide delay Integration: webView.setupProgressBar(binding.progressBar)
33 lines
1.1 KiB
XML
33 lines
1.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<WebView
|
|
android:id="@+id/webView"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent" />
|
|
|
|
<!-- Loading progress bar (top of screen) -->
|
|
<ProgressBar
|
|
android:id="@+id/progressBar"
|
|
style="@style/Widget.AppCompat.ProgressBar.Horizontal"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="4dp"
|
|
android:layout_gravity="top"
|
|
android:indeterminate="false"
|
|
android:max="100"
|
|
android:progress="0"
|
|
android:progressTint="@color/progress_color"
|
|
android:visibility="gone" />
|
|
|
|
<!-- Invisible admin tap area (top-left corner) -->
|
|
<View
|
|
android:id="@+id/adminTapArea"
|
|
android:layout_width="80dp"
|
|
android:layout_height="80dp"
|
|
android:layout_gravity="start|top"
|
|
android:onClick="onAdminAreaTap" />
|
|
|
|
</FrameLayout>
|