Pooya1 Active Member Licensed User Mar 9, 2018 #1 Hi I use below code for change colordrawable of Edittext Code: Copy Private normal As ColorDrawable normal.Initialize2(Colors.Transparent,4dip,1dip,Colors.Gray) txtaddress.Background = normal But when i click one of Edittexts,border destroy look like attachment picture What's happen? Note: As long as I did not click on any Edittext,this problems dont exist Attachments photo_2018-03-09_09-28-52.jpg 48 KB · Views: 444 photo_2018-03-09_09-28-52.jpg 47.5 KB · Views: 422 photo_2018-03-09_09-32-42.jpg 55.7 KB · Views: 403
Hi I use below code for change colordrawable of Edittext Code: Copy Private normal As ColorDrawable normal.Initialize2(Colors.Transparent,4dip,1dip,Colors.Gray) txtaddress.Background = normal But when i click one of Edittexts,border destroy look like attachment picture What's happen? Note: As long as I did not click on any Edittext,this problems dont exist
Erel B4X founder Staff member Licensed User Longtime User Mar 9, 2018 #2 Make sure not to reuse the same ColorDrawable instance with multiple views. Upvote 0
Pooya1 Active Member Licensed User Mar 9, 2018 #3 Erel said: Make sure not to reuse the same ColorDrawable instance with multiple views. Click to expand... Ok please let me to try it Upvote 0
Erel said: Make sure not to reuse the same ColorDrawable instance with multiple views. Click to expand... Ok please let me to try it