Android design patterns and best practice create reliable, robust, and efficient Android apps with industry-standard design patterns
Create reliable, robust, and efficient Android apps with industry-standard design patterns About This Book Create efficient object interaction patterns for faster and more efficient Android development Get into efficient and fast app development and start making money from your android apps Implemen...
Otros Autores: | |
---|---|
Formato: | Libro electrónico |
Idioma: | Inglés |
Publicado: |
Birmingham, England ; Mumbai, [India] :
Packt
2016.
|
Edición: | 1st edition |
Materias: | |
Ver en Biblioteca Universitat Ramon Llull: | https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009630266406719 |
Tabla de Contenidos:
- Cover
- Copyright
- Credits
- About the Author
- About the Reviewer
- www.PacktPub.com
- Customer Feedback
- Table of Contents
- Preface
- Chapter 1: Design Patterns
- How this book works
- What we will build
- The scenario
- The problem
- The solution
- Targeting platform versions
- The support library
- The factory pattern
- UML diagrams
- Running and testing an app
- Connecting to a real device
- Connecting to a virtual device
- Monitoring devices
- The abstract factory pattern
- Working with more than one factory
- Summary
- Chapter 2: Creational Patterns
- Applying themes
- Customizing color and text
- Using palettes
- Customizing text
- Adding image resources
- Managing screen densities
- Using designated resources
- Creating a card view
- Understanding card view properties
- Applying CardView metrics
- Updating the factory pattern
- Applying a builder pattern
- Summary
- Chapter 3: Material Patterns
- The app-bar
- Image assets
- Applying actions
- App bar structure
- Phones
- Tablets
- The navigation drawer
- Drawer construction
- Ratio keylines
- Activating the drawer
- Adding fragments
- Right handed drawers
- The singleton pattern
- Summary
- Chapter 4: Layout Patterns
- Linear layouts
- Weight and gravity
- Relative layouts
- The percent support library
- Screen rotation
- Large screen layouts
- Width qualifiers
- Layout aliases
- The strategy pattern
- Summary
- Chapter 5: Structural Patterns
- Generating lists
- List item layouts
- Material font sizes
- Connecting data
- Translating string resources
- Adapters and layout managers
- The adapter pattern
- The bridge pattern
- The facade pattern
- The criteria pattern
- Summary
- Chapter 6: Activating Patterns
- Collapsing toolbars
- Applying a data factory pattern
- Positioning item layouts.
- Using the factory with the RecyclerView
- Adding dividers
- Configuring the floating action button
- The dialog builder
- Custom dialogs
- Adding swipe and dismiss actions
- Constructing layout builders
- Summary
- Chapter 7: Combining Patterns
- Outlining specifications
- The prototype pattern
- Setting up a prototype
- Applying the prototype
- The decorator design pattern
- Setting up a decorator
- Applying the decorator
- Extending the decorator
- A sandwich builder pattern
- Applying the pattern
- Connecting to a UI
- Selecting patterns
- Adding a decorator
- Attaching the pattern
- Connecting the pattern to the UI
- Summary
- Chapter 8: Composing Patterns
- The composite pattern
- Adding a builder
- A Layout composer
- Adding components
- Creating composites
- Create composite layouts
- Formatting layouts at runtime
- Storage options
- Creating static files
- Creating and editing application files
- Storing user preferences
- The activity life cycle
- Applying preferences
- Adding a unique identifier
- Summary
- Chapter 9: Observing Patterns
- The Observer pattern
- Creating the pattern
- Adding a notification
- Utility observers and observables
- Notifications
- Setting an intent
- Customizing and configuring notifications
- Visibility and priority
- Services
- Summary
- Chapter 10: Behavioral Patterns
- The template pattern
- Extending templates
- The strategy pattern
- The visitor pattern
- The state pattern
- Summary
- Chapter 11: Wearable Patterns
- Android TV
- TV home screen
- TV model-view-presenter pattern
- TV app structure
- Recommendation cards
- Android Wear
- Pairing with a wearable device
- Managing screen shapes
- Wearable notifications
- Reading sensors
- Android Auto
- Auto safety considerations
- Configuring Auto apps
- Summary.
- Chapter 12: Social Patterns
- Adding web pages
- Including a link
- Configuring WebSettings and JavaScript
- Writing HTML for WebViews
- Connecting with Facebook
- Adding the Facebook SDK
- Obtaining a Facebook App ID
- Adding a LikeView
- Content builders
- Integrating Twitter
- Sending tweets
- Summary
- Chapter 13: Distribution Patterns
- Extending platform scope
- Publishing apps
- Generating a signed APK
- Registering as a developer
- Publishing an app on the Google Play store
- Distributing by e-mail and on websites
- Promoting and monetizing apps
- Promoting an app
- Monetizing an app
- In-app billing
- Including an advertisement
- Summary
- Index.