'how to create android app for working with radio stream

I want to add to my app an playing radio from url link. I find something that I need but don't have the xml file is missing,here:

link: Online radio streaming app for Android

maybe some one have the xml file or anther example for doing that. thanks a lot!



Solution 1:[1]

You can infere the xml from the code.

ProgressBar called progressBar1 Button called buttonPlay Button called buttonStopPlay

Solution 2:[2]

<ProgressBar
    android:id="@+id/progressBar1"
    style="?android:attr/progressBarStyleHorizontal"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:layout_alignParentTop="true"
    android:layout_centerHorizontal="true" />

<LinearLayout
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_centerInParent="true" >

    <Button
        android:id="@+id/buttonPlay"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Play" />

    <Button
        android:id="@+id/buttonStopPlay"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Stop" />
</LinearLayout>

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Pintac
Solution 2 Basbous