customer review Layout :
<?xml version="1.0" encoding="utf-8"?>
<androidx.cardview.widget.CardView
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="match_parent"
android:layout_height="wrap_content">
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<LinearLayout
android:id="@+id/linearLayout"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/margin_msixteen"
android:layout_marginTop="@dimen/margin_equal"
android:background="@color/successGreen"
android:orientation="horizontal"
android:padding="@dimen/dimens_1dp"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<TextView
android:id="@+id/rating"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/spacing_control_half"
android:layout_marginEnd="@dimen/spacing_control_half"
android:text="@string/_4_5"
android:textColor="@color/white"
android:textStyle="bold" />
<ImageView
android:layout_width="@dimen/dimens_15dp"
android:layout_height="@dimen/dimens_15dp"
android:layout_gravity="center"
android:layout_marginStart="@dimen/spacing_control_half"
android:layout_marginEnd="@dimen/spacing_control_half"
android:src="@drawable/star"
app:tint="@color/white" />
</LinearLayout>
<TextView
android:id="@+id/endusername"
android:layout_width="@dimen/dimens_0dip"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/margin_equal"
android:layout_marginEnd="@dimen/margin_msixteen"
android:text="@string/by_espiritu"
android:textColor="@color/black"
android:textStyle="bold"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@+id/linearLayout"
app:layout_constraintTop_toTopOf="@+id/linearLayout" />
<TextView
android:id="@+id/date"
android:layout_width="@dimen/dimens_0dip"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/margin_equal"
android:layout_marginEnd="@dimen/margin_msixteen"
android:text="@string/sep_11_2020"
android:maxLength="10"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@+id/linearLayout"
app:layout_constraintTop_toBottomOf="@+id/endusername" />
<TextView
android:id="@+id/review"
android:layout_width="@dimen/dimens_0dip"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/margin_msixteen"
android:layout_marginTop="@dimen/margin_equal"
android:layout_marginEnd="@dimen/margin_msixteen"
android:layout_marginBottom="@dimen/margin_equal"
android:text="@string/the_course_is_good_in_a_nutshell_you_need_to_have_prerequisite_from_the_course_simple_android_app_using_java"
android:textStyle="bold"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/date" />
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.cardview.widget.CardView>
color for background : we make text color green
<color name="successGreen">#11A10C</color>
✅ Tags
Android Layout