Newer
Older
artist-browser / app / src / main / res / layout / track_item_row.xml
@dbangoura dbangoura on 8 Mar 2021 1 KB first commit
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="@dimen/track_item_row_width"
    android:layout_height="@dimen/track_item_row_height"
    android:layout_margin="@dimen/track_item_row_margin"
    android:background="@color/default_light_green">

    <ImageView
        android:layout_width="match_parent"
        android:layout_height="@dimen/track_item_thumbnail_height"
        android:layout_marginTop="@dimen/app_min_margin"
        android:adjustViewBounds="true"
        android:contentDescription="@string/artist_image_content_description"
        android:scaleType="centerInside"
        android:src="@drawable/disc_placeholder"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent" />

    <TextView
        android:id="@+id/item_name"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginBottom="@dimen/track_item_row_margin"
        android:gravity="center"
        android:textColor="@color/white"
        android:textSize="@dimen/track_item_row_name_text_size"
        android:textStyle="bold"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        tools:text="bla bla" />

</androidx.constraintlayout.widget.ConstraintLayout>