<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="horizontal"> <LinearLayout android:id="@+id/im_red_star" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <ImageView android:id="@+id/im_red_star_icon" android:layout_width="match_parent" android:layout_height="match_parent" android:src="@drawable/im_star_red" /> </LinearLayout> <LinearLayout android:id="@+id/im_grey_star" android:layout_width="0dp" android:layout_height="match_parent" android:orientation="vertical"> <ImageView android:id="@+id/im_grey_star_icon" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_gravity="right" android:src="@drawable/im_star_grey" /> </LinearLayout> </LinearLayout>