Fixed, thanks.the redirection of the Click Events for the Events Tab1Click to Tab5Click are still missing.
- V2.3
- Fix TabClick Event
Fixed, thanks.the redirection of the Click Events for the Events Tab1Click to Tab5Click are still missing.
Hi @mcqueccu and @Alberto Iglesias here is that animated bottom navigation. Try it!Can you implement reverse wave and animation like this example here https://cdn.dribbble.com/users/824356/videos/14191/mockup_3.mp4
If enable_middlebutton_astab = True Then
Dim tmp As Double = xpnl_underline.Left - totab.Left - 40dip/4
Else
Dim tmp As Double = xpnl_underline.Left - totab.Left - 40dip/2
End If
Private Sub Middle_Button_Click_Handler
If xui.SubExists(mCallBack, mEventName & "_MiddleButtonClick",0) Then
CallSub(mCallBack, mEventName & "_MiddleButtonClick")
End If
RippleEffect(PanelMiddlebutton, Ripple_Effect_Color, 250)
End Sub
'https://www.b4x.com/android/forum/threads/b4x-xui-simple-halo-animation.80267/#content
Private Sub RippleEffect (Parent As B4XView, Color As Int, Duration As Int)
Dim cvs As B4XCanvas
Dim p As B4XView = xui.CreatePanel("")
Dim InnerRadius As Int = Parent.Height * 1.30
If Parent.Width <> Parent.Height Then InnerRadius = Max(Parent.Width, Parent.Height) * 1.60
p.SetLayoutAnimated(0, 0, 0, InnerRadius, InnerRadius)
cvs.Initialize(p)
cvs.DrawCircle(cvs.TargetRect.CenterX, cvs.TargetRect.CenterY, cvs.TargetRect.Width / 2, Color, True, 0)
Dim bmp As B4XBitmap = cvs.CreateBitmap
p.RemoveViewFromParent
Dim iv As ImageView
iv.Initialize("")
Dim p As B4XView = iv
Dim Radius As Int = InnerRadius/2
Dim x As Int = Parent.Width/2
Dim y As Int = Parent.Height/2
p.SetBitmap(bmp)
Parent.AddView(p, x, y, 0, 0)
p.SetLayoutAnimated(Duration, x - Radius, y - Radius, Radius * 2, Radius * 2)
p.SetVisibleAnimated(Duration, False)
Sleep(Duration)
p.RemoveViewFromParent
End Sub
Public Sub setCurrentTab(tabnumber As Int)
If tabnumber = 1 Or tabnumber = 2 Or tabnumber = 3 Or tabnumber = 4 Or tabnumber = 5 Then
If current_tab <> tabnumber Then
current_tab = tabnumber
'extra code below:
Select tabnumber
Case 1
tab_1_Click
Case 2
tab_2_Click
Case 3
tab_3_Click
Case 4
tab_4_Click
Case 5
tab_5_Click
End Select
End If
Else
Log("Tab Number not in range")
End If
End Sub
ASBottomMenu1.setMiddleButtonSize(20dip,2dip)
I see it, the issue is in the Base_Resize Sub, i fix it.I tried to use setMiddleButtonSize but have no effect
Public Sub setCurrentTab(tabnumber As Int)
Select Case tabnumber
Case 1
tab_1_handler(True,250,150)
current_tab = tabnumber
Case 2
tab_2_handler(True,250,150)
current_tab = tabnumber
Case 3
tab_3_handler(True,250,150)
current_tab = tabnumber
Case 4
tab_4_handler(True,250,150)
current_tab = tabnumber
Case 5
tab_5_handler(True,250,150)
current_tab = tabnumber
Case Else
Log("Tab Number not in range")
End Select
End Sub
ist das beides nicht das gleiche?wie kann die Value Anzeige ausgeblendet werden?
- wie kann die Textanzeige aus/eingeblendet werden?
Was soll das für eine Frage sein?Was nützt mir die Aufzählung zahlreicher Funktionen, wenn ich sie nicht aurufen kann?
Unknown member: underlineanimation
Unknown member: textvisible
Unknown member: textonly
Cannot access private member: middlebuttonvisible
Unknown member: middlebuttonastab
Unknown member: middlebuttonicon
On B4A,B4I or B4J?Any clues as to why this may be?
I dont have any error, just one warning, that a variable is not used.Hi Alexander, any clues as to what the problem may be?
But you need it, this is the MenuASBottomMenu.bas