I try to make buttons like those on the desk of android:
This button are similar to the uisegmentedcontrol for Iphone. I don't find a easy way to do this in Android.
For the moment, I use the Button explain here:
http://blog.bookworm.at/2010/10/segmented-controls-in-android.html
But the result seems not so good compared to the desk button. There is no round corner, alpha, etc...
Is there an easy way to use the same button than the desk button?
Segmented Control Tab is the same as Tab in Android but without Swipe to change Tab feature. It is used as a navigator or to show multiple screens on a single screen. There are 4 Types of Segmented Control Tab that we are going to cover:
Use a segmented control to provide closely related choices that affect an object, state, or view. For example, a segmented control can help people switch between views in a toolbar. Avoid using a segmented control to enable actions, such as adding, removing, or editing content.
This 4 Segmented Control Tab includes Simple Segmented Control, Additional badges in Simple Segmented Control, Simple Segmented Control with multi Select, Simple Segmented with Custom Styling. Getting started with React Native will help you to know more about the way you can make a React Native project.
The toolbar of a Keynote window also uses a segmented control to let people show and hide various editing panes within the main window area. Use a segmented control to provide closely related choices that affect an object, state, or view.
You could try implementing the code used by this brilliant developer:
https://github.com/makeramen/android-segmentedradiobutton
Helped me a great deal!!!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With