[android-developers] Android Layoutinflator for embedding WebView objects created on the fly

2011-06-10 Thread redVirus
Hello, My requirement is to create an activity that holds WebView. I want my activity to load WebView by creating WebView objects as per the requirements i.e. for every new web pageI want to reuse my activity. For this I have a layout for my activity. And I create new WebView for each request.

Re: [android-developers] Android Layoutinflator for embedding WebView objects created on the fly

2011-06-10 Thread Kostya Vasilyev
Your code seems to go in two directions at once: by inflating a layout, and creating a WebView with new. For instantiation with new, I think you might need to set layout paramters when calling addView - I would try FILL_PARENT / FILL_PARENT first. For inflating a web view on demand, I'm using a