I am creating an Android application. I am new to android. I want to create a label like in the image below. Here is the below code that I have tried. I have labels over the images. Any help will be appreciated. Thanks
<FrameLayout
android:layout_weight="1"
android:layout_gravity="center"
android:layout_width="80dp"
android:layout_height="80dp"
android:id="@+id/fl_bg">
<ImageView
android:layout_gravity="center"
android:id="@+id/iv_avatar"
android:layout_width="80dp"
android:layout_height="80dp"
android:contentDescription="@string/app_name"
android:src="@drawable/jouer"
android:scaleType="fitCenter"/>
<LinearLayout
android:gravity="center"
android:id="@+id/ll_winner_label"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
android:layout_marginTop="20dp"
android:id="@+id/tv_rank"
android:text="1"
android:layout_gravity="top"
android:rotation="120"
android:background="@color/label_center"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
<TextView
android:layout_marginTop="20dp"
android:id="@+id/tv_earned_amount"
android:text="5$"
android:rotation="120"
android:background="@color/label_center"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</LinearLayout>
</FrameLayout>