Last active
November 2, 2022 14:16
-
-
Save alokomkar/cc7f182c4c1d6bc15f72a3bb0e7a2a49 to your computer and use it in GitHub Desktop.
Step 1 : Foreground service : fragment_home.xml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<androidx.appcompat.widget.LinearLayoutCompat | |
xmlns:android="http://schemas.android.com/apk/res/android" | |
android:orientation="vertical" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:gravity="center"> | |
<androidx.appcompat.widget.AppCompatButton | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:text="@string/start_playback" | |
android:layout_margin="@dimen/default_margin" | |
android:id="@+id/startButton"/> | |
<androidx.appcompat.widget.AppCompatButton | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:text="@string/stop_playback" | |
android:layout_margin="@dimen/default_margin" | |
android:id="@+id/stopButton"/> | |
<androidx.appcompat.widget.AppCompatButton | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:text="@string/start_playback_foreground" | |
android:layout_margin="@dimen/default_margin" | |
android:id="@+id/startButtonForeground"/> | |
<androidx.appcompat.widget.AppCompatButton | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:text="@string/stop_playback_foreground" | |
android:layout_margin="@dimen/default_margin" | |
android:id="@+id/stopButtonForeground"/> | |
</androidx.appcompat.widget.LinearLayoutCompat> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment