Support Fragment in android-compiler-plugin

This commit is contained in:
Yan Zhulanow
2015-03-03 17:41:48 +03:00
parent d4184bd51d
commit da8369066b
68 changed files with 1160 additions and 25 deletions
@@ -1,9 +1,13 @@
package kotlinx.android.synthetic.layout
import android.app.Activity
import android.app.Fragment
import android.view.View
import android.widget.*
val Activity.MyButton: org.my.cool.Button
get() = findViewById(0) as org.my.cool.Button
val Fragment.MyButton: org.my.cool.Button
get() = getView().findViewById(0) as org.my.cool.Button