I'd like to know how MESSENGER\ACTIVE button configuration is achieved...
And if switching fragments on button click will work with this configuration..?
I'd like to know how MESSENGER\ACTIVE button configuration is achieved...
And if switching fragments on button click will work with this configuration..?
You can do it by customizing a RadioGroup with two RadioButton as child.
Here is some hints-
drawable shape of type rectangle in xml with corner and stroke. Use it for the RadioGroup background.selector using the similar shapes (for color as per selected and un-selected one)for two RadioButon and set them as individual background.color drawable in xml for selected and un-selected states and set its as textColor to the RadioButtonandroid:buttonattribute of RadioButton to null.
Here is an example which i have posted as answer to an SO question - How to custom switch button?