mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-12 08:31:28 +00:00
31 lines
529 B
Kotlin
Vendored
31 lines
529 B
Kotlin
Vendored
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"
|
|
}
|