Add imports for XML widget tags, support.v4 fake package files
This commit is contained in:
+13
-7
@@ -1,20 +1,26 @@
|
||||
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.textView1: ft<View, View?>
|
||||
val android.app.Activity.textView1: ft<View, View?>
|
||||
get() = findViewById(0) : View
|
||||
|
||||
val Fragment.textView1: ft<View, View?>
|
||||
val android.app.Fragment.textView1: ft<View, View?>
|
||||
get() = getView().findViewById(0) : View
|
||||
|
||||
val Activity.textView2: ft<TextView, TextView?>
|
||||
val android.app.Activity.textView2: ft<TextView, TextView?>
|
||||
get() = findViewById(0) as TextView
|
||||
|
||||
val Fragment.textView2: ft<TextView, TextView?>
|
||||
val android.app.Fragment.textView2: ft<TextView, TextView?>
|
||||
get() = getView().findViewById(0) as TextView
|
||||
|
||||
|
||||
+11
-5
@@ -1,14 +1,20 @@
|
||||
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.textView1: ft<View, View?>
|
||||
val android.view.View.textView1: ft<View, View?>
|
||||
get() = findViewById(0) : View
|
||||
|
||||
val View.textView2: ft<TextView, TextView?>
|
||||
val android.view.View.textView2: ft<TextView, TextView?>
|
||||
get() = findViewById(0) as TextView
|
||||
|
||||
|
||||
Reference in New Issue
Block a user