Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class SampleActivityUI : AnkoComponent<SampleActivity> {
- override fun createView(ui: AnkoContext<SampleActivity>): View = with(ui) {
- verticalLayout {
- radioButton {
- text = "単体ボタン1"
- }
- radioButton {
- text = "単体ボタン2"
- }.lparams {
- bottomMargin = dip(20)
- }
- radioGroup {
- radioButton {
- text = "グループボタン1"
- }
- radioButton {
- text = "グループボタン2"
- }
- }.lparams {
- bottomMargin = dip(20)
- }
- radioGroup {
- orientation = RadioGroup.HORIZONTAL
- radioButton {
- text = "グループボタン3"
- }
- radioButton {
- text = "グループボタン4"
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement