Bug? Layout Bug

BarryW

Active Member
Licensed User
Longtime User
I have a sample app here which has two activity. The first activity has one button with name Button1 and the second activity has two buttons with name Button1 and Button2. On create event on both page, I used a helper function to change their background with statelistdrawable. The problem is when second page is loaded and then back to first page then button on first page inherits the design or background of button from second page with same name..

I add the screenshot from first page to second page then back to first page.
I also add the sample program re-created from the bug i was encountered...
 

Attachments

  • 83598669_804560273346194_9012398450091753472_n.jpg
    12.7 KB · Views: 297
  • 83363713_292319181731133_2323136488872607744_n.jpg
    14.1 KB · Views: 312
  • 83573054_778464209329823_1388633325605748736_n.jpg
    11.3 KB · Views: 302
  • 2020_01_30.zip
    448 KB · Views: 333
Cookies are required to use this site. You must accept them to continue using the site. Learn more…