Skip to content Skip to sidebar Skip to footer

Detect Ontouch On Appwidget. If Is It Possible?

Detect OnTouch on AppWidget. If is it possible? Hello! I'm trying to create my first AppWidget for Android 2.1 in which a client may have a chance to select an item on my custom vi

Solution 1:

It seems that there is no way to detect touch on AppWidget.RemoteViews have no method to detect it(we can not register a touch listener for them).

Mark Murphy(CommonsWare) in detect onTouch for widget says:

You don't detect "on touch" for app widgets. You can, however, detect clicks, via setOnClickPendingIntent() on RemoteViews. AFAIK, this works for all View classes supported by RemoteViews.

Also,you can not use StackView in AppWidgets in Android2.1 (see simulate stack view in Android2(API 5)?).

Post a Comment for "Detect Ontouch On Appwidget. If Is It Possible?"