WidgetAbsoluteLayout contentView = null;
WebView mWebView = null;

contentView = new AbsoluteLayout (this);

                setContentView(contentView);

                mWebView = new WebView(this);
                mWebView.setWebViewClient(new SingleWebViewClient());
                WebSettings s = mWebView.getSettings();

               contentView.initPosition(x_range, y_range);

                mWebView.setBackgroundColor(Color.TRANSPARENT);
                mWebView.setWebChromeClient(new WebChromeClient());
                mWebView.setFocusableInTouchMode(true);


 AbsoluteLayout.LayoutParams lp = new AbsoluteLayout.LayoutParams(
                                LayoutParams.WRAP_CONTENT, 
LayoutParams.WRAP_CONTENT, x_range,
y_range);


                contentView.addView(mWebView, lp);

                 mWebView.setOnClickListener(new OnClickListener()    {
                        public void onClick(View v)        {
                                Log.d("TAG", "do something.");

                                       }    });

onClick() method doesn't work.

On Oct 25, 4:38 am, "Justin (Google Employee)" <[EMAIL PROTECTED]>
wrote:
> Could you post some code about how you construct the WebView and set
> the onClickListener?
>
> Cheers,
> Justin
> Android Team @ Google
>
> On Oct 21, 2:56 am, Dikers <[EMAIL PROTECTED]> wrote:
>
> > I set a onclickListener on a webView, but when I click this webView,
> > It doesn't work . Who can tell me about it, Thanks!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to