mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-12 15:53:40 +00:00
33 lines
607 B
Kotlin
Vendored
33 lines
607 B
Kotlin
Vendored
package test
|
|
|
|
import android.app.Activity
|
|
import android.app.Fragment
|
|
import android.content.Context
|
|
import android.view.View
|
|
import android.widget.*
|
|
import org.my.cool.MyButton
|
|
import kotlinx.android.synthetic.main.layout.*
|
|
|
|
class R {
|
|
class id {
|
|
companion object {
|
|
const val login = 5
|
|
}
|
|
}
|
|
}
|
|
|
|
class BaseView(ctx: Context) : View(ctx) {
|
|
val buttonWidget = MyButton(ctx)
|
|
}
|
|
|
|
class MyFragment(): Fragment() {
|
|
val baseActivity = Activity()
|
|
val baseView = BaseView(baseActivity)
|
|
|
|
override fun getView(): View = baseView
|
|
}
|
|
|
|
fun box(): String {
|
|
return "OK"
|
|
}
|