Add imports for XML widget tags, support.v4 fake package files
This commit is contained in:
+17
-11
@@ -1,32 +1,38 @@
|
||||
package kotlinx.android.synthetic.layout1
|
||||
|
||||
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.frameLayout: ft<FrameLayout, FrameLayout?>
|
||||
val android.app.Activity.frameLayout: ft<FrameLayout, FrameLayout?>
|
||||
get() = findViewById(0) as FrameLayout
|
||||
|
||||
val Fragment.frameLayout: ft<FrameLayout, FrameLayout?>
|
||||
val android.app.Fragment.frameLayout: ft<FrameLayout, FrameLayout?>
|
||||
get() = getView().findViewById(0) as FrameLayout
|
||||
|
||||
val Activity.passwordField: ft<TextView, TextView?>
|
||||
val android.app.Activity.passwordField: ft<TextView, TextView?>
|
||||
get() = findViewById(0) as TextView
|
||||
|
||||
val Fragment.passwordField: ft<TextView, TextView?>
|
||||
val android.app.Fragment.passwordField: ft<TextView, TextView?>
|
||||
get() = getView().findViewById(0) as TextView
|
||||
|
||||
val Activity.passwordCaption: ft<EditText, EditText?>
|
||||
val android.app.Activity.passwordCaption: ft<EditText, EditText?>
|
||||
get() = findViewById(0) as EditText
|
||||
|
||||
val Fragment.passwordCaption: ft<EditText, EditText?>
|
||||
val android.app.Fragment.passwordCaption: ft<EditText, EditText?>
|
||||
get() = getView().findViewById(0) as EditText
|
||||
|
||||
val Activity.loginButton: ft<Button, Button?>
|
||||
val android.app.Activity.loginButton: ft<Button, Button?>
|
||||
get() = findViewById(0) as Button
|
||||
|
||||
val Fragment.loginButton: ft<Button, Button?>
|
||||
val android.app.Fragment.loginButton: ft<Button, Button?>
|
||||
get() = getView().findViewById(0) as Button
|
||||
|
||||
|
||||
Reference in New Issue
Block a user