Aug 19, 2016 Replies: 58 This is a wrap for this Github project. Requirements: - B4A 6+ - Your App must be ready for AppCompat 3.20+ - DesignSupport lib 2.0+ SpaceNavigation Author: DonManfred (wrapper) Version: 1 SpaceItem Methods: Initialize (itemName As String, Icon As String) IsInitialized As Boolean Properties: ItemIcon As Int ItemName As String SpaceNavigationView Events: onCentreButtonClick ( As ) onItemClick (index as Int As , text As String) Fields: ba As BA Methods: BringToFront DesignerCreateView (base As PanelWrapper, lw As LabelWrapper, props As Map) Initialize (EventName As String) Invalidate Invalidate2 (arg0 As Rect) Invalidate3 (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int) IsInitialized As Boolean RemoveView RequestFocus As Boolean SendToBack SetBackgroundImage (arg0 As Bitmap) SetColorAnimated (arg0 As Int, arg1 As Int, arg2 As Int) SetLayout (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int) SetLayoutAnimated (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int, arg4 As Int) SetVisibleAnimated (arg0 As Int, arg1 As Boolean) addSpaceItem (spaceItem As SpaceItem) Add space item to navigation spaceItem: item to add changeBadgeTextAtIndex (badgeIndex As Int, badgeText As Int) Change badge text at index badgeIndex: target index badgeText: badge count text to change changeCurrentItem (indexToChange As Int) Change current selected item to given index indexToChange: given index hideAllBadges Hiding all available badges hideBudgeAtIndex (index As Int) Hide badge at index index: badge index initWithSaveInstanceState (savedInstanceState As Bundle) Initialization with savedInstanceState to save current selected position and current budges savedInstanceState: bundle to saveInstance onSaveInstanceState (outState As Bundle) Save budges and current position outState: bundle to saveInstance showBadgeAtIndex (itemIndex As Int, badgeText As Int, badgeColor As Int) Show badge at index itemIndex: index badgeText: badge count text showIconOnly Show only icon in item showTextOnly Show only text in item Properties: ActiveSpaceItemColor As Int [write only] Set active item text color Background As Drawable CentreButtonColor As Int [write only] Set centre circle button background color CentreButtonIcon As String [write only] Set centre button icon Color As Int [write only] Enabled As Boolean Font As Typeface [write only] Set custom font for space item textView Height As Int InActiveSpaceItemColor As Int [write only] Set inactive item text color Left As Int Parent As Object [read only] SpaceBackgroundColor As Int [write only] Set main background color SpaceItemIconSize As Int [write only] Set item icon size SpaceItemIconSizeInOnlyIconMode As Int [write only] Set item icon size if showIconOnly() called SpaceItemTextSize As Int [write only] Set item text size Tag As Object Top As Int Visible As Boolean Width As Int Attachments SpaceNavigationEx.zip SpaceNavigationEx.zip 13.6 KB · Views: 1,174 SpaceNavigationV1.0.zip SpaceNavigationV1.0.zip 40.2 KB · Views: 1,061 SpaceNavigationV1.3.zip SpaceNavigationV1.3.zip 45.1 KB · Views: 1,286 Last edited: Sep 4, 2016 Click to expand...
This is a wrap for this Github project. Requirements: - B4A 6+ - Your App must be ready for AppCompat 3.20+ - DesignSupport lib 2.0+ SpaceNavigation Author: DonManfred (wrapper) Version: 1 SpaceItem Methods: Initialize (itemName As String, Icon As String) IsInitialized As Boolean Properties: ItemIcon As Int ItemName As String SpaceNavigationView Events: onCentreButtonClick ( As ) onItemClick (index as Int As , text As String) Fields: ba As BA Methods: BringToFront DesignerCreateView (base As PanelWrapper, lw As LabelWrapper, props As Map) Initialize (EventName As String) Invalidate Invalidate2 (arg0 As Rect) Invalidate3 (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int) IsInitialized As Boolean RemoveView RequestFocus As Boolean SendToBack SetBackgroundImage (arg0 As Bitmap) SetColorAnimated (arg0 As Int, arg1 As Int, arg2 As Int) SetLayout (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int) SetLayoutAnimated (arg0 As Int, arg1 As Int, arg2 As Int, arg3 As Int, arg4 As Int) SetVisibleAnimated (arg0 As Int, arg1 As Boolean) addSpaceItem (spaceItem As SpaceItem) Add space item to navigation spaceItem: item to add changeBadgeTextAtIndex (badgeIndex As Int, badgeText As Int) Change badge text at index badgeIndex: target index badgeText: badge count text to change changeCurrentItem (indexToChange As Int) Change current selected item to given index indexToChange: given index hideAllBadges Hiding all available badges hideBudgeAtIndex (index As Int) Hide badge at index index: badge index initWithSaveInstanceState (savedInstanceState As Bundle) Initialization with savedInstanceState to save current selected position and current budges savedInstanceState: bundle to saveInstance onSaveInstanceState (outState As Bundle) Save budges and current position outState: bundle to saveInstance showBadgeAtIndex (itemIndex As Int, badgeText As Int, badgeColor As Int) Show badge at index itemIndex: index badgeText: badge count text showIconOnly Show only icon in item showTextOnly Show only text in item Properties: ActiveSpaceItemColor As Int [write only] Set active item text color Background As Drawable CentreButtonColor As Int [write only] Set centre circle button background color CentreButtonIcon As String [write only] Set centre button icon Color As Int [write only] Enabled As Boolean Font As Typeface [write only] Set custom font for space item textView Height As Int InActiveSpaceItemColor As Int [write only] Set inactive item text color Left As Int Parent As Object [read only] SpaceBackgroundColor As Int [write only] Set main background color SpaceItemIconSize As Int [write only] Set item icon size SpaceItemIconSizeInOnlyIconMode As Int [write only] Set item icon size if showIconOnly() called SpaceItemTextSize As Int [write only] Set item text size Tag As Object Top As Int Visible As Boolean Width As Int
I inakigarm Well-Known Member Licensed User Longtime User Nov 14, 2016 #41 Seems a bug from original library https://github.com/armcha/Space-Navigation-View/issues/19; maybe calling with callsubdelayed or callsubplus ?
Seems a bug from original library https://github.com/armcha/Space-Navigation-View/issues/19; maybe calling with callsubdelayed or callsubplus ?
MarcoRome Expert Licensed User Longtime User Nov 14, 2016 #42 inakigarm said: Seems a bug from original library https://github.com/armcha/Space-Navigation-View/issues/19; maybe calling with callsubdelayed or callsubplus ? Click to expand... And yes is possible call this with CallSubdelay ( work already try )
inakigarm said: Seems a bug from original library https://github.com/armcha/Space-Navigation-View/issues/19; maybe calling with callsubdelayed or callsubplus ? Click to expand... And yes is possible call this with CallSubdelay ( work already try )
DonManfred Expert Licensed User Longtime User Nov 14, 2016 #43 MarcoRome said: work but if you insert this in create event ( i want see this when i open the app ) Click to expand... Call Code: CallSubDelayed(Me,"SpaceNavigation_onCentreButtonClick") at the end of activity_create
MarcoRome said: work but if you insert this in create event ( i want see this when i open the app ) Click to expand... Call Code: CallSubDelayed(Me,"SpaceNavigation_onCentreButtonClick") at the end of activity_create
MarcoRome Expert Licensed User Longtime User Dec 4, 2016 #44 Hi Great Don . Is possible hide the central Button ? Thank you Marco
I inakigarm Well-Known Member Licensed User Longtime User Dec 4, 2016 #46 Have you Seen this lib ? Bottomnavigation: https://www.b4x.com/android/forum/threads/65148/#content
S susu Well-Known Member Licensed User Longtime User Dec 10, 2016 #47 It's really nice, thank you @DonManfred I just wonder how to use SpaceNavigation by code, I'm not familiar with using layout. Could you please help?
It's really nice, thank you @DonManfred I just wonder how to use SpaceNavigation by code, I'm not familiar with using layout. Could you please help?
MarcoRome Expert Licensed User Longtime User Dec 10, 2016 #48 susu said: It's really nice, thank you @DonManfred I just wonder how to use SpaceNavigation by code, I'm not familiar with using layout. Could you please help? Click to expand... Hi Susu In post #1 you have a example
susu said: It's really nice, thank you @DonManfred I just wonder how to use SpaceNavigation by code, I'm not familiar with using layout. Could you please help? Click to expand... Hi Susu In post #1 you have a example
S susu Well-Known Member Licensed User Longtime User Dec 10, 2016 #49 MarcoRome said: Hi Susu In post #1 you have a example Click to expand... Example code load layout into Activity. I need some thing like: SpaceNavigationView1.Initialize("SpaceNavigationView1") Activity.AddView(SpaceNavigationView1, 0, 100%x-60dip, 100%y, 60dip)
MarcoRome said: Hi Susu In post #1 you have a example Click to expand... Example code load layout into Activity. I need some thing like: SpaceNavigationView1.Initialize("SpaceNavigationView1") Activity.AddView(SpaceNavigationView1, 0, 100%x-60dip, 100%y, 60dip)
MhdBoy Member Licensed User Longtime User Apr 7, 2017 #50 thank you @DonManfred , it's nice does Vector icons work in android 4? if no how we can fix it?
DonManfred Expert Licensed User Longtime User Apr 7, 2017 #51 MhdBoy said: does Vector icons work in android 4? Click to expand... No. It is a feature of Android 6.
MhdBoy said: does Vector icons work in android 4? Click to expand... No. It is a feature of Android 6.
MhdBoy Member Licensed User Longtime User Apr 8, 2017 #52 DonManfred said: No. It is a feature of Android 6. Click to expand... how we can fix it and show our icons in android 4 or 3 ?
DonManfred said: No. It is a feature of Android 6. Click to expand... how we can fix it and show our icons in android 4 or 3 ?
DonManfred Expert Licensed User Longtime User Apr 9, 2017 #53 MhdBoy said: how we can fix it and show our icons in android 4 or 3 ? Click to expand... DONT use Vector Drawables. Use normal Images/Drawables. I dont know how to show them on Android 4 or 3. My device with the lowest Android version has Android 5. I dont care about 4 or 3.
MhdBoy said: how we can fix it and show our icons in android 4 or 3 ? Click to expand... DONT use Vector Drawables. Use normal Images/Drawables. I dont know how to show them on Android 4 or 3. My device with the lowest Android version has Android 5. I dont care about 4 or 3.
S sigster Active Member Licensed User Longtime User May 27, 2017 #54 How can I change SpaceNavigationView size
DonManfred Expert Licensed User Longtime User May 28, 2017 #55 sigster said: How can I change SpaceNavigationView size Click to expand... you cant
S syerif Active Member Licensed User Longtime User Mar 31, 2020 #56 can not change SpaceNavigationView color, how to change it?
DonManfred Expert Licensed User Longtime User Mar 31, 2020 #57 I don´t know if it is possible at all. The library is old, i do not have the source anymore. I suggest to maybe better not to use it
I don´t know if it is possible at all. The library is old, i do not have the source anymore. I suggest to maybe better not to use it
Alexander Stolte Expert Licensed User Longtime User Apr 1, 2020 #58 syerif said: can not change SpaceNavigationView color, how to change it? Click to expand... You can try to use the AS Bottom Menu 2. The view was inspired by this lib.
syerif said: can not change SpaceNavigationView color, how to change it? Click to expand... You can try to use the AS Bottom Menu 2. The view was inspired by this lib.
S syerif Active Member Licensed User Longtime User Apr 1, 2020 #59 Alexander Stolte said: You can try to use the AS Bottom Menu 2. The view was inspired by this lib. Click to expand... thanks for suggestion
Alexander Stolte said: You can try to use the AS Bottom Menu 2. The view was inspired by this lib. Click to expand... thanks for suggestion