3 3fazeac Member Licensed User Longtime User Apr 13, 2016 #1 I have the simplest Progress Bar implemented, namely: Dim PBar As ProgressBar PBar.Initialize("") Activity.AddView(PBar,10%x,350dip,80%x,50dip) PBar.Height = 50dip The positioning and horizontal dimension are correct but the height of the gray progress bar is more like 3dip than 50dip. It makes no difference what I set the PBar.Height to. Nor does changing the y value (last argument) in the AddView call make any difference. Does anyone know what's going on? I must be doing something wrong Attachments PBarExample.zip PBarExample.zip 323.3 KB · Views: 423 Screenshot_2016-04-12-16-26-50.png 29.9 KB · Views: 488
I have the simplest Progress Bar implemented, namely: Dim PBar As ProgressBar PBar.Initialize("") Activity.AddView(PBar,10%x,350dip,80%x,50dip) PBar.Height = 50dip The positioning and horizontal dimension are correct but the height of the gray progress bar is more like 3dip than 50dip. It makes no difference what I set the PBar.Height to. Nor does changing the y value (last argument) in the AddView call make any difference. Does anyone know what's going on? I must be doing something wrong
DonManfred Expert Licensed User Longtime User Apr 13, 2016 #2 This is how the progresbar looks in newer android version (holo). Define a custom style and define a new height for the progressbar See http://stackoverflow.com/questions/13509989/how-to-set-the-android-progressbars-height Upvote 0
This is how the progresbar looks in newer android version (holo). Define a custom style and define a new height for the progressbar See http://stackoverflow.com/questions/13509989/how-to-set-the-android-progressbars-height
Erel B4X founder Staff member Licensed User Longtime User Apr 13, 2016 #3 This is how the progress bar looks in the holo and material themes. You can change its background if you want to change its height: https://www.b4x.com/android/forum/threads/12923/#content Upvote 0
This is how the progress bar looks in the holo and material themes. You can change its background if you want to change its height: https://www.b4x.com/android/forum/threads/12923/#content