You can set any view to be focusable and add an OnClickListener.

ScrollView view = (ScrollView)findViewById(R.id.my_scroll_view);
                view.setFocusable(true);
                view.setOnClickListener(new OnClickListener(){
                                public void onClick(View v) {
                                        // DoStuff

                        }});

On Jul 2, 2:19 pm, Jake Colman <col...@ppllc.com> wrote:
> I know how to write code that would launch an activity when a button is
> pressed on my appwidget.  I would prefer, however, to not dedicate
> real-estate for a button.  Is there a way to launch an activity simply
> by clicking anywhere in the appwidget?  If so, is that a violation of
> Android standards?
>
> --
> Jake Colman -- Android Tinkerer

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

Reply via email to