Added comments.
This commit is contained in:
parent
469db3f463
commit
5113edc458
1 changed files with 4 additions and 1 deletions
|
@ -67,7 +67,7 @@ class ProgrammingActivity : AppCompatActivity(), AnkoLogger {
|
||||||
val fields = arrayListOf<EditText>()
|
val fields = arrayListOf<EditText>()
|
||||||
|
|
||||||
coordinatorLayout {
|
coordinatorLayout {
|
||||||
|
// option title
|
||||||
autofitTextView {
|
autofitTextView {
|
||||||
padding = dip(20)
|
padding = dip(20)
|
||||||
text = option.title
|
text = option.title
|
||||||
|
@ -87,6 +87,7 @@ class ProgrammingActivity : AppCompatActivity(), AnkoLogger {
|
||||||
verticalLayout {
|
verticalLayout {
|
||||||
lparams(width = matchParent, height = wrapContent)
|
lparams(width = matchParent, height = wrapContent)
|
||||||
|
|
||||||
|
// fields
|
||||||
val it = option.fields.iterator()
|
val it = option.fields.iterator()
|
||||||
while (it.hasNext()) {
|
while (it.hasNext()) {
|
||||||
val field = it.next()
|
val field = it.next()
|
||||||
|
@ -149,6 +150,7 @@ class ProgrammingActivity : AppCompatActivity(), AnkoLogger {
|
||||||
}
|
}
|
||||||
}.lparams(width = matchParent, height = matchParent)
|
}.lparams(width = matchParent, height = matchParent)
|
||||||
|
|
||||||
|
// dialpad FAB
|
||||||
if (!option.nosteps) {
|
if (!option.nosteps) {
|
||||||
floatingActionButton {
|
floatingActionButton {
|
||||||
imageResource = R.drawable.ic_menu_dialpad_lt
|
imageResource = R.drawable.ic_menu_dialpad_lt
|
||||||
|
@ -199,6 +201,7 @@ class ProgrammingActivity : AppCompatActivity(), AnkoLogger {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// call FAB
|
||||||
if (!option.nodial) {
|
if (!option.nodial) {
|
||||||
floatingActionButton {
|
floatingActionButton {
|
||||||
imageResource = R.drawable.fab_ic_call
|
imageResource = R.drawable.fab_ic_call
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue