Support View in android-compiler-plugin

This commit is contained in:
Yan Zhulanow
2015-03-04 21:19:28 +03:00
parent 33a1aa342f
commit 4cc5e9248a
41 changed files with 637 additions and 60 deletions
@@ -0,0 +1,32 @@
package com.myapp
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.layout.*
class R {
class id {
class object {
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"
}