Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 16th Jan 2014, 07:16 AM   #1
Website Design Company
 
Katypeterson's Avatar
 
Join Date: 2013
Location: Chennai
Posts: 20
Thanks: 1
Thanked 0 Times in 0 Posts
Default
My imageview is drawing the new image over the old image:
Share on: 
fb share twitter share gplus share more share

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.

Katypeterson is offline  
Closed Thread


Bookmarks

Tags
drawing, image, imageview


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 04:53 PM.