Android Extensions: Support LayoutContainer in code generation

This commit is contained in:
Yan Zhulanow
2017-06-05 22:46:37 +03:00
parent a69f9729e0
commit 423a09e46a
32 changed files with 279 additions and 56 deletions
@@ -0,0 +1,30 @@
package test
import android.app.Activity
import android.view.View
import android.widget.*
import kotlinx.android.synthetic.main.layout.*
import kotlinx.android.extensions.*
class R {
class id {
companion object {
const val login = 5
}
}
}
class MyEntity(override val containerView: View) : LayoutContainer
class MyActivity(): Activity() {
val loginItem = Button(this)
val entity = MyEntity(loginItem)
init {
entity.login
}
}
fun box(): String {
return "OK"
}