mirror of
https://github.com/antebudimir/tempus.git
synced 2026-01-01 18:03:33 +00:00
Removed download button to album page and added to menu
This commit is contained in:
parent
b70819c337
commit
3a1a39691a
6 changed files with 54 additions and 23 deletions
9
app/src/main/res/drawable/ic_file_download.xml
Normal file
9
app/src/main/res/drawable/ic_file_download.xml
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:fillColor="@color/titleTextColor"
|
||||
android:pathData="M18,15v3H6v-3H4v3c0,1.1 0.9,2 2,2h12c1.1,0 2,-0.9 2,-2v-3H18zM17,11l-1.41,-1.41L13,12.17V4h-2v8.17L8.41,9.59L7,11l5,5L17,11z"/>
|
||||
</vector>
|
||||
|
|
@ -50,6 +50,7 @@
|
|||
android:ellipsize="end"
|
||||
android:maxLines="2"
|
||||
android:singleLine="false"
|
||||
android:text="American Idiot"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toEndOf="@+id/album_cover_image_view"
|
||||
app:layout_constraintTop_toTopOf="@+id/album_cover_image_view" />
|
||||
|
|
@ -63,6 +64,7 @@
|
|||
android:layout_marginEnd="16dp"
|
||||
android:ellipsize="end"
|
||||
android:maxLines="1"
|
||||
android:text="Green Day"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toEndOf="@+id/album_cover_image_view"
|
||||
app:layout_constraintTop_toBottomOf="@+id/album_name_label" />
|
||||
|
|
@ -74,26 +76,11 @@
|
|||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="12dp"
|
||||
android:layout_marginEnd="16dp"
|
||||
android:text="2004"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toEndOf="@+id/album_cover_image_view"
|
||||
app:layout_constraintTop_toBottomOf="@+id/album_artist_label" />
|
||||
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/download_icon_button"
|
||||
style="@style/SecondaryButton"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="12dp"
|
||||
android:backgroundTint="@color/buttonBackgroundColor"
|
||||
android:paddingStart="16dp"
|
||||
android:paddingEnd="16dp"
|
||||
android:text="Download"
|
||||
android:textAllCaps="false"
|
||||
app:cornerRadius="18dp"
|
||||
app:elevation="0dp"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/album_cover_image_view"
|
||||
app:layout_constraintStart_toEndOf="@+id/album_cover_image_view" />
|
||||
|
||||
<View
|
||||
android:id="@+id/upper_button_divider"
|
||||
style="@style/Divider"
|
||||
|
|
|
|||
10
app/src/main/res/menu/album_page_menu.xml
Normal file
10
app/src/main/res/menu/album_page_menu.xml
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
<item
|
||||
android:id="@+id/action_download_album"
|
||||
android:icon="@drawable/ic_file_download"
|
||||
android:iconTint="@color/titleTextColor"
|
||||
android:title="Download"
|
||||
app:showAsAction="always" />
|
||||
</menu>
|
||||
|
|
@ -97,7 +97,7 @@
|
|||
|
||||
<style name="ShowcaseSubtitleTextView" parent="InterFontFamily">
|
||||
<item name="android:textSize">14sp</item>
|
||||
<item name="android:textFontWeight">700</item>
|
||||
<item name="android:textFontWeight">500</item>
|
||||
<item name="android:textColor">@color/subtitleTextColor</item>
|
||||
</style>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue