Last active
August 4, 2018 07:26
-
-
Save baeyeongpyo/c9d9f6ab304068dbcc7ca657282e31d4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class AnkoUIMaker(val context: Context) { | |
| private val constraintlayoutID = R.id.ankoConstraintLayout | |
| fun UiMake(): View = | |
| context.constraintLayout { | |
| id = constraintlayoutID | |
| // 추가 | |
| textView("Anko Hello").lparams(wrapContent, wrapContent) { | |
| startToStart = constraintlayoutID | |
| endToEnd = constraintlayoutID | |
| topToTop = constraintlayoutID | |
| bottomToBottom = constraintlayoutID | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment