1 <?xml version="1.0" encoding="utf-8"?>
 2 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
 3     xmlns:tools="http://schemas.android.com/tools"
 4     android:layout_width="match_parent"
 5     android:layout_height="match_parent"
 6     android:paddingBottom="@dimen/activity_vertical_margin"
 7     android:paddingLeft="@dimen/activity_horizontal_margin"
 8     android:paddingRight="@dimen/activity_horizontal_margin"
 9     android:paddingTop="@dimen/activity_vertical_margin"
10     tools:context="com.hanqi.musicplayer.MainActivity"
11     android:orientation="vertical"
12     android:background="@drawable/fq">
13 
14     <TextView
15         android:layout_width="wrap_content"
16         android:layout_height="wrap_content"
17         android:text="播放状态"
18         android:textColor="#000080"
19         android:id="@+id/tv_1"/>
20 
21   <ProgressBar
22       android:layout_width="match_parent"
23       android:layout_height="wrap_content"
24       style="@android:style/Widget.ProgressBar.Horizontal"
25       android:id="@+id/pb_1"/>
26 
27     <!--<SeekBar-->
28         <!--android:layout_width="match_parent"-->
29         <!--android:layout_height="wrap_content"-->
30         <!--android:id="@+id/se_1"/>-->
31 
32     <LinearLayout
33         android:layout_width="match_parent"
34         android:layout_height="wrap_content">
35         <ImageButton
36             android:layout_width="0dp"
37             android:layout_height="wrap_content"
38             android:layout_weight="1"
39             android:src="@drawable/a1"
40             android:onClick="play_OnClick"/>
41         <ImageButton
42             android:layout_width="0dp"
43             android:layout_height="wrap_content"
44             android:layout_weight="1"
45             android:src="@drawable/a2"
46             android:onClick="pause_OnClick"/>
47         <ImageButton
48             android:layout_width="0dp"
49             android:layout_height="wrap_content"
50             android:layout_weight="1"
51             android:src="@drawable/a3"
52             android:onClick="stop_OnClick"/>
53         <ImageButton
54             android:layout_width="0dp"
55             android:layout_height="wrap_content"
56             android:layout_weight="1"
57             android:src="@drawable/a4"
58             android:onClick="exit_OnClick"/>
59     </LinearLayout>
60 
61     <ImageView
62         android:layout_width="330dp"
63         android:layout_height="220dp"
64         android:layout_gravity="center"
65         android:id="@+id/iv_1"/>
66     <ImageView
67         android:layout_width="330dp"
68         android:layout_height="220dp"
69         android:layout_gravity="center"
70         android:src="@drawable/gd"/>
71 
72 </LinearLayout>

更多相关文章

  1. Android功能模块化之网络连接状态判断
  2. 在不同状态下使用两个图像切换按钮
  3. 检测电池电量和充电状态
  4. Android获取WIFI状态下的IP地址以及MAC地址
  5. 在职状态,下家说要等我提辞职并做了人事背景调查后才发Offer. 这
  6. 嵌套片段不保留其状态

随机推荐

  1. Love Plus Android版,让你跟可爱机器人谈
  2. 谷歌推Android 3.0正式版本
  3. Android异步加载全解析之开篇瞎扯淡
  4. JavaScript 与 Android 交互
  5. Android(安卓)标题栏上加一个返回按钮 超
  6. (2) Android中Binder调用流程 --- Binder环
  7. Android中的资源分析
  8. Android独特的架构:HAL与Dalvik虚拟机
  9. android 属性系统使用的小问题
  10. Android 3.0,将为对战iPad归来