Files
kotlin-fork/plugins/android-compiler-plugin/testData/codegen/android/view/1.kt
T
2015-11-19 01:35:58 +03:00

35 lines
667 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.synthetic.main.layout.view.*
class R {
class id {
companion object {
val container = 0
val login = 1
}
}
}
class MyActivity(): Activity() {
val containerWidget = object : FrameLayout(this) {
val loginWidget = Button(this@MyActivity)
}
override fun findViewById(id: Int): View? {
return when (id) {
R.id.container -> containerWidget
else -> null
}
}
}
fun box(): String {
return "OK"
}