如何创建用于处理无线电流的Android应用程序

问题描述 投票:0回答:2

我想在我的应用程序中添加来自url链接的播放广播。我找到了我需要的东西,但没有丢失xml文件,这里:

链接:Online radio streaming app for Android

可能有一个人有xml文件或者其他例子。非常感谢!

android stream radio
2个回答
0
投票

您可以从代码中推断出xml。

ProgressBar调用了progressBar1 Button,调用了buttonPlay Button,名为buttonStopPlay


0
投票

<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>

© www.soinside.com 2019 - 2024. All rights reserved.