WebView with other View Components
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);
精彩评论