转眼也沦为“大四狗”的行列当中去,本来打算在暑假的时候找一个实习,结果学校临时安排了“暑期实训”

原本计划好的安排全部被打乱了,哎~~~也只能跟着学校的脚步“摩擦摩擦”了

暑期实训我选择的Android开发,当时选他的初衷很简单:

1.看内容安排的时候,是安排写一个游戏引擎以及文档的书写规范,看着内容很高大上的感觉...有木有?!?!?!(后来真正开始上课的时候,只能呵呵....)

2.之前没有接触过Android开发,能接触一门新的语言也是不错的

3.据说培训的师兄是个帅哥,完全犯花痴,不要拉我...我要为他献上我的膝盖

OK~~口水擦擦,还是说正题吧。

暑期实训的内容主要是开发一款类似于时下主流的音乐播放器,很类似于天天动听、酷狗音乐之类的,在此也很感谢某位博主提供的素材,让我可以不用反解压QQ音乐,先上图,再来详细介绍我的音乐播放器的实现过程

先说实现的功能有哪些:

1.上一曲/下一曲

2.顺序循环(初始化的播放次序)

3.随机播放(代码还是有些问题,获取到了随机数,但播放的时候老是卡顿,这个后面再说)

4.单曲循环

5.播放/暂停

6.当前播放进度

7.歌曲总时长

8.快进/快退(拖动进度条的效果)

9.同步显示歌词

10.页面布局(布局什么的还真是....关乎一个人的审美能力呀)

先说最基础也是最重要的-------页面布局

采用RelativeLayout布局,这里先说明一下RelativeLayout和LinearLayout的区别

RelativeLayout是相对布局,在页面上相对于页面坐标进行布局设置。

比如可以通过确定对象A确定对象B的位置,

B可以在A的上下左右,

对象B距离A的位置。

灵活性很高,但很难确定定位对象的位置。

LinearLayout是线性布局,在使用LinearLayout 的时候,思路大致是将页面母板分成若干部分android:orientation="vertical"将各个部分垂直分布

android:orientation="horizontal"实现各个对象的横向分布

相对性比较强,利于划分块

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"xmlns:tools="http://schemas.android.com/tools"android:id="@+id/RelativeLayout1"android:layout_width="match_parent"android:layout_height="match_parent"android:background="@drawable/bg_playback" ><RelativeLayoutandroid:id="@+id/handle_btnlayout"android:layout_width="match_parent"android:layout_height="wrap_content" ><ImageViewandroid:id="@+id/previous_music"android:layout_width="wrap_content"android:layout_height="wrap_content"android:layout_alignParentLeft="true"android:layout_marginLeft="10dp"android:background="@drawable/previous_music_selector" /><ImageViewandroid:id="@+id/repeat_music"android:layout_width="wrap_content"android:layout_height="wrap_content"android:layout_toRightOf="@id/previous_music"android:layout_marginLeft="10dp"android:background="@drawable/repeat_none_selector" /><ImageViewandroid:id="@+id/play_music"android:layout_width="wrap_content"android:layout_height="wrap_content"android:layout_toRightOf="@id/repeat_music"android:layout_marginLeft="25dp"android:background="@drawable/play_selector" /><ImageViewandroid:id="@+id/shuffle_music"android:layout_width="wrap_content"android:layout_height="wrap_content"android:layout_toRightOf="@id/play_music"android:layout_marginLeft="25dp"android:background="@drawable/shuffle_none_selector" /><ImageViewandroid:id="@+id/next_music"android:layout_width="wrap_content"android:layout_height="wrap_content"android:layout_alignParentRight="true"android:layout_marginRight="10dp"android:background="@drawable/next_music_selector" /></RelativeLayout><ListViewandroid:id="@+id/music_list"android:layout_width="match_parent"android:layout_height="wrap_content"android:layout_below="@id/handle_btnlayout"android:layout_marginBottom="50dp" /><RelativeLayoutandroid:id="@+id/singleSong_layout"android:layout_width="match_parent"android:layout_height="50dp"android:layout_alignParentBottom="true" ><TextViewandroid:id="@+id/stop_time"android:layout_width="wrap_content"android:layout_height="wrap_content"android:layout_alignParentRight="true"android:layout_marginLeft="10dp"android:layout_marginRight="15dp"android:layout_marginTop="16dp"android:text="00:00"android:textColor="#FFFFFF" /><TextViewandroid:id="@+id/start_time"android:layout_width="wrap_content"android:layout_height="wrap_content"android:layout_marginLeft="15dp"android:layout_marginTop="16dp"android:text="00:00"android:textColor="#FFFFFF" /><SeekBarandroid:id="@+id/bar_time"android:layout_width="match_parent"android:layout_height="wrap_content"android:layout_centerVertical="true"android:layout_marginLeft="10dp"android:layout_marginRight="10dp"android:layout_toLeftOf="@id/stop_time"android:layout_toRightOf="@id/start_time"android:progress="0" /></RelativeLayout><TextViewandroid:id="@+id/text_gc"android:layout_width="wrap_content"android:layout_height="wrap_content"android:layout_above="@id/singleSong_layout"android:layout_centerInParent="true"android:textColor="#A6FFFF"android:text="none"/></RelativeLayout>

