-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3182 from owncloud/feature/styled_player_view
improve music player design
- Loading branch information
Showing
6 changed files
with
88 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Enhancement: Replace blank view in music player with cover art | ||
|
||
We replaced the blank view in the music preview player with styled up cover art. | ||
For music files that does not have cover art embodied we made it display a place holder. | ||
|
||
https://github.com/owncloud/android/issues/3121 https://github.com/owncloud/android/pull/3182 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
owncloudApp/src/main/res/drawable/ic_place_holder_music_cover_art.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<vector xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:width="200dp" | ||
android:height="200dp" | ||
android:viewportWidth="200" | ||
android:viewportHeight="200"> | ||
<path | ||
android:pathData="M0,0h200v200h-200z" | ||
android:strokeWidth="3.81912" | ||
android:fillColor="@color/primary" | ||
android:strokeColor="@color/primary"/> | ||
<path | ||
android:pathData="m78.094,58.945v47.641c-2.664,-1.535 -5.735,-2.484 -9.031,-2.484 -9.98,0 -18.063,8.083 -18.063,18.063 0,9.98 8.083,18.063 18.063,18.063 9.98,0 18.063,-8.083 18.063,-18.063V77.008c14.948,0 29.895,0 44.843,0V107.413c-2.664,-1.535 -5.735,-2.484 -9.031,-2.484 -9.98,0 -18.063,8.083 -18.063,18.063 0,9.98 8.083,18.063 18.063,18.063 9.98,0 18.063,-8.083 18.063,-18.063V58.945c-20.969,0 -41.937,0 -62.906,0z" | ||
android:strokeWidth="4.516" | ||
android:fillColor="#ffffff"/> | ||
</vector> |
26 changes: 26 additions & 0 deletions
26
owncloudApp/src/main/res/drawable/ic_place_holder_music_cover_art_overlay.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<vector xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:aapt="http://schemas.android.com/aapt" | ||
android:width="200dp" | ||
android:height="200dp" | ||
android:viewportWidth="200" | ||
android:viewportHeight="200"> | ||
<path | ||
android:pathData="M0,0 L200,200V0Z" | ||
android:strokeAlpha="0.43137255" | ||
android:strokeLineJoin="miter" | ||
android:strokeWidth="1" | ||
android:strokeLineCap="butt"> | ||
<aapt:attr name="android:fillColor"> | ||
<gradient | ||
android:type="linear" | ||
android:angle="0" | ||
android:startX="0" | ||
android:startY="0" | ||
android:startColor="#6effffff" | ||
android:endX="100" | ||
android:endY="100" | ||
android:endColor="#00ffffff" | ||
/> | ||
</aapt:attr> | ||
</path> | ||
</vector> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters