Android Question Small switch

asales

Well-Known Member
Licensed User
Is possible to decrease the height of the B4xSwitch (right) to made it smaller, like the left image?

Thanks in advance for any tip.

switch4.jpg
 

Erel

Administrator
Staff member
Licensed User
It looks like the native switch view. You can add it with ViewsEx library.
 

asales

Well-Known Member
Licensed User
It looks like the native switch view. You can add it with ViewsEx library.
Yes. Is the native switch from ViewEx library.
But I want to change to B4xSwitch and made it smaller.
Is possible change the height/width of the B4xSwitch by code?
 

Erel

Administrator
Staff member
Licensed User
Is possible change the height/width of the B4xSwitch by code?
It is possible to change it however you like but you will need to modify the source code of B4XSwith (shouldn't be too difficult). Unzip XUI Views.b4xlib to find the code.
 
Top