Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

segmented controls type in Android app

I try to make buttons like those on the desk of android:

enter image description here

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?

like image 278
eclosiondroid Avatar asked Jun 02 '11 07:06

eclosiondroid


People also ask

What is segmented control tab in Android?

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:

What is an example of a segmented control?

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.

What is 4 segmented control tab in React Native?

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.

What is a segmented control in keynote?

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.


1 Answers

You could try implementing the code used by this brilliant developer:

https://github.com/makeramen/android-segmentedradiobutton

Helped me a great deal!!!

like image 95
user788511 Avatar answered Oct 04 '22 07:10

user788511