Cause: Starting from Android O there is limitation on how freely app can access background Service. Solution: use Foreground Service Step 1: in service: Step…
Example 1: You can see in this tutorial: Android Lesson 12 part 2: ListFragment Example 2: create android dialog with a custom layout File res/layout/dialog_content.xml…
Import: Example: More information about Snackbar: https://github.com/material-components/material-components-android/blob/master/docs/components/Snackbar.md
Example 1: Fragment and FrameLayout Step 1: create a new android project Step 2: File res/layout/activity_main.xml Step 3: File res/layout/landscape_fragment.xml Step 4: File res/layout/portrait_fragment.xml Step…
android:background Don’t use android:background, as it will replace the entire Drawable thus removing click effect (e.g. material ripple effect) and remove changing of color state…