Android: textColor of disabled button in selector not showing?

前端 未结 5 1410
梦毁少年i
梦毁少年i 2020-11-30 21:24

I am trying to make a button with a selector my button can have the following states:

  • Enabled/Disabled
  • Pressed/Not Pressed

According to

5条回答
  •  粉色の甜心
    2020-11-30 21:37

    1.Create a color folder in /res/ folder and in color folder create on xml:

    text_color_selector.xml

    
    
      
     
     
    
    

    2.Now Create a xml layout:-

     

提交回复
热议问题