This is an automated email from the ASF dual-hosted git repository. GitToTheHub pushed a commit to branch pr-android-place-footer-below-webview in repository https://gitbox.apache.org/repos/asf/cordova-plugin-inappbrowser.git
commit adedf002b0ade7c7f9a6b7fc0d935c07c622eeca Author: Manuel Beck <[email protected]> AuthorDate: Wed May 6 18:42:31 2026 +0200 fix(android): place footer below WebView instead of overlaying content - Set the WebView container to LinearLayout.LayoutParams(MATCH_PARENT, 0, 1.0f). - Stop adding the footer as an overlay inside webViewLayout. - Add the footer directly to the main vertical layout with its own fixed toolbar-height layout params. - Generated-By: GPT-5.4 --- src/android/InAppBrowser.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/android/InAppBrowser.java b/src/android/InAppBrowser.java index bb3495f..c31c1b0 100644 --- a/src/android/InAppBrowser.java +++ b/src/android/InAppBrowser.java @@ -1047,12 +1047,14 @@ public class InAppBrowser extends CordovaPlugin { // Add our webview to our main view/layout RelativeLayout webViewLayout = new RelativeLayout(cordova.getActivity()); + webViewLayout.setLayoutParams(new LinearLayout.LayoutParams(LayoutParams.MATCH_PARENT, 0, 1.0f)); webViewLayout.addView(inAppWebView); main.addView(webViewLayout); // Don't add the footer unless it's been enabled if (showFooter) { - webViewLayout.addView(footer); + footer.setLayoutParams(new LinearLayout.LayoutParams(LayoutParams.MATCH_PARENT, this.dpToPixels(TOOLBAR_HEIGHT))); + main.addView(footer); } WindowManager.LayoutParams lp = new WindowManager.LayoutParams(); --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
