¿Cómo configurar el gesto de deslizar hacia abajo y deslizar hacia arriba en el widget de la aplicación?
Frecuentes
Visto 818 equipos
1
Guys. I am developing app widget which show weather and traffic data. When user drop widget on home screen than weather data display in widget and when i slide up traffic data will load and display and when slide down again show the weather data. I tried lot and searched lot but not find any use full solution. I am able to load single view on home screen but not able to find sliding up down gesture.
Please guys help me out.
Thank You lots in advance.
1 Respuestas
2
It is usually not possible to make gestures on RemoteViews, only if You use certain views inside. The Views that support gestures are:
- VerFlipper
- ListView
- Vista en cuadrícula
- vista de pila
- AdaptadorViewFlipper
This depends on the API version where You are developing. Please refer:
http://developer.android.com/guide/topics/appwidgets/index.html
If You want to do something with this Views, here is a good tutorial:
http://www.broculos.net/2011/12/android-101-how-to-create-stackview.html#.U4XNxnZnOko
contestado el 28 de mayo de 14 a las 13:05
No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas android android-widget android-appwidget or haz tu propia pregunta.