Android——播放器和图片轮播
16lz
2021-01-22
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>
更多相关文章
- Android功能模块化之网络连接状态判断
- 在不同状态下使用两个图像切换按钮
- 检测电池电量和充电状态
- Android获取WIFI状态下的IP地址以及MAC地址
- 在职状态,下家说要等我提辞职并做了人事背景调查后才发Offer. 这
- 嵌套片段不保留其状态