Showing how Android handles Touch Events by means of extending an ExpandableListView with a swipe gesture. I am explaining which problems I encountered and how I solved them.
This document provides an overview and tutorial on Android application development. It discusses what Android is, its features, and how to set up the development environment, including installing Java, the Android SDK, Eclipse IDE, and configuring an Android virtual device. It also covers Android architecture, application components, and provides a basic "Hello World" example app. The document is intended for beginners to help them understand Android programming.
The document provides instructions for creating a custom list view in Android. It explains that a list view displays data items and uses an adapter to link the data to views. It demonstrates how to create a custom adapter class that extends BaseAdapter and overrides methods like getCount(), getItem(), and getView(). The getView() method is used to inflate a custom row layout and populate it with data for each list item. The document also shows how to set up the list view in an activity's layout, populate it with sample data, and assign the custom adapter.
This document discusses how to handle events from widgets in Android applications. It explains that widgets can generate click and touch events that need to be handled by an activity. Developers can set onclick listeners on buttons or other widgets to perform actions in response to user input. The document provides examples of how to write onclick listeners for buttons and handling different types of events from widgets in an Android application.
The document discusses event handling in Android applications. It covers XML-based event handling where events are defined in the XML layout. It also covers Java-based event handling where events are handled by implementing listener interfaces in the Java code. It provides examples of handling click and long click events. It also lists some other event listeners that can be used, such as OnFocusChangeListener, OnKeyListener, OnTouchListener, and OnCreateContextMenuListener.
The presentation introduces the reader to the principles of user interaction in Android applications. First, events are introduced, together with the related concepts of callbacks and event listeners. It follows a discussion on how to handle events in a declarative fashion via the XML layout file.
1. Understanding Android Events
2. Event Listeners and Callback Methods
2.1 onClick()
2.2 onLongClick()
2.3 onFocusChange()
2.4 onKey()
2.5 onTouch()
2.6 Using a separate Listener class
2.7 Using a Named Inner Class for Event Handling
2.8 Handling Events by Having Main Activity Implement Listener Interface
2.9 Handling Events by Specifying the Event Handler Method in main.xml
2.10 Handling Events by Specifying the Event Handler Method in main.xml(cont.)
3. Exercise 5
Este documento resume una sesión de aprendizaje sobre la comunidad de Sullana, Perú. Los niños de 3 y 4 años aprenderán sobre la historia y lugares turísticos de Sullana a través de escuchar una historia, ordenar eventos en la historia, dibujar, y conversar sobre lo que aprendieron. Ellos también harán un recorrido por la comunidad para observar e identificar lugares importantes como la plaza de armas, iglesias, hospitales y más.
Progettazione e sviluppo del prototipo di una app per l'apprendimento del linguaggio nei bambini sotto i 36 mesi.
Creazione di interfaccia mamma e bambino, ottimizzate per gli utenti.
Riconoscimento automatico dell'utente (context awareness)
Ubiquitous and Context aware computing - Università degli Studi di Milano - Bicocca
This document provides an overview and tutorial on Android application development. It discusses what Android is, its features, and how to set up the development environment, including installing Java, the Android SDK, Eclipse IDE, and configuring an Android virtual device. It also covers Android architecture, application components, and provides a basic "Hello World" example app. The document is intended for beginners to help them understand Android programming.
The document provides instructions for creating a custom list view in Android. It explains that a list view displays data items and uses an adapter to link the data to views. It demonstrates how to create a custom adapter class that extends BaseAdapter and overrides methods like getCount(), getItem(), and getView(). The getView() method is used to inflate a custom row layout and populate it with data for each list item. The document also shows how to set up the list view in an activity's layout, populate it with sample data, and assign the custom adapter.
This document discusses how to handle events from widgets in Android applications. It explains that widgets can generate click and touch events that need to be handled by an activity. Developers can set onclick listeners on buttons or other widgets to perform actions in response to user input. The document provides examples of how to write onclick listeners for buttons and handling different types of events from widgets in an Android application.
The document discusses event handling in Android applications. It covers XML-based event handling where events are defined in the XML layout. It also covers Java-based event handling where events are handled by implementing listener interfaces in the Java code. It provides examples of handling click and long click events. It also lists some other event listeners that can be used, such as OnFocusChangeListener, OnKeyListener, OnTouchListener, and OnCreateContextMenuListener.
The presentation introduces the reader to the principles of user interaction in Android applications. First, events are introduced, together with the related concepts of callbacks and event listeners. It follows a discussion on how to handle events in a declarative fashion via the XML layout file.
1. Understanding Android Events
2. Event Listeners and Callback Methods
2.1 onClick()
2.2 onLongClick()
2.3 onFocusChange()
2.4 onKey()
2.5 onTouch()
2.6 Using a separate Listener class
2.7 Using a Named Inner Class for Event Handling
2.8 Handling Events by Having Main Activity Implement Listener Interface
2.9 Handling Events by Specifying the Event Handler Method in main.xml
2.10 Handling Events by Specifying the Event Handler Method in main.xml(cont.)
3. Exercise 5
Este documento resume una sesión de aprendizaje sobre la comunidad de Sullana, Perú. Los niños de 3 y 4 años aprenderán sobre la historia y lugares turísticos de Sullana a través de escuchar una historia, ordenar eventos en la historia, dibujar, y conversar sobre lo que aprendieron. Ellos también harán un recorrido por la comunidad para observar e identificar lugares importantes como la plaza de armas, iglesias, hospitales y más.
Progettazione e sviluppo del prototipo di una app per l'apprendimento del linguaggio nei bambini sotto i 36 mesi.
Creazione di interfaccia mamma e bambino, ottimizzate per gli utenti.
Riconoscimento automatico dell'utente (context awareness)
Ubiquitous and Context aware computing - Università degli Studi di Milano - Bicocca
Ajay Panchal is seeking an entry-level position as an electrical engineer. He has a Bachelor's degree in Electrical Engineering from GTU with a 7.03 CGPA. His skills include knowledge of circuit boards, microcontrollers, and electrical equipment. He is proficient in transmission systems and has experience with software like Proteus, PSIM, and Keil. His final year project involved designing an automatic whiteboard cleaning machine.
The document discusses the benefits of exercise for mental health. Regular physical activity can help reduce anxiety and depression and improve mood and cognitive functioning. Exercise causes chemical changes in the brain that may help boost feelings of calmness, happiness and focus.
Los puntos de indiferencia son los niveles de utilidad de operación en los que la rentabilidad del capital común es la misma para diferentes combinaciones de fuentes de financiamiento, ya sea capital común solo o mezclado con deuda u otros tipos de capital. La utilidad de operación mide las ganancias sin incluir gastos financieros u otros costos, mientras que la rentabilidad evalúa los beneficios de una inversión.
Mobile note mobile by MAdvertise et BemobeeFranck Deville
2017 démarre très fort avec toujours plus de nouveautés et de challenges relevés.
De nombreux bilans annuels sur 2016 sont publiés et mettent en évidence un marché mobile toujours aussi fleurissant.
Madvertise vous récapitule les dernières tendances, exclusivités, acquisitions,...
Consultez l'ensemble des articles et chiffres clés réunis en un condensé 100% mobile en PJ.
Comparison of Jacob's Creek, Rosemount Estate, McGuigan Wines, Lindeman's and...Unmetric
Take a deep dive into the social media activities of the top wine brands in Australia on Facebook. Discover how brands like Lindeman's wines and Champagne Taittinger engage their audience with shareable content and social media campaigns.
The document discusses Symfony's form component. It covers EntityType and how it can be used to associate entities through many-to-many relationships. It also discusses CollectionType for embedding collections of forms and allowing addition/removal of elements. It provides solutions for ensuring data consistency when handling associations and collections in forms. It also covers form events, data filtering, and common data types available in Symfony forms.
Este documento define los conductores eléctricos y clasifica sus tipos. Explica que un conductor eléctrico transmite electricidad a través de electrones libres. Luego clasifica los conductores en de alta y baja conductividad, mencionando que la plata, el cobre y el aluminio son de alta conductividad. También cubre cómo se clasifican y identifican los conductores eléctricos según su estructura y color de aislamiento.
Fragments allow modular sections to be added and removed from an activity at runtime. A fragment has its own layout and lifecycle methods similar to an activity. The document discusses how to create and manage fragments, communicate between fragments through the activity, and dynamically change the UI based on device configuration using different layouts for portrait, landscape, and larger screens. Fragments provide a flexible way to customize the user interface on different devices.
Este documento describe la estructura atómica de los materiales en cinco niveles: macroestructura, microestructura, nanoestructura, arreglos atómicos de corto y largo alcance, y estructura atómica. Explica que un átomo está formado por un núcleo y electrones, y que los electrones se mantienen cerca del núcleo por atracción electrostática. Luego describe cuatro tipos de enlaces interatómicos: enlace metálico, enlace covalente, enlace iónico y
This document outlines the roles and areas of expertise of an individual as a trusted advisor, management consultant, information architect, data analyst, and business consultant with technical leadership experience in data warehousing, business intelligence, data integration, data quality, and master data management. They promise to bridge the gap between business and information technology and provide their knowledge, experience, communication skills, and contact information.
This document contains previews of various graphic design projects including calendars, postcards, business cards, magazine ads, brochures, logos and illustrations. The projects cover a range of clients and subject matter from photography, fine arts, music, home repair, real estate, and more. Overall the document showcases samples of a graphic designer's work across different media and formats.
How the Tablet Shopping Experience Will Impact Holiday Retail SalesUserZoom
The webinar discussed the results of a study on how the tablet shopping experience will impact holiday retail sales. 300 users completed tasks on 3 brands' sites and provided feedback. Key findings were that UnderArmour performed best on search, browse, checkout and had the highest likelihood of online purchases. Issues with filters and checkouts were common. Those with a better experience had more positive brand perceptions and were more likely to purchase online versus in-store.
Niche Investor Relations and financial sector marketing consultancy which helps GCC based corporations communicate effectively with their stakeholders.
ARINDON services are aimed at providing clients with Investor Relations strategy and roadmap aimed at improving attractiveness and client perception to target audience.
“Cloud BioLinux:Standardized, Pre-Configured and On-Demand
Computing for Genomics and Beyond
”. Genomics Standards Consortium Conference 2010, European Bioinformatics Institute, Hinxton, UK
Ajay Panchal is seeking an entry-level position as an electrical engineer. He has a Bachelor's degree in Electrical Engineering from GTU with a 7.03 CGPA. His skills include knowledge of circuit boards, microcontrollers, and electrical equipment. He is proficient in transmission systems and has experience with software like Proteus, PSIM, and Keil. His final year project involved designing an automatic whiteboard cleaning machine.
The document discusses the benefits of exercise for mental health. Regular physical activity can help reduce anxiety and depression and improve mood and cognitive functioning. Exercise causes chemical changes in the brain that may help boost feelings of calmness, happiness and focus.
Los puntos de indiferencia son los niveles de utilidad de operación en los que la rentabilidad del capital común es la misma para diferentes combinaciones de fuentes de financiamiento, ya sea capital común solo o mezclado con deuda u otros tipos de capital. La utilidad de operación mide las ganancias sin incluir gastos financieros u otros costos, mientras que la rentabilidad evalúa los beneficios de una inversión.
Mobile note mobile by MAdvertise et BemobeeFranck Deville
2017 démarre très fort avec toujours plus de nouveautés et de challenges relevés.
De nombreux bilans annuels sur 2016 sont publiés et mettent en évidence un marché mobile toujours aussi fleurissant.
Madvertise vous récapitule les dernières tendances, exclusivités, acquisitions,...
Consultez l'ensemble des articles et chiffres clés réunis en un condensé 100% mobile en PJ.
Comparison of Jacob's Creek, Rosemount Estate, McGuigan Wines, Lindeman's and...Unmetric
Take a deep dive into the social media activities of the top wine brands in Australia on Facebook. Discover how brands like Lindeman's wines and Champagne Taittinger engage their audience with shareable content and social media campaigns.
The document discusses Symfony's form component. It covers EntityType and how it can be used to associate entities through many-to-many relationships. It also discusses CollectionType for embedding collections of forms and allowing addition/removal of elements. It provides solutions for ensuring data consistency when handling associations and collections in forms. It also covers form events, data filtering, and common data types available in Symfony forms.
Este documento define los conductores eléctricos y clasifica sus tipos. Explica que un conductor eléctrico transmite electricidad a través de electrones libres. Luego clasifica los conductores en de alta y baja conductividad, mencionando que la plata, el cobre y el aluminio son de alta conductividad. También cubre cómo se clasifican y identifican los conductores eléctricos según su estructura y color de aislamiento.
Fragments allow modular sections to be added and removed from an activity at runtime. A fragment has its own layout and lifecycle methods similar to an activity. The document discusses how to create and manage fragments, communicate between fragments through the activity, and dynamically change the UI based on device configuration using different layouts for portrait, landscape, and larger screens. Fragments provide a flexible way to customize the user interface on different devices.
Este documento describe la estructura atómica de los materiales en cinco niveles: macroestructura, microestructura, nanoestructura, arreglos atómicos de corto y largo alcance, y estructura atómica. Explica que un átomo está formado por un núcleo y electrones, y que los electrones se mantienen cerca del núcleo por atracción electrostática. Luego describe cuatro tipos de enlaces interatómicos: enlace metálico, enlace covalente, enlace iónico y
This document outlines the roles and areas of expertise of an individual as a trusted advisor, management consultant, information architect, data analyst, and business consultant with technical leadership experience in data warehousing, business intelligence, data integration, data quality, and master data management. They promise to bridge the gap between business and information technology and provide their knowledge, experience, communication skills, and contact information.
This document contains previews of various graphic design projects including calendars, postcards, business cards, magazine ads, brochures, logos and illustrations. The projects cover a range of clients and subject matter from photography, fine arts, music, home repair, real estate, and more. Overall the document showcases samples of a graphic designer's work across different media and formats.
How the Tablet Shopping Experience Will Impact Holiday Retail SalesUserZoom
The webinar discussed the results of a study on how the tablet shopping experience will impact holiday retail sales. 300 users completed tasks on 3 brands' sites and provided feedback. Key findings were that UnderArmour performed best on search, browse, checkout and had the highest likelihood of online purchases. Issues with filters and checkouts were common. Those with a better experience had more positive brand perceptions and were more likely to purchase online versus in-store.
Niche Investor Relations and financial sector marketing consultancy which helps GCC based corporations communicate effectively with their stakeholders.
ARINDON services are aimed at providing clients with Investor Relations strategy and roadmap aimed at improving attractiveness and client perception to target audience.
“Cloud BioLinux:Standardized, Pre-Configured and On-Demand
Computing for Genomics and Beyond
”. Genomics Standards Consortium Conference 2010, European Bioinformatics Institute, Hinxton, UK
2. Quick CV
• TU Berlin Computer Science Diploma 1986
• Freelance Consultant since 1993 (Hospitality,
Banking)
• Android Programming since 4/2014
3. My Task
Implement a restaurant check split screen to
easily select order items.
Use ExpandableListView to represent restaurant
check.
ExpandableListView_1
4. My Task
Implement a Swipe Gesture such as
Swipe from left to right select one order
Swipe from right to left unselect one order
6. Implementation Swipe
Implement a View.OnTouchListener
Other alternative is subclassing from
ExpandableListView and override onTouch()
ExpandableListView_2
10. Final Solution
Events need to be handled on
ExpandableListView and not on the item
ViewGroup level to harmonize between scroll
and swipe
ExpandableListView_3
11. End of Presentation
Thank you for your attention
Presentation can be found on
http://www.slideshare.net/jensmohr/underst
anding-android-handling-of-touch-events
Source Code on Github
https://github.com/pontisoft/ExpandableListVie
w_1 2 and 3