Android Question Problem in AHNavigationDrawer

devmobile

Active Member
Licensed User
Hello
I use this library in my project
I use example exist in
https://www.b4x.com/android/forum/t...ative-google-navigation-drawer.31461/#content

I have problem
When i use it in project (add panel to my Layout and use it in NavigationDrawer)
All view except Panel of NavigationDrawer is disable and i cannot click on it.
My code is :
B4X:
Private lsheader As ListView
Private NavDrawer As AHNavigationDrawer
   
NavDrawer.Initialize2("Drawer", pContent, 85%x,NavDrawer.GRAVITY_LEFT)
   
NavDrawer.SetEdgeSize(NavDrawer.GRAVITY_START, NavDrawer.GetEdgeSize(NavDrawer.GRAVITY_START) * 3)
   
Dim xml As XmlLayoutBuilder
NavDrawer.ShadowDrawable = xml.GetDrawable("drawer_shadow")
NavDrawer.StatusBarColor = Colors.Red

sd.Initialize(xml.GetDrawable("ic_drawer"))
imgLogo.Initialize("")
lsheader.Initialize("lsheader")
   
'We add the mListView to our NavigationPanel
NavDrawer.NavigationPanel.AddView(imgLogo, 0, 0, 85%x,230dip)
NavDrawer.NavigationPanel.AddView(lsheader, 0, imgLogo.Height,85%x, pContent.Height-imgLogo.Height)
NavDrawer.NavigationPanel.Color = Colors.Blue
 

DonManfred

Expert
Licensed User
Longtime User
I suggest to use AppCompat and the (4 years newer) Navdrawer inside it instead of the old Drawer-Lib.
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
my project is big and it is hard to change it
Your project will raise in the future. Switching later will make it MORE complicated than now.

At the end (over a long time term) you need to switch to material design because the old layout may die /removed from android.
 
Upvote 0

devmobile

Active Member
Licensed User
Your project will raise in the future. Switching later will make it MORE complicated than now.

At the end (over a long time term) you need to switch to material design because the old layout may die /removed from android.
Yes it is good justifiable.
Ok what is material drawer library name?
 
Upvote 0
Top