我想在我的应用程序中添加来自url链接的播放广播。我找到了我需要的东西,但没有丢失xml文件,这里:
链接:Online radio streaming app for Android
可能有一个人有xml文件或者其他例子。非常感谢!
您可以从代码中推断出xml。
ProgressBar调用了progressBar1 Button,调用了buttonPlay Button,名为buttonStopPlay
<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>