Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
84 lines (76 sloc) 3.33 KB
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.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:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<ImageView
app:srcCompat="@mipmap/ic_launcher"
android:id="@+id/image"
android:scaleType="fitStart"
app:layout_constraintTop_toTopOf="parent"
android:layout_marginStart="16dp"
app:layout_constraintLeft_toLeftOf="parent"
android:layout_marginTop="8dp"
android:layout_width="75dp"
android:layout_height="75dp"
app:layout_constraintBottom_toBottomOf="parent"
android:layout_marginBottom="8dp"/>
<TextView
android:layout_height="wrap_content"
android:id="@+id/title"
tools:text="Title"
android:textStyle="bold"
android:textColor="#000000"
android:layout_width="0dp"
app:layout_constraintRight_toLeftOf="@+id/play"
android:layout_marginEnd="8dp"
app:layout_constraintLeft_toLeftOf="@+id/artist"
app:layout_constraintTop_toTopOf="@+id/image"/>
<TextView
tools:text="artist"
android:layout_height="wrap_content"
android:id="@+id/artist"
android:textStyle="italic"
app:layout_constraintRight_toLeftOf="@+id/play"
android:layout_marginEnd="8dp"
android:layout_marginStart="8dp"
app:layout_constraintLeft_toRightOf="@+id/image"
android:layout_width="0dp"
app:layout_constraintTop_toBottomOf="@+id/title"/>
<ImageView
android:layout_width="40dp"
android:layout_height="40dp"
android:id="@+id/play"
app:srcCompat="@drawable/ic_play_circle_filled_black_24dp"
app:layout_constraintBottom_toBottomOf="@+id/image"
android:layout_marginEnd="16dp"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="@+id/image"/>
<TextView
android:text="2 likes"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:id="@+id/textView4"
app:layout_constraintLeft_toLeftOf="@+id/title"
app:layout_constraintBottom_toBottomOf="@+id/image"/>
<TextView
android:text="|"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/textView5"
android:layout_marginStart="8dp"
app:layout_constraintLeft_toRightOf="@+id/textView4"
app:layout_constraintTop_toTopOf="@+id/textView4"/>
<TextView
android:text="30 comments"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:id="@+id/textView6"
android:layout_marginStart="8dp"
app:layout_constraintLeft_toRightOf="@+id/textView5"
app:layout_constraintTop_toTopOf="@+id/textView5"
app:layout_constraintRight_toLeftOf="@+id/play"
android:layout_marginEnd="8dp"/>
</android.support.constraint.ConstraintLayout>