Support View in android-compiler-plugin
This commit is contained in:
+10
@@ -0,0 +1,10 @@
|
||||
package kotlinx.android.synthetic.layout.view
|
||||
|
||||
import android.app.Activity
|
||||
import android.app.Fragment
|
||||
import android.view.View
|
||||
import android.widget.*
|
||||
|
||||
val View.MyButton: org.my.cool.Button
|
||||
get() = findViewById(0) as org.my.cool.Button
|
||||
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
package kotlinx.android.synthetic.layout.view
|
||||
|
||||
import android.app.Activity
|
||||
import android.app.Fragment
|
||||
import android.view.View
|
||||
import android.widget.*
|
||||
|
||||
val View.MyButton: org.my.cool.Button
|
||||
get() = findViewById(0) as org.my.cool.Button
|
||||
|
||||
+5
-16
@@ -1,30 +1,19 @@
|
||||
package kotlinx.android.synthetic.layout1
|
||||
package kotlinx.android.synthetic.layout.view
|
||||
|
||||
import android.app.Activity
|
||||
import android.app.Fragment
|
||||
import android.view.View
|
||||
import android.widget.*
|
||||
|
||||
val Activity.frameLayout: FrameLayout
|
||||
val View.item_detail_container: FrameLayout
|
||||
get() = findViewById(0) as FrameLayout
|
||||
|
||||
val Fragment.frameLayout: FrameLayout
|
||||
get() = getView().findViewById(0) as FrameLayout
|
||||
|
||||
val Activity.passwordField: TextView
|
||||
val View.textView1: TextView
|
||||
get() = findViewById(0) as TextView
|
||||
|
||||
val Fragment.passwordField: TextView
|
||||
get() = getView().findViewById(0) as TextView
|
||||
|
||||
val Activity.passwordCaption: EditText
|
||||
val View.password: EditText
|
||||
get() = findViewById(0) as EditText
|
||||
|
||||
val Fragment.passwordCaption: EditText
|
||||
get() = getView().findViewById(0) as EditText
|
||||
|
||||
val Activity.loginButton: Button
|
||||
val View.login: Button
|
||||
get() = findViewById(0) as Button
|
||||
|
||||
val Fragment.loginButton: Button
|
||||
get() = getView().findViewById(0) as Button
|
||||
|
||||
+31
@@ -0,0 +1,31 @@
|
||||
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
|
||||
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
package kotlinx.android.synthetic.layout1.view
|
||||
|
||||
import android.app.Activity
|
||||
import android.app.Fragment
|
||||
import android.view.View
|
||||
import android.widget.*
|
||||
|
||||
val View.frameLayout: FrameLayout
|
||||
get() = findViewById(0) as FrameLayout
|
||||
|
||||
val View.passwordField: TextView
|
||||
get() = findViewById(0) as TextView
|
||||
|
||||
val View.passwordCaption: EditText
|
||||
get() = findViewById(0) as EditText
|
||||
|
||||
val View.loginButton: Button
|
||||
get() = findViewById(0) as Button
|
||||
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
package kotlinx.android.synthetic.layout.view
|
||||
|
||||
import android.app.Activity
|
||||
import android.app.Fragment
|
||||
import android.view.View
|
||||
import android.widget.*
|
||||
|
||||
val View.item_detail_container: FrameLayout
|
||||
get() = findViewById(0) as FrameLayout
|
||||
|
||||
val View.textView1: TextView
|
||||
get() = findViewById(0) as TextView
|
||||
|
||||
val View.password: EditText
|
||||
get() = findViewById(0) as EditText
|
||||
|
||||
val View.login: Button
|
||||
get() = findViewById(0) as Button
|
||||
|
||||
Reference in New Issue
Block a user