RadioRealButton
RadioRealButton copied to clipboard
Usage in Anko
It seems this library needs further configuration in order to perform normally when it is used in Anko code.
The screenshot shows two radio group under the "Sex" column. The above one is created by using XML layout and the one below is created through Anko. The divider is missing in this case. Also there is no rippling effect when click the radio button. (Not sure if not setting ripple will affect it or not.)
Here is the Anko part for the radio button
radioRealButtonGroup {
dividerColor = Color.BLUE
dividerSize = 200
dividerBackgroundColor = Color.BLUE
selectorSize = 200
selectorColor = Color.BLUE
radius = 200f
customRadioButton {
text = resources.getString(R.string.basic_info_male)
}
customRadioButton {
text = resources.getString(R.string.basic_info_female)
}
}