Add imports for XML widget tags, support.v4 fake package files

This commit is contained in:
Yan Zhulanow
2015-03-25 01:22:22 +03:00
parent d0e4f86790
commit 1f16328070
25 changed files with 261 additions and 124 deletions
@@ -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