Skip to content

Commit

Permalink
Merge pull request #4545 from Bnyro/master
Browse files Browse the repository at this point in the history
feat: use elevated accent color for playlist videos count
  • Loading branch information
Bnyro authored Aug 19, 2023
2 parents b457938 + f561688 commit 694e317
Showing 1 changed file with 28 additions and 20 deletions.
48 changes: 28 additions & 20 deletions app/src/main/res/layout/playlists_row.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,33 +32,41 @@
android:layout_height="match_parent"
tools:srcCompat="@tools:sample/backgrounds/scenic" />

<LinearLayout
<com.google.android.material.card.MaterialCardView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:background="?colorPrimaryContainer"
android:gravity="center"
android:orientation="horizontal"
android:paddingVertical="2dp">
app:cardCornerRadius="0dp"
app:cardElevation="10dp"
app:strokeWidth="0dp">

<ImageView
android:layout_width="wrap_content"
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
app:srcCompat="@drawable/ic_playlist"
app:tint="?colorControlNormal" />
android:gravity="center"
android:orientation="horizontal"
android:paddingVertical="2dp">

<TextView
android:id="@+id/video_count"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:paddingStart="5dp"
android:textColor="?colorControlNormal"
tools:ignore="RtlSymmetry"
tools:text="20" />
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
app:srcCompat="@drawable/ic_playlist"
app:tint="?colorControlNormal" />

<TextView
android:id="@+id/video_count"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:paddingStart="5dp"
android:textColor="?colorControlNormal"
tools:ignore="RtlSymmetry"
tools:text="20" />

</LinearLayout>

</LinearLayout>
</com.google.android.material.card.MaterialCardView>
</com.google.android.material.card.MaterialCardView>

<TextView
Expand Down

0 comments on commit 694e317

Please sign in to comment.