0
最初に、WebViewの他の質問をいくつか読みましたが、どれも全く同じ問題を抱えているようです。WebViewの上にFrameLayoutを表示しますか?
私は
LinearLayout ll = new LinearLayout(this);
webview.loadUrl(url);
ll.addView(fl,300,45);
ll.addView(webview, LayoutParams.FILL_PARENT);
。しかしながら
FrameLayout fl = new FrameLayout(this);
EditText qbox = new EditText(this);
box.setText(query);
Button button = new Button(this);
fl.addView(button, 45,45);
fl.addView(box,275,45);
が、私はそのようにように私のLinearLayout
にWebview
とFrameLayout
を追加...のようなWebView
とFrameLayout
は、でframeLayoutに見える何かを持っていますこれは、FrameLayoutが「上に」表示するのではなく、Webviewをページの上部にレンダリングし、Webビューを右に(ほとんどはページ外に)表示し、フレームの残りの部分を奇妙にレンダリングしますn黒。どうして?