I defined a Drawable
with a stroke but the stroke does not appear on the UI.
<ImageView
android:id="@+id/otherSecurityLaneImageView"
android:layout_width="130dp"
android:layout_height="52dp"
android:layout_marginStart="10dp"
android:padding="10dp"
android:background="@drawable/ll_rounded_corners_6dp"
android:backgroundTint="@color/white"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:src="@drawable/poi_icon_security_lane_clear" />
Here's how @drawable/ll_rounded_corners_6dp
is defined:
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle">
<stroke android:width="20dp" android:color="@color/ll_red" />
<corners android:radius="6dp" />
</shape>
I expected to see a fat red border around the ImageView
in the Android Studio design view but none appears.