All Projects → cpacm → Floatingmusicmenu

cpacm / Floatingmusicmenu

Licence: apache-2.0
一款可用于音乐播放器的悬浮菜单按钮(A floating music menu)

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Floatingmusicmenu

Imitateneteasycloud
🌝
Stars: ✭ 154 (-37.65%)
Mutual labels:  music, musicplayer
Jetpack Musicplayer
即使不用云音乐听曲儿,也请务必收藏好该库!🔥 一行代码即可接入,音乐播放控制组件 - Even if you don't listen to the music by Spotify, be sure to collect this library, please! 🔥 This music player component can be accessed by only one line of code. Supporting by LiveData & AndroidX.
Stars: ✭ 577 (+133.6%)
Mutual labels:  music, musicplayer
Ticktockmusic
Material Design Music Player
Stars: ✭ 262 (+6.07%)
Mutual labels:  music, musicplayer
Fantasy
A music player based exoplayer. exquisite and fluent.
Stars: ✭ 23 (-90.69%)
Mutual labels:  music, musicplayer
Musicbox
😊 🎵 MusicPlayer 一站式收听多平台音乐(网易云, 虾米, QQ)的跨平台音乐播放器,尽情享受吧~✨
Stars: ✭ 1,130 (+357.49%)
Mutual labels:  music, musicplayer
Starrysky
🔥A Powerful and Streamline MusicLibrary(一个丰富的音乐播放封装库,支持多种音频格式,完美解决你的问题。)
Stars: ✭ 1,022 (+313.77%)
Mutual labels:  music, musicplayer
Black candy
A self hosted music streaming server
Stars: ✭ 686 (+177.73%)
Mutual labels:  music, musicplayer
Babe Qt
This version is unmantained. The new version is now named VVAVE
Stars: ✭ 147 (-40.49%)
Mutual labels:  music, musicplayer
Imusic
一个集视频播放器、音乐播放器封装库于一身的iMusic工程
Stars: ✭ 228 (-7.69%)
Mutual labels:  music, musicplayer
Musicplayer
A music player with pretty ui/ux design.
Stars: ✭ 232 (-6.07%)
Mutual labels:  music
Mozart
An optical music recognition (OMR) system. Converts sheet music to a machine-readable version.
Stars: ✭ 241 (-2.43%)
Mutual labels:  music
Gwion
🎵 strongly-timed musical programming language
Stars: ✭ 235 (-4.86%)
Mutual labels:  music
Ytermplayer
Stream youtube playlists as audio on linux terminal
Stars: ✭ 235 (-4.86%)
Mutual labels:  music
Godot Mixing Desk
A complete audio solution for Godot 3.2.x, making procedural sound and adaptive/procedural music possible with a few nodes and a couple lines of code.
Stars: ✭ 240 (-2.83%)
Mutual labels:  music
Swift Radio Pro
Professional Radio Station App for iOS!
Stars: ✭ 2,644 (+970.45%)
Mutual labels:  music
I dropped my phone the screen cracked
web audio, cracked.
Stars: ✭ 245 (-0.81%)
Mutual labels:  music
Khinsider
A script for khinsider mass downloads. Get video game soundtracks quickly and easily! Also a Python interface.
Stars: ✭ 232 (-6.07%)
Mutual labels:  music
Vue Fab
Vue Floating Action Button
Stars: ✭ 233 (-5.67%)
Mutual labels:  floatingactionbutton
Waveline Server
Simple self-hosted music streaming server
Stars: ✭ 248 (+0.4%)
Mutual labels:  music
Usb Midi Driver
USB MIDI Driver for Android 3.1 or later
Stars: ✭ 244 (-1.21%)
Mutual labels:  music

FloatingMusicMenu

一款可用于音乐播放器的悬浮菜单按钮,它是基于 FloatingActionButton 上完成,能够联动音乐播放器显示歌曲的进度,设置歌曲的封面和通过封面的旋转来展示播放的状态(停止或者播放)。 除此之外,它可以设置一组按钮作为菜单展示,支持上下左右四个方位显示,更方便的是可以在代码中动态的添加按钮或者移除按钮。

与音乐播放器的联动 作为菜单的功能

引入

dependencies {
	compile 'com.cpacm:floatingmusicmenu:1.1.0'
}

具体使用

可以直接在你的layout布局文件中直接定义

<com.cpacm.FloatingMusicMenu
	android:id="@+id/fmm"
	android:layout_width="wrap_content"
	android:layout_height="wrap_content"
	android:layout_alignParentBottom="true"
	android:layout_alignParentRight="true"
	android:layout_marginBottom="16dp"
	android:layout_marginRight="16dp"
	app:fmm_button_interval="8dp"
	app:fmm_floating_direction="up">

        <com.google.android.material.floatingactionbutton.FloatingActionButton
            android:id="@+id/add_fab"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:src="@drawable/ic_add"
            app:fabSize="mini" />

        <com.google.android.material.floatingactionbutton.FloatingActionButton
            android:id="@+id/sub_fab"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:src="@drawable/ic_remove"
            app:fabSize="mini" />

</com.cpacm.FloatingMusicMenu>

自定义attr属性表

属性 类型 说明
fmm_progress_color color 进度条的颜色值
fmm_progress float 当前进度(0-100)
fmm_button_interval dimension 子按钮之间的距离
fmm_cover reference 根按钮的封面图片
fmm_progress_percent integer 进度条宽度占按钮的百分比,如3表示为3%
fmm_backgroundTint color 根按钮的背景色
fmm_floating_direction enum 展开的方向,up表示向上,down表示向下,left表示向左,right表示向右

说明

感谢star或fork,若需要了解具体实现,请直接clone本工程,源码拥有丰富的注释说明。 有任何Bug或建议欢迎提issue或pull request,或者直接反馈给我.

License

Copyright 2017 cpacm

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].