这里就实现了布局,下一篇再介绍具体功能的实现,See you

Android开发----音乐播放器(界面设计)相关推荐

  1. Xamarin.Android开发音乐播放器

    最近.Net开源着实让C#火了一把,好久就听说Mono for Android一直没静下心来看,上周末找来看看,确实不错,前台界面axml编写跟Java安卓开发毫无区别,后台用C#其实很多window ...

  2. android开发音乐播放器,Android开发简易音乐播放器

    这里介绍一个简易的音乐播放器,供大家参考,具体内容如下 效果图如下: 但是,由于这是一个简易版的音乐播放器,所播放的音乐只有一首,且被写死,但,操作却十分简单,方便理解! 这是代码的主要设计: 音乐主 ...

  3. Android开发音乐播放器

    音乐播放器中综合了以下内容: SeekBar.ListView.广播接收者(以代码的形式注册Receiver).系统服务.MediaPlayer 实现的功能: 1.暂停/播放.下一首/上一首,点击某一 ...

  4. 用代码敲一番浪漫,Android开发音乐播放器

    在大多数人们的印象中,程序员容易使人联想到宅男.沉闷.古板等等一系列不好的词语.网上也流传着一个搞笑的说法:"嫁人就嫁程序员,钱多死得早."多么辛酸啊.但是--你们都错了,程序员也 ...

  5. android开发音乐播放器--Genres和Art album的获取

    最近在做一个项目,其中涉及到音乐播放器.当用到Genres和Art album时花费了一些时间才搞定,今天把方法草草列出,以供自己以后忘记时查看,也希望可以帮助碰到同样问题的道友!! 一.Genres ...

  6. (附源码)springboot+基于微信小程序音乐播放器的设计与实现 毕业设计271156

    Springboot音乐播放小程序的设计与实现 摘 要 本文设计了一种基于微信小程序的音乐播放器,系统为人们提供了方便快捷.即用即搜的音乐搜索播放服务,包括音乐资讯.音乐库推荐.交流论坛.注册登录.最 ...

  7. springboot+基于微信小程序音乐播放器的设计与实现 毕业设计-附源码271156

    Springboot音乐播放小程序的设计与实现 摘 要 本文设计了一种基于微信小程序的音乐播放器,系统为人们提供了方便快捷.即用即搜的音乐搜索播放服务,包括音乐资讯.音乐库推荐.交流论坛.注册登录.最 ...

  8. 张利国,龚海平,王植萌.android移动开发入门与进阶,开题报告-基于Android的手机音乐播放器的设计与实现.doc...

    盐城师范学院 毕业设计开题报告 题 目: 基于android的手机音乐播放器 的设计与实现 姓 名: 二级学院: 信息工程学院 专 业: 软件工程 班 级: 12(1) 学 号: 指导教师: 职称: ...

  9. android音乐播放器的开发与设计,Android音乐播放器的设计与实现

    内容简介: Android音乐播放器的设计与实现,毕业论文,共21页,7729字. 摘要:本文主要介绍了一个基于Andriod的音乐播放器的设计与实现.主要包括可行性分析,需求分析,App功能设计及实 ...

最新文章

  1. 在文件中查找指定字符串
  2. 一位年轻董事长给大学生的18条好建议
  3. 【APUE】文件 I/O 操作
  4. 一看就懂的感知机算法PLA
  5. 前端学习(1662):前端系列实战课程之div跟随鼠标移动
  6. MyEclipse6.5安装SVN插件的三种方法
  7. Android 系统(225)---Android 7.0切换阿拉伯语,QuickSetting界面图标左右翻转
  8. Linux下安装配置Redis
  9. 桌面日历(阴历、天气)小程序
  10. Office默认打开方式的改变方法以及安装程序莫名启动问题的权威汇总
  11. 无线路由桥接关掉服务器要怎么办,路由器设置无线桥接后不能登录副路由器怎么办?...
  12. 计算机文献检索的步骤实例,数据库检索方法与技巧(上)
  13. 使用M0 DesignStart 的样例SoC(example system) - 1 SoC组件
  14. 计算机无法从usb启动不了,无法从u盘启动【设置思路】
  15. 系统进程网络流量监控软件
  16. vue element select 下拉加载更多
  17. 【转】js高德地图图标合集
  18. Python 编程的最好搭档—VSCode 实用指南
  19. 实战开发支付SDK —— 对接微信支付看这一篇文章就够啦(含源码)
  20. 2022钉钉发布会|云钉低代码新模式、新能力、新机遇

热门文章

  1. toArray注意事项
  2. 当“嘿Siri”变得不只是让人调戏
  3. IDEA的工具栏不见了
  4. brk函数 linux,brk和sbrk及内存分配函数相关-linux+内存
  5. 金稻壳安全狗:保障电脑安全,实现企业防泄密和员工管理
  6. C/C++实战014:字符串转换及Python传参数组
  7. Linux基础: 挂载镜像文件(Mount ISO)
  8. 独显和核显的切换策略
  9. 2018年年末的一些思考
  10. 2018年总结及2019前三个月规划