Android Kitkat 4.4.2 ImageView setBackgroundResource not working? -
today came through unusual problem imageview.setbackgroundresource() not working in android kitkat 4.4.2, working fine in other versions. how using it:
imageview.setbackgroundresource(r.drawable.imageview_border);
this drawable:
<?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" > <stroke android:width="6dip" android:color="@color/brown" /> <padding android:bottom="6dip" android:left="6dip" android:right="6dip" android:top="6dip" /> </shape>
i have searched lot did not able solve problem. don't know whether else facing problem in 4.4.2 except me or not. please help me.
android imageview background-image
No comments:
Post a Comment