16th Jan 2014, 07:16 AM | #1 |
Website Design Company Join Date: 2013 Location: Chennai
Posts: 20
Thanks: 1
Thanked 0 Times in 0 Posts
|
My imageview is drawing the new image over the old image: My image view: <ImageView [COLOR=blue !important][COLOR=blue !important]android[/COLOR][/COLOR]:id="@+id/next_pat" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerVertical="true" android:layout_alignParentRight="true" android:layout_marginRight="20dp" android:background="@drawable/next_btn" /> For certain reason, I changed the image resource by using save.setImageResource(R.drawable.save_btn); but the new image is drawing over the old image. I have used Fragment not Activity. How to clears the old image and set the new image? I also tried the below code, save.setImageResource(o); save.setImageResource(R.drawable.save_btn); but it is not working. |
| |
Bookmarks |
Tags |
drawing, image, imageview |
| |