Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/leoando/android11-toast-samples
Sample for Toast (target Android 11)
https://github.com/leoando/android11-toast-samples
android android-compose android-java android-kotlin jetpack-compose toast
Last synced: about 1 month ago
JSON representation
Sample for Toast (target Android 11)
- Host: GitHub
- URL: https://github.com/leoando/android11-toast-samples
- Owner: LeoAndo
- Created: 2021-08-04T17:23:07.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-01-25T16:04:32.000Z (about 3 years ago)
- Last Synced: 2024-11-11T11:50:37.797Z (3 months ago)
- Topics: android, android-compose, android-java, android-kotlin, jetpack-compose, toast
- Language: Kotlin
- Homepage:
- Size: 252 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Project Overview
This is a project for investigating the Toast API.
[日本語版_README](https://github.com/LeoAndo/android-toast-samples/blob/main/readme/README_JP.md)
# development enveroment
# Conclusion (alternative)
Toast uses a Only [makeText](https://developer.android.com/reference/kotlin/android/widget/Toast?hl=ja#maketext).
or Use [Snackbar](https://developer.android.com/reference/com/google/android/material/snackbar/Snackbar), which can be displayed only when the app is in the foreground.# refs
## [Toast-specification-changes-OS:11](https://developer.android.com/about/versions/11/behavior-changes-11?hl=ja#toasts)
## Toast-specification-changes-OS:12
- can put up to 2 lines of text message in Toast.
- https://youtu.be/D2cU_itNDAI?t=714- Limited the number of Toasts that can be displayed.
- https://youtu.be/D2cU_itNDAI?t=727# Capture (Android View)
| Pixel 4 OS10 | Pixel 4 OS11 |
|:---|:---:|
||
|
# Capture (Compose)
| Pixel 4 OS: 8 | Pixel 4 OS: 12 |
|:---|:---:|
||
|
# For Compose
https://github.com/LeoAndo/android-toast-samples/tree/main/ToastComposeSample# For Kotlin code
https://github.com/LeoAndo/android-toast-samples/tree/main/ToastKotlinSample# For Java code
https://github.com/LeoAndo/android-toast-samples/tree/main/ToastJavaSample