Skip to content
This repository has been archived by the owner on Mar 27, 2022. It is now read-only.

Usage in Anko #29

Open
elton2048 opened this issue Jun 28, 2017 · 0 comments
Open

Usage in Anko #29

elton2048 opened this issue Jun 28, 2017 · 0 comments

Comments

@elton2048
Copy link

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)
    }
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant