Android Question Ah Navigation drawer shadow remove

GudEvil

Member
Licensed User
Longtime User
I got to remove navigation drawer shadow removed or make shadow white so my main page looks as it is

I hav listview added to nav drawer..like menu options.

B4X:
    NavDrawer.Initialize("Drawer", pContent, 200dip)
       NavDrawer.SetEdgeSize(NavDrawer.GRAVITY_START, NavDrawer.GetEdgeSize(NavDrawer.GRAVITY_START) * 3)
   NavDrawer.ShadowDrawable = GetNPDrawable("drawer_shadow")

'    Dim cd2 As ColorDrawable
 '   cd2.Initialize(Colors.White,0)
'    NavDrawer.SetShadowDrawable(0,cd2)
'    NavDrawer.ShadowDrawable=cd2


what is gravity atribute in setshadowdrawable method
 

GudEvil

Member
Licensed User
Longtime User
Solved ...found a solution
if any one neeeded
B4X:
Sub SetScrimColor(Nav As AHNavigationDrawer, Color As Int)
    Dim r As Reflector
    r.Target = Nav
    r.Target = r.GetField("mNavDrawer")
    r.RunMethod4("setScrimColor", Array As Object(Color), Array As String("java.lang.int"))  
End Sub
B4X:
    SetScrimColor1(NavDrawer,Colors.Transparent)
 
Upvote 0
Top