Skip to content

A sample Android app showcasing best practices for creating adaptive layouts and handling various input methods across different form factors using Jetpack Compose. πŸ“±πŸ’»πŸ–₯️

License

Notifications You must be signed in to change notification settings

AmazonAppDev/android-multi-form-factor-demo

πŸ“±πŸ’»πŸ–₯️ Adaptive Android App Demo

Android build License

This project is a sample Android app that showcases best practices when optimizing for different form factors, such as phones, tablets, and desktop devices. It demonstrates how to create adaptive layouts and handle various input methods to provide a seamless user experience across different screen sizes and device capabilities. πŸ“πŸŽ¨

βœ… Features

The app retrieves the first 20 videos from the Amazon Appstore Developers YouTube Channel using the open-source library YoutubeParser by @prof18. πŸ™Œ

Key features include:

  • Implementing adaptive layouts using Jetpack Compose for responsive UI and window resizing 🌈
  • Handling mouse events such as hover and right click πŸ–±οΈ
  • Handling special keyboard events such as (CTRL-<Key>) ⌨️
  • Launching Android notifications on different devices πŸ””
  • Checking availability of hardware features and capabilities πŸ”

πŸ“‹ Prerequisites

To run this project, you will need the following:

  • Android Studio πŸ› οΈ
  • An Android device or emulator running Android 5.0 (API level 21) or higher πŸ“±

πŸ’» Building the Adaptive Android App Demo

  1. Clone the repository:

    git clone https://github.com/AmazonAppDev/android-multi-form-factor-demo.git
    
  2. Create a Google Cloud API key for the YoutubeParser feed retrieval. πŸ”‘

  3. Add your Browser API Key to the local.properties file in the root of your project:

    google_cloud_api_key="Your Google Cloud API Key"
    
  4. Open the project in Android Studio. 🌟

  5. Run the app on your Android device or emulator. ▢️

πŸ“ˆ Using the Sample App

Resize the app window on devices with larger screens to see how the layout adapts to different dimensions. In the Notifications section, you can launch a test notification to see how it integrates with the device's notification system. πŸͺŸπŸ””

πŸ’¬ Get Support

If you encounter a bug or want to suggest a new feature, please file an issue. πŸ›πŸ’‘

If you have questions, comments, or need help with the code, we're here to assist you:

Don't forget to sign up for the developer newsletter to stay updated with the latest news and resources! πŸ“§

πŸ‘₯ Authors

πŸ“„ License

This project is licensed under the MIT-0 License.


We hope this sample app helps you create amazing adaptive Android experiences! πŸš€βœ¨

About

A sample Android app showcasing best practices for creating adaptive layouts and handling various input methods across different form factors using Jetpack Compose. πŸ“±πŸ’»πŸ–₯️

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages