开发者

WebView with other View Components

开发者 https://www.devze.com 2023-01-11 01:08 出处:网络
I want to display WebView with the other view TextView in Android application. The text view will be visible like an header.

I want to display WebView with the other view TextView in Android application. The text view will be visible like an header.

Thanks Deepa开发者_StackOverflowk


You need to subdivide your layout, using something like:

LinearLayout masterLayout = new LinearLayout(context);
WebView wv = new WebView(context);
masterLayout.addView(wv);
TextView tv = new TextView(context);
masterLayout.addView(tv);

myActivity.setContentView(masterLayout);
0

精彩评论

暂无评论...
验证码 换一张
取 消