desof Well-Known Member Licensed User Longtime User Aug 10, 2018 #1 Hi, I'm working on a project that uses TabStrip based on this example https://www.b4x.com/android/forum/threads/tabstripviewpager-better-viewpager.63975/#content And I do not know how to get a uniform distribution on all devices! Is it possible to center or distribute the 3 Tabs to the full width? I can not find any property to do it ADjunto my example so that it is noticed as it is aligned to the left and not to the center. Attachments tabStripAlign.zip 11.3 KB · Views: 154
Hi, I'm working on a project that uses TabStrip based on this example https://www.b4x.com/android/forum/threads/tabstripviewpager-better-viewpager.63975/#content And I do not know how to get a uniform distribution on all devices! Is it possible to center or distribute the 3 Tabs to the full width? I can not find any property to do it ADjunto my example so that it is noticed as it is aligned to the left and not to the center.
M Mahares Expert Licensed User Longtime User Aug 11, 2018 #2 desof said: Is it possible to center or distribute the 3 Tabs to the full width? Click to expand... Just add: lbl.Width=33%x as shown in the below code: B4X: For Each lbl As Label In GetAllTabLabels(TabStrip1) lbl.Typeface = Typeface.MATERIALICONS lbl.TextSize=12 lbl.Width=33%x 'Added by Mahares 8/10/18 Next Upvote 0
desof said: Is it possible to center or distribute the 3 Tabs to the full width? Click to expand... Just add: lbl.Width=33%x as shown in the below code: B4X: For Each lbl As Label In GetAllTabLabels(TabStrip1) lbl.Typeface = Typeface.MATERIALICONS lbl.TextSize=12 lbl.Width=33%x 'Added by Mahares 8/10/18 Next