79547909

Date: 2025-04-01 06:58:02
Score: 0.5
Natty:
Report link

For this image enter image description here(the one with red left arrow) I used following approach,

   <RelativeLayout
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_below="@id/check"
            android:layout_alignParentStart="true"
            android:background="@drawable/circle_white_black_border"
            android:elevation="4dp">

            <ImageView
                android:id="@+id/prev_question"
                android:layout_width="48dp"
                android:layout_height="48dp"
                android:layout_centerInParent="true"
                android:contentDescription="@string/previous_question_text"
                android:src="@drawable/ic_baseline_navigate_before"
                android:tint="@color/app_title" />
        </RelativeLayout>

Since elevation doesn't work  well on image view, I added elevation to the relativelayout which worked good.
Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Gaurav Pawar