Skip to content

Commit a54021b

Browse files
graycreateclaude
andcommitted
fix: add fitsSystemWindows to WebView to properly handle status bar
Added android:fitsSystemWindows="true" to the WebView in the layout XML to work in conjunction with the programmatic WindowInsets handling. This ensures the WebView content is not obscured by the status bar, providing proper spacing at the top of the page. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 5907220 commit a54021b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/src/main/res/layout/activity_vshare_web.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
<WebView
88
android:id="@+id/webview"
99
android:layout_width="match_parent"
10-
android:layout_height="match_parent" />
10+
android:layout_height="match_parent"
11+
android:fitsSystemWindows="true" />
1112

1213
<ProgressBar
1314
android:id="@+id/progress_bar"

0 commit comments

Comments
 (0)