mirror of
https://github.com/antebudimir/tempus.git
synced 2026-01-01 09:53:33 +00:00
Removed almost all hardcoded constants and deleted offline playlist model
This commit is contained in:
parent
e98429503b
commit
ff1a1350f9
24 changed files with 64 additions and 380 deletions
|
|
@ -104,7 +104,7 @@
|
|||
android:paddingStart="16dp"
|
||||
android:paddingTop="8dp"
|
||||
android:paddingEnd="16dp"
|
||||
android:text="@string/download_title_tracks_section" />
|
||||
android:text="@string/download_title_section" />
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/downloaded_tracks_recycler_view"
|
||||
|
|
|
|||
|
|
@ -30,48 +30,16 @@
|
|||
android:paddingTop="8dp">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/playlist_cover_image_view_top_left"
|
||||
android:id="@+id/playlist_cover_image_view"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
android:layout_marginStart="64dp"
|
||||
android:layout_marginTop="8dp"
|
||||
app:layout_constraintDimensionRatio="H,1:1"
|
||||
app:layout_constraintEnd_toStartOf="@id/playlist_cover_image_view_top_right"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/playlist_cover_image_view_top_right"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:layout_marginEnd="64dp"
|
||||
app:layout_constraintDimensionRatio="H,1:1"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toEndOf="@id/playlist_cover_image_view_top_left"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/playlist_cover_image_view_bottom_left"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
android:layout_marginStart="64dp"
|
||||
android:layout_marginBottom="8dp"
|
||||
app:layout_constraintDimensionRatio="H,1:1"
|
||||
app:layout_constraintEnd_toStartOf="@id/playlist_cover_image_view_bottom_right"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/playlist_cover_image_view_top_left" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/playlist_cover_image_view_bottom_right"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
android:layout_marginEnd="64dp"
|
||||
android:layout_marginBottom="8dp"
|
||||
app:layout_constraintDimensionRatio="H,1:1"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toEndOf="@id/playlist_cover_image_view_bottom_left"
|
||||
app:layout_constraintTop_toTopOf="@id/playlist_cover_image_view_bottom_left" />
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/playlist_name_label"
|
||||
|
|
@ -87,7 +55,7 @@
|
|||
android:textAlignment="center"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/playlist_cover_image_view_bottom_left" />
|
||||
app:layout_constraintTop_toBottomOf="@+id/playlist_cover_image_view" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/playlist_song_count_label"
|
||||
|
|
|
|||
|
|
@ -6,14 +6,4 @@
|
|||
android:icon="@drawable/ic_file_download"
|
||||
android:title="@string/menu_download_all_button"
|
||||
app:showAsAction="never" />
|
||||
<item
|
||||
android:id="@+id/action_pin_playlist"
|
||||
android:icon="@drawable/ic_pin_in"
|
||||
android:title="@string/menu_pin_button"
|
||||
app:showAsAction="never" />
|
||||
<item
|
||||
android:id="@+id/action_unpin_playlist"
|
||||
android:icon="@drawable/ic_pin_out"
|
||||
android:title="@string/menu_unpin_button"
|
||||
app:showAsAction="never" />
|
||||
</menu>
|
||||
|
|
@ -2,7 +2,7 @@
|
|||
<dimen name="appbar_header_height">296dp</dimen>
|
||||
<dimen name="activity_margin_content">24dp</dimen>
|
||||
<dimen name="bottom_sheet_peek_height">56dp</dimen>
|
||||
<dimen name="global_padding_bottom">64dp</dimen>
|
||||
<dimen name="global_padding_bottom">128dp</dimen>
|
||||
<dimen name="radius">2dp</dimen>
|
||||
<dimen name="dots_height">2dp</dimen>
|
||||
</resources>
|
||||
|
|
@ -56,7 +56,7 @@
|
|||
<string name="download_title_artist_see_all_button">See all</string>
|
||||
<string name="download_title_playlist_section">Playlists</string>
|
||||
<string name="download_title_playlist_see_all_button">See all</string>
|
||||
<string name="download_title_tracks_section">Tracks</string>
|
||||
<string name="download_title_section">Downloads</string>
|
||||
<string name="download_title_tracks_see_all_button">See all</string>
|
||||
<string name="empty_string" />
|
||||
<string name="error_required">Required</string>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue