I have a textview which holds an image and some text.
programmatically i have added the drawable image to the left side of text view
txtIDFav.setCompound
it is not possible to set image in background of text view instead of this you can set your drawable on textview like this
android:drawableRight="@drawable/ic_launcher"
"or"
android:drawableleft="@drawable/ic_launcher"
"or"
android:drawableBottom="@drawable/ic_launcher"
only for your problem's solution you can use texview inside the framelayout in this way