Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. class SampleActivityUI : AnkoComponent<SampleActivity> {
  2.  
  3. override fun createView(ui: AnkoContext<SampleActivity>): View = with(ui) {
  4. verticalLayout {
  5. radioButton {
  6. text = "単体ボタン1"
  7. }
  8. radioButton {
  9. text = "単体ボタン2"
  10. }.lparams {
  11. bottomMargin = dip(20)
  12. }
  13.  
  14. radioGroup {
  15. radioButton {
  16. text = "グループボタン1"
  17. }
  18. radioButton {
  19. text = "グループボタン2"
  20. }
  21. }.lparams {
  22. bottomMargin = dip(20)
  23. }
  24.  
  25. radioGroup {
  26. orientation = RadioGroup.HORIZONTAL
  27.  
  28. radioButton {
  29. text = "グループボタン3"
  30. }
  31. radioButton {
  32. text = "グループボタン4"
  33. }
  34. }
  35. }
  36. }
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement