E epneeh Member Licensed User Longtime User Mar 29, 2020 #1 Hello, how to center a TabStripViewPager text tab then width equally to screen from this : to this one : my code : B4X: Copy Sub Activity_Create(FirstTime As Boolean) Activity.LoadLayout("main") tabstrip1.LoadLayout("1","Absensi") tabstrip1.LoadLayout("2","Peta Pegawai") Activity.AddMenuItem("Keluar","Keluar") Activity.AddMenuItem("About","About") End Sub Any help appreciate.
Hello, how to center a TabStripViewPager text tab then width equally to screen from this : to this one : my code : B4X: Copy Sub Activity_Create(FirstTime As Boolean) Activity.LoadLayout("main") tabstrip1.LoadLayout("1","Absensi") tabstrip1.LoadLayout("2","Peta Pegawai") Activity.AddMenuItem("Keluar","Keluar") Activity.AddMenuItem("About","About") End Sub Any help appreciate.
Erel B4X founder Staff member Licensed User Longtime User Mar 29, 2020 #2 is there such a view in b4x? hi, i would like to implement something like this with b4a. is there something like this i could use ? i know tabstrip but tabstrip will show all tabs in 1 page i would like to have 20-30 tabs (for each month) and move them like in the video where the selected tab is always in the center is... www.b4x.com You can find GetAllTabLabels here: https://www.b4x.com/android/forum/t...ger-better-viewpager.63975/page-2#post-408977 It depends on JavaObject and Reflection. Upvote 0
is there such a view in b4x? hi, i would like to implement something like this with b4a. is there something like this i could use ? i know tabstrip but tabstrip will show all tabs in 1 page i would like to have 20-30 tabs (for each month) and move them like in the video where the selected tab is always in the center is... www.b4x.com You can find GetAllTabLabels here: https://www.b4x.com/android/forum/t...ger-better-viewpager.63975/page-2#post-408977 It depends on JavaObject and Reflection.
E epneeh Member Licensed User Longtime User Mar 31, 2020 #3 Erel said: is there such a view in b4x? hi, i would like to implement something like this with b4a. is there something like this i could use ? i know tabstrip but tabstrip will show all tabs in 1 page i would like to have 20-30 tabs (for each month) and move them like in the video where the selected tab is always in the center is... www.b4x.com You can find GetAllTabLabels here: https://www.b4x.com/android/forum/t...ger-better-viewpager.63975/page-2#post-408977 It depends on JavaObject and Reflection. Click to expand... Hi erel thanks for your fast reply yes indeed it depends on GetAllTabLabels function and JavaObject also Reflection library here what i do B4X: Copy Activity.LoadLayout("main") tabstrip1.LoadLayout("1","Absensi") tabstrip1.LoadLayout("2","Peta Pegawai") For Each lbl As Label In GetAllTabLabels(tabstrip1) lbl.TextSize=14 lbl.Width=50%x Next it work like charm now, thanks again Upvote 0
Erel said: is there such a view in b4x? hi, i would like to implement something like this with b4a. is there something like this i could use ? i know tabstrip but tabstrip will show all tabs in 1 page i would like to have 20-30 tabs (for each month) and move them like in the video where the selected tab is always in the center is... www.b4x.com You can find GetAllTabLabels here: https://www.b4x.com/android/forum/t...ger-better-viewpager.63975/page-2#post-408977 It depends on JavaObject and Reflection. Click to expand... Hi erel thanks for your fast reply yes indeed it depends on GetAllTabLabels function and JavaObject also Reflection library here what i do B4X: Copy Activity.LoadLayout("main") tabstrip1.LoadLayout("1","Absensi") tabstrip1.LoadLayout("2","Peta Pegawai") For Each lbl As Label In GetAllTabLabels(tabstrip1) lbl.TextSize=14 lbl.Width=50%x Next it work like charm now, thanks again