Replaced CircularImageView with ShapeableImageView
This commit is contained in:
parent
95fd195df8
commit
7aab762712
5 changed files with 10 additions and 394 deletions
|
@ -6,13 +6,12 @@
|
|||
android:layout_height="match_parent"
|
||||
android:padding="@dimen/padding_album_cover">
|
||||
|
||||
<code.name.monkey.retromusic.views.CircularImageView
|
||||
<com.google.android.material.imageview.ShapeableImageView
|
||||
android:id="@+id/player_image"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
android:scaleType="centerCrop"
|
||||
app:civ_border="false"
|
||||
app:civ_shadow="false"
|
||||
app:shapeAppearance="@style/ShapeAppearance.Material3.Circle"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintDimensionRatio="1:1"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
|
|
|
@ -117,18 +117,17 @@
|
|||
app:layout_constraintTop_toBottomOf="@+id/nextSongLabel"
|
||||
tools:text="@tools:sample/lorem/random" />
|
||||
|
||||
<code.name.monkey.retromusic.views.CircularImageView
|
||||
<com.google.android.material.imageview.ShapeableImageView
|
||||
android:id="@+id/artistImage"
|
||||
android:layout_width="36dp"
|
||||
android:layout_height="36dp"
|
||||
android:layout_gravity="end"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:elevation="10dp"
|
||||
app:civ_border="false"
|
||||
app:civ_shadow="false"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:shapeAppearance="@style/ShapeAppearance.Material3.Circle"
|
||||
app:srcCompat="@drawable/default_artist_art" />
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
||||
|
@ -139,8 +138,8 @@
|
|||
android:name="code.name.monkey.retromusic.fragments.player.CoverLyricsFragment"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:elevation="20dp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
android:elevation="20dp"
|
||||
app:layout_constraintTop_toBottomOf="@id/playerToolbar"/>
|
||||
app:layout_constraintTop_toBottomOf="@id/playerToolbar" />
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
|
|
|
@ -254,4 +254,8 @@
|
|||
</style>
|
||||
|
||||
<style name="Theme.AppWidget" parent="Theme.RetroMusic.FollowSystem" />
|
||||
|
||||
<style name="ShapeAppearance.Material3.Circle" parent="">
|
||||
<item name="cornerSize">50%</item>
|
||||
</style>
|
||||
</resources>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue