Support Fragment in android-compiler-plugin
This commit is contained in:
+4
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user