你好,游客 登录 注册 搜索
背景:
阅读新闻

Android--实现自制录音/播放录音程序

[日期:2013-02-05] 来源:Linux社区  作者:dlutbrucezhang [字体:大 中 小]

2.总体布局文件代码

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
  xmlns:Android="http://schemas.android.com/apk/res/android"
  android:orientation="vertical"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent"
  android:background="@drawable/white">
  <LinearLayout
  android:id="@+id/LinearLayout01"
  android:layout_width="wrap_content"
  android:layout_height="wrap_content">
  <ImageButton
  android:id="@+id/ImageButton01"
  android:layout_width="wrap_content"
  android:layout_height="wrap_content"
  android:src="@drawable/record">
  </ImageButton>
  <ImageButton
  android:id="@+id/ImageButton02"
  android:layout_width="wrap_content"
  android:layout_height="wrap_content"
  android:src="@drawable/stop">
  </ImageButton>
  <ImageButton
  android:id="@+id/ImageButton03"
  android:layout_width="wrap_content"
  android:layout_height="wrap_content"
  android:src="@drawable/play">
  </ImageButton>
  <ImageButton
  android:id="@+id/ImageButton04"
  android:layout_width="wrap_content"
  android:layout_height="wrap_content"
  android:src="@drawable/delete">
  </ImageButton>
  </LinearLayout>
  <TextView
  android:id="@+id/TextView01"
  android:layout_width="wrap_content"
  android:layout_height="wrap_content"
  android:textColor="@drawable/black">
  </TextView>
  <ListView
  android:id="@+id/ListView01"
  android:layout_width="wrap_content"
  android:layout_height="wrap_content"
  android:background="@drawable/black">
  </ListView>
</LinearLayout>

3.ListView中的子View的布局

<?xml version="1.0" encoding="utf-8"?>
<CheckedTextView
  xmlns:android="http://schemas.android.com/apk/res/android"
  android:id="@+id/myCheckedTextView1"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent"
  android:textColor="@drawable/white"/>

更多Android相关信息见Android 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=11

linux
相关资讯       Android程序  Android录音  Android播放录音 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款