Android Question b4xdrawer sliding drawer And ColorDrawable

Hi
I Use This b4xdrawer sliding drawer
Worked! But When I Use this Cod:
B4X:
    Dim btnThemeWhiteClicked As ColorDrawable
    Dim sldWhite As StateListDrawable
    sldWhite.Initialize
    btnThemeWhiteClicked.Initialize2(Colors.ARGB(85,255,204,76),5000dip,8dip,Colors.RGB(255,247,245))
    sldWhite.AddState (sldWhite.State_Pressed ,btnThemeWhiteClicked)
    Btn_MenuRight.Background = sldWhite
Not Work! Why?
 

DonManfred

Expert
Licensed User
Longtime User
How could we know? You did not post any error you got. You even did not uploaded a small project showing the problem. Hard to help for anyone.
 
Upvote 0
Top