【问题标题】:how to create android app for working with radio stream如何创建用于处理无线电流的 Android 应用程序
【发布时间】:2011-11-10 12:42:10
【问题描述】:

我想从 url 链接向我的应用添加正在播放的收音机。 我找到了我需要但没有 xml 文件的东西,这里:

链接:Online radio streaming app for Android

也许有人有 xml 文件或另一个例子来做这件事。 多谢!

【问题讨论】:

标签: android stream radio


【解决方案1】:

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

ProgressBar 称为 progressBar1 名为 buttonPlay 的按钮 按钮名为 buttonStopPlay

【讨论】:

    【解决方案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>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-02-18
      • 2015-10-08
      • 2020-12-20
      • 1970-01-01
      • 1970-01-01
      • 2011-10-17
      • 1970-01-01
      相关资源
      最近更新 更多