Add imports for XML widget tags, support.v4 fake package files
This commit is contained in:
+11
-5
@@ -1,14 +1,20 @@
|
||||
package kotlinx.android.synthetic.layout
|
||||
|
||||
import android.app.Activity
|
||||
import android.app.Fragment
|
||||
import android.view.View
|
||||
import android.app.*
|
||||
import android.view.*
|
||||
import android.widget.*
|
||||
import android.webkit.*
|
||||
import android.inputmethodservice.*
|
||||
import android.opengl.*
|
||||
import android.appwidget.*
|
||||
import android.support.v4.app.*
|
||||
import android.support.v4.view.*
|
||||
import android.support.v4.widget.*
|
||||
import kotlin.internal.flexible.ft
|
||||
|
||||
val Activity.MyButton: ft<org.my.cool.Button, org.my.cool.Button?>
|
||||
val android.app.Activity.MyButton: ft<org.my.cool.Button, org.my.cool.Button?>
|
||||
get() = findViewById(0) as org.my.cool.Button
|
||||
|
||||
val Fragment.MyButton: ft<org.my.cool.Button, org.my.cool.Button?>
|
||||
val android.app.Fragment.MyButton: ft<org.my.cool.Button, org.my.cool.Button?>
|
||||
get() = getView().findViewById(0) as org.my.cool.Button
|
||||
|
||||
|
||||
+10
-4
@@ -1,11 +1,17 @@
|
||||
package kotlinx.android.synthetic.layout.view
|
||||
|
||||
import android.app.Activity
|
||||
import android.app.Fragment
|
||||
import android.view.View
|
||||
import android.app.*
|
||||
import android.view.*
|
||||
import android.widget.*
|
||||
import android.webkit.*
|
||||
import android.inputmethodservice.*
|
||||
import android.opengl.*
|
||||
import android.appwidget.*
|
||||
import android.support.v4.app.*
|
||||
import android.support.v4.view.*
|
||||
import android.support.v4.widget.*
|
||||
import kotlin.internal.flexible.ft
|
||||
|
||||
val View.MyButton: ft<org.my.cool.Button, org.my.cool.Button?>
|
||||
val android.view.View.MyButton: ft<org.my.cool.Button, org.my.cool.Button?>
|
||||
get() = findViewById(0) as org.my.cool.Button
|
||||
|
||||
|
||||
Reference in New Issue
Block a user