Java Question Somebody can create UISegmentedControl for B4A?

Alberto Iglesias

Well-Known Member
Licensed User
Longtime User
One good idea for B4A developers is create the follow Library/Class like the UISegmentedControl in iOS

Look in this link, have a complete source code in android
https://github.com/vinc3m1/android-segmentedradiobutton


segmentedradio.png

Is just convert to B4A library.....

Someone gets excited in doing it?

Another example to do the library

4f6800756803fa3349000000_1.png
 

billyrudi

Active Member
Licensed User
Longtime User
hi Alberto
i have need to change the logic of colors. the color of the pushed button must inverted regarding your logic.
can you make an attribute to set it?
es:
AbbSuiM.Initialize ( Me,"pnlSuiniAM" ,Colors.red,Colors.red)
AbbSuiM.addButton( "S","Spento",Colors.White,16)
AbbSuiM.addButton("A","Acceso",Colors.White,16)
AbbSuiM.addButton("I","Timer",Colors.White,16)
AbbSuiM.SplitColor = Colors.Gray
AbbSuiM.SplitWidth = 1
AbbSuiM.Build( 280dip,40dip)
pnlSuiniAM.AddView( AbbSuiM.asView ,170dip,10dip,280dip,40dip)
AbbSuiM.SetPressedByTag("A")

if i have tree bottons the red one must by the selected button and the grayed the non selected botton.
tank you Paolo
 
Top