It's a bug.  You'll need to create an Activity that uses the Dialog
theme and "re-create" the dialog including buttons, etc. while also
containing the Webview.

                <activity
                        android:name=".TwitterForm"
                        android:configChanges="orientation|keyboard"
                        android:theme="@android:style/Theme.Dialog"
                        android:label="@string/twitter_form">
                </activity>


Now create a "webview_dialog.xml" view in Layout folder.  Have it
contain a Linear Layout (or Relative/Frame, whatever) where you have a
Webview as a child and maybe another LL as child with two buttons (OK,
Cancel) as the children of this LL.

In your Activity where you want to use it, inflate this view, then
programmatically (in Java) set the properties of the Webview just as
you would a standard Webview. Then, wire up the buttons with their
respective onClick events, etc.

Sorry I can't show more code, but I just had to implement this last
week because of the issue you are facing...


On Jan 13, 11:45 pm, "YoGenDr@ $iNgH" <yogi.ru...@gmail.com> wrote:
> @Kumar
> Google apps itself are using this(Settings->about Phone->Legal
> Information->google legal after this it open a link in dialog box...).
>
>
>
>
>
>
>
>
>
> On Thu, Jan 13, 2011 at 11:04 AM, Kumar Bibek <coomar....@gmail.com> wrote:
> > Any specific reason of using WebView in a dialog?
>
> > On Jan 13, 4:12 pm, yogi <yogi.ru...@gmail.com> wrote:
> > > Hi all,
>
> > > I m launching the dialog with webview inside it. Now on that webview I
> > > have a textbox (like google sign in page).When I tap on the field the
> > > Softkeyboard is not showing.
>
> > > Its not even working in emulator..
> > > Thanks in Advance.
>
> > > Regards
> > > Yogi
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Developers" group.
> > To post to this group, send email to android-developers@googlegroups.com
> > To unsubscribe from this group, send email to
> > android-developers+unsubscr...@googlegroups.com<android-developers%2Bunsubs 
> > cr...@googlegroups.com>
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> Yogendra Singh
> B-Tech,Computer Science and Engg.,
> MNNIT,Allahabad

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to