0

I am to set transparent drawable image on backgrount of layout, it is working fine on Lollipop+ devices, But background does not appear on Pre-Lollipop devices. Here is my .xml code.

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:visibility="visible"
    android:layout_below="@id/toolbar"
    android:id="@+id/emptyWorkFlowImage">


    <ImageView
        android:layout_width="434dp"
        android:layout_height="210dp"
        android:src="@drawable/bg_empty_sequence_list"
        android:id="@+id/ivEmptyLayout"/>

</RelativeLayout>

Here is my transparent drawable image. enter image description here

Image has some text and one arrow..

Faisal Ahsan
  • 928
  • 1
  • 12
  • 22

1 Answers1

0

Try doing it programmatically.

relativeLayout.setBackgroundResource(R.drawable.ic_your_image);
Nayan
  • 367
  • 4
  • 18