Can't get the viewWidth after the first layout (WebView in a ViewPager)?

Up vote 2 down vote favorite share g+ share fb share tw.

I will update a full tutorial later on how to implement a webview inside a viewpager, but I am getting a really weird issue that I don't understand how to fix. Here are the implementations I'm running... XML: ViewPager Instantiate Object: ((ViewPager) collection).removeAllViews(); WebView a = webviewposition; ((ViewPager) collection). AddView(a); Webviews are setup in a separate (InitWebViews) webview0 = new WebView(this.

GetApplicationContext()); webview0. LoadUrl("file:///android_asset/test. Html"); webview1 = new WebView(this.

GetApplicationContext()); webview1. LoadUrl("file:///android_asset/test. Html"); webview2 = new WebView(this.

GetApplicationContext()); webview2. LoadUrl("file:///android_asset/test. Html"); Any ideas why it'd be like this, or how I can force the viewWidth to be 1280?

Or are there any other issues with the way I init the webviews? Android android-layout view android-webview android-viewpager link|improve this question asked Jan 12 at 16:49Alex Kelly747 67% accept rate.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions