RadioRealButton icon indicating copy to clipboard operation
RadioRealButton copied to clipboard

Usage in Anko

Open elton2048 opened this issue 7 years ago • 0 comments

It seems this library needs further configuration in order to perform normally when it is used in Anko code. screenshot_1498643965

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)
    }
}

elton2048 avatar Jun 28 '17 10:06 elton2048