Support Fragment in android-compiler-plugin

This commit is contained in:
Yan Zhulanow
2015-03-03 17:41:48 +03:00
parent d4184bd51d
commit da8369066b
68 changed files with 1160 additions and 25 deletions
@@ -1,18 +1,31 @@
package kotlinx.android.synthetic.layout
import android.app.Activity
import android.app.Fragment
import android.view.View
import android.widget.*
val Activity.item_detail_container: FrameLayout
get() = findViewById(0) as FrameLayout
val Fragment.item_detail_container: FrameLayout
get() = getView().findViewById(0) as FrameLayout
val Activity.textView1: TextView
get() = findViewById(0) as TextView
val Fragment.textView1: TextView
get() = getView().findViewById(0) as TextView
val Activity.password: EditText
get() = findViewById(0) as EditText
val Fragment.password: EditText
get() = getView().findViewById(0) as EditText
val Activity.login: Button
get() = findViewById(0) as Button
val Fragment.login: Button
get() = getView().findViewById(0) as Button
@@ -1,18 +1,30 @@
package kotlinx.android.synthetic.layout1
import android.app.Activity
import android.app.Fragment
import android.view.View
import android.widget.*
val Activity.frameLayout: FrameLayout
get() = findViewById(0) as FrameLayout
val Fragment.frameLayout: FrameLayout
get() = getView().findViewById(0) as FrameLayout
val Activity.passwordField: TextView
get() = findViewById(0) as TextView
val Fragment.passwordField: TextView
get() = getView().findViewById(0) as TextView
val Activity.passwordCaption: EditText
get() = findViewById(0) as EditText
val Fragment.passwordCaption: EditText
get() = getView().findViewById(0) as EditText
val Activity.loginButton: Button
get() = findViewById(0) as Button
val Fragment.loginButton: Button
get() = getView().findViewById(0) as Button