Support variants in Android Extensions (compiler plugin)
This commit is contained in:
Vendored
+8
@@ -2,27 +2,35 @@ package kotlinx.android.synthetic.`get`
|
||||
|
||||
import kotlin.internal.flexible.ft
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("item_detail_container", "kotlinx.android.synthetic.main.`get`.item_detail_container"))
|
||||
val android.app.Activity.item_detail_container: ft<android.widget.FrameLayout, android.widget.FrameLayout?>
|
||||
get() = findViewById(0) as? android.widget.FrameLayout
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("item_detail_container", "kotlinx.android.synthetic.main.`get`.item_detail_container"))
|
||||
val android.app.Fragment.item_detail_container: ft<android.widget.FrameLayout, android.widget.FrameLayout?>
|
||||
get() = getView().findViewById(0) as? android.widget.FrameLayout
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("textView1", "kotlinx.android.synthetic.main.`get`.textView1"))
|
||||
val android.app.Activity.textView1: ft<android.widget.TextView, android.widget.TextView?>
|
||||
get() = findViewById(0) as? android.widget.TextView
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("textView1", "kotlinx.android.synthetic.main.`get`.textView1"))
|
||||
val android.app.Fragment.textView1: ft<android.widget.TextView, android.widget.TextView?>
|
||||
get() = getView().findViewById(0) as? android.widget.TextView
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("password", "kotlinx.android.synthetic.main.`get`.password"))
|
||||
val android.app.Activity.password: ft<android.widget.EditText, android.widget.EditText?>
|
||||
get() = findViewById(0) as? android.widget.EditText
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("password", "kotlinx.android.synthetic.main.`get`.password"))
|
||||
val android.app.Fragment.password: ft<android.widget.EditText, android.widget.EditText?>
|
||||
get() = getView().findViewById(0) as? android.widget.EditText
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("login", "kotlinx.android.synthetic.main.`get`.login"))
|
||||
val android.app.Activity.login: ft<android.widget.Button, android.widget.Button?>
|
||||
get() = findViewById(0) as? android.widget.Button
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("login", "kotlinx.android.synthetic.main.`get`.login"))
|
||||
val android.app.Fragment.login: ft<android.widget.Button, android.widget.Button?>
|
||||
get() = getView().findViewById(0) as? android.widget.Button
|
||||
|
||||
|
||||
Vendored
+4
@@ -2,15 +2,19 @@ package kotlinx.android.synthetic.`get`.view
|
||||
|
||||
import kotlin.internal.flexible.ft
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("item_detail_container", "kotlinx.android.synthetic.main.`get`.view.item_detail_container"))
|
||||
val android.view.View.item_detail_container: ft<android.widget.FrameLayout, android.widget.FrameLayout?>
|
||||
get() = findViewById(0) as? android.widget.FrameLayout
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("textView1", "kotlinx.android.synthetic.main.`get`.view.textView1"))
|
||||
val android.view.View.textView1: ft<android.widget.TextView, android.widget.TextView?>
|
||||
get() = findViewById(0) as? android.widget.TextView
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("password", "kotlinx.android.synthetic.main.`get`.view.password"))
|
||||
val android.view.View.password: ft<android.widget.EditText, android.widget.EditText?>
|
||||
get() = findViewById(0) as? android.widget.EditText
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("login", "kotlinx.android.synthetic.main.`get`.view.login"))
|
||||
val android.view.View.login: ft<android.widget.Button, android.widget.Button?>
|
||||
get() = findViewById(0) as? android.widget.Button
|
||||
|
||||
|
||||
+28
@@ -0,0 +1,28 @@
|
||||
package kotlinx.android.synthetic.main.`get`
|
||||
|
||||
import kotlin.internal.flexible.ft
|
||||
|
||||
val android.app.Activity.item_detail_container: ft<android.widget.FrameLayout, android.widget.FrameLayout?>
|
||||
get() = findViewById(0) as? android.widget.FrameLayout
|
||||
|
||||
val android.app.Fragment.item_detail_container: ft<android.widget.FrameLayout, android.widget.FrameLayout?>
|
||||
get() = getView().findViewById(0) as? android.widget.FrameLayout
|
||||
|
||||
val android.app.Activity.textView1: ft<android.widget.TextView, android.widget.TextView?>
|
||||
get() = findViewById(0) as? android.widget.TextView
|
||||
|
||||
val android.app.Fragment.textView1: ft<android.widget.TextView, android.widget.TextView?>
|
||||
get() = getView().findViewById(0) as? android.widget.TextView
|
||||
|
||||
val android.app.Activity.password: ft<android.widget.EditText, android.widget.EditText?>
|
||||
get() = findViewById(0) as? android.widget.EditText
|
||||
|
||||
val android.app.Fragment.password: ft<android.widget.EditText, android.widget.EditText?>
|
||||
get() = getView().findViewById(0) as? android.widget.EditText
|
||||
|
||||
val android.app.Activity.login: ft<android.widget.Button, android.widget.Button?>
|
||||
get() = findViewById(0) as? android.widget.Button
|
||||
|
||||
val android.app.Fragment.login: ft<android.widget.Button, android.widget.Button?>
|
||||
get() = getView().findViewById(0) as? android.widget.Button
|
||||
|
||||
plugins/android-compiler-plugin/testData/android/converter/simple/escapedLayoutName/main_get_VIEW.kt
Vendored
+16
@@ -0,0 +1,16 @@
|
||||
package kotlinx.android.synthetic.main.`get`.view
|
||||
|
||||
import kotlin.internal.flexible.ft
|
||||
|
||||
val android.view.View.item_detail_container: ft<android.widget.FrameLayout, android.widget.FrameLayout?>
|
||||
get() = findViewById(0) as? android.widget.FrameLayout
|
||||
|
||||
val android.view.View.textView1: ft<android.widget.TextView, android.widget.TextView?>
|
||||
get() = findViewById(0) as? android.widget.TextView
|
||||
|
||||
val android.view.View.password: ft<android.widget.EditText, android.widget.EditText?>
|
||||
get() = findViewById(0) as? android.widget.EditText
|
||||
|
||||
val android.view.View.login: ft<android.widget.Button, android.widget.Button?>
|
||||
get() = findViewById(0) as? android.widget.Button
|
||||
|
||||
Vendored
+10
@@ -0,0 +1,10 @@
|
||||
package kotlinx.android.synthetic.main.test
|
||||
|
||||
import kotlin.internal.flexible.ft
|
||||
|
||||
val android.app.Activity.MyKeyboardView: ft<android.inputmethodservice.KeyboardView, android.inputmethodservice.KeyboardView?>
|
||||
get() = findViewById(0) as? android.inputmethodservice.KeyboardView
|
||||
|
||||
val android.app.Fragment.MyKeyboardView: ft<android.inputmethodservice.KeyboardView, android.inputmethodservice.KeyboardView?>
|
||||
get() = getView().findViewById(0) as? android.inputmethodservice.KeyboardView
|
||||
|
||||
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
package kotlinx.android.synthetic.main.test.view
|
||||
|
||||
import kotlin.internal.flexible.ft
|
||||
|
||||
val android.view.View.MyKeyboardView: ft<android.inputmethodservice.KeyboardView, android.inputmethodservice.KeyboardView?>
|
||||
get() = findViewById(0) as? android.inputmethodservice.KeyboardView
|
||||
|
||||
Vendored
+2
@@ -2,9 +2,11 @@ package kotlinx.android.synthetic.test
|
||||
|
||||
import kotlin.internal.flexible.ft
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("MyKeyboardView", "kotlinx.android.synthetic.main.test.MyKeyboardView"))
|
||||
val android.app.Activity.MyKeyboardView: ft<android.inputmethodservice.KeyboardView, android.inputmethodservice.KeyboardView?>
|
||||
get() = findViewById(0) as? android.inputmethodservice.KeyboardView
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("MyKeyboardView", "kotlinx.android.synthetic.main.test.MyKeyboardView"))
|
||||
val android.app.Fragment.MyKeyboardView: ft<android.inputmethodservice.KeyboardView, android.inputmethodservice.KeyboardView?>
|
||||
get() = getView().findViewById(0) as? android.inputmethodservice.KeyboardView
|
||||
|
||||
|
||||
Vendored
+1
@@ -2,6 +2,7 @@ package kotlinx.android.synthetic.test.view
|
||||
|
||||
import kotlin.internal.flexible.ft
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("MyKeyboardView", "kotlinx.android.synthetic.main.test.view.MyKeyboardView"))
|
||||
val android.view.View.MyKeyboardView: ft<android.inputmethodservice.KeyboardView, android.inputmethodservice.KeyboardView?>
|
||||
get() = findViewById(0) as? android.inputmethodservice.KeyboardView
|
||||
|
||||
|
||||
Vendored
+10
@@ -0,0 +1,10 @@
|
||||
package kotlinx.android.synthetic.main.test
|
||||
|
||||
import kotlin.internal.flexible.ft
|
||||
|
||||
val android.app.Activity.MyKeyboardView: ft<android.inputmethodservice.KeyboardView, android.inputmethodservice.KeyboardView?>
|
||||
get() = findViewById(0) as? android.inputmethodservice.KeyboardView
|
||||
|
||||
val android.app.Fragment.MyKeyboardView: ft<android.inputmethodservice.KeyboardView, android.inputmethodservice.KeyboardView?>
|
||||
get() = getView().findViewById(0) as? android.inputmethodservice.KeyboardView
|
||||
|
||||
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
package kotlinx.android.synthetic.main.test.view
|
||||
|
||||
import kotlin.internal.flexible.ft
|
||||
|
||||
val android.view.View.MyKeyboardView: ft<android.inputmethodservice.KeyboardView, android.inputmethodservice.KeyboardView?>
|
||||
get() = findViewById(0) as? android.inputmethodservice.KeyboardView
|
||||
|
||||
Vendored
+2
@@ -2,9 +2,11 @@ package kotlinx.android.synthetic.test
|
||||
|
||||
import kotlin.internal.flexible.ft
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("MyKeyboardView", "kotlinx.android.synthetic.main.test.MyKeyboardView"))
|
||||
val android.app.Activity.MyKeyboardView: ft<android.inputmethodservice.KeyboardView, android.inputmethodservice.KeyboardView?>
|
||||
get() = findViewById(0) as? android.inputmethodservice.KeyboardView
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("MyKeyboardView", "kotlinx.android.synthetic.main.test.MyKeyboardView"))
|
||||
val android.app.Fragment.MyKeyboardView: ft<android.inputmethodservice.KeyboardView, android.inputmethodservice.KeyboardView?>
|
||||
get() = getView().findViewById(0) as? android.inputmethodservice.KeyboardView
|
||||
|
||||
|
||||
+1
@@ -2,6 +2,7 @@ package kotlinx.android.synthetic.test.view
|
||||
|
||||
import kotlin.internal.flexible.ft
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("MyKeyboardView", "kotlinx.android.synthetic.main.test.view.MyKeyboardView"))
|
||||
val android.view.View.MyKeyboardView: ft<android.inputmethodservice.KeyboardView, android.inputmethodservice.KeyboardView?>
|
||||
get() = findViewById(0) as? android.inputmethodservice.KeyboardView
|
||||
|
||||
|
||||
plugins/android-compiler-plugin/testData/android/converter/simple/layoutVariants/main_test_LAYOUT.kt
Vendored
+10
@@ -0,0 +1,10 @@
|
||||
package kotlinx.android.synthetic.main.test
|
||||
|
||||
import kotlin.internal.flexible.ft
|
||||
|
||||
val android.app.Activity.button: ft<android.view.View, android.view.View?>
|
||||
get() = findViewById(0)
|
||||
|
||||
val android.app.Fragment.button: ft<android.view.View, android.view.View?>
|
||||
get() = getView().findViewById(0)
|
||||
|
||||
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
package kotlinx.android.synthetic.main.test.view
|
||||
|
||||
import kotlin.internal.flexible.ft
|
||||
|
||||
val android.view.View.button: ft<android.view.View, android.view.View?>
|
||||
get() = findViewById(0)
|
||||
|
||||
Vendored
+2
@@ -2,9 +2,11 @@ package kotlinx.android.synthetic.test
|
||||
|
||||
import kotlin.internal.flexible.ft
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("button", "kotlinx.android.synthetic.main.test.button"))
|
||||
val android.app.Activity.button: ft<android.view.View, android.view.View?>
|
||||
get() = findViewById(0)
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("button", "kotlinx.android.synthetic.main.test.button"))
|
||||
val android.app.Fragment.button: ft<android.view.View, android.view.View?>
|
||||
get() = getView().findViewById(0)
|
||||
|
||||
|
||||
Vendored
+1
@@ -2,6 +2,7 @@ package kotlinx.android.synthetic.test.view
|
||||
|
||||
import kotlin.internal.flexible.ft
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("button", "kotlinx.android.synthetic.main.test.view.button"))
|
||||
val android.view.View.button: ft<android.view.View, android.view.View?>
|
||||
get() = findViewById(0)
|
||||
|
||||
|
||||
Vendored
+28
@@ -0,0 +1,28 @@
|
||||
package kotlinx.android.synthetic.main.test1
|
||||
|
||||
import kotlin.internal.flexible.ft
|
||||
|
||||
val android.app.Activity.frameLayout: ft<android.widget.FrameLayout, android.widget.FrameLayout?>
|
||||
get() = findViewById(0) as? android.widget.FrameLayout
|
||||
|
||||
val android.app.Fragment.frameLayout: ft<android.widget.FrameLayout, android.widget.FrameLayout?>
|
||||
get() = getView().findViewById(0) as? android.widget.FrameLayout
|
||||
|
||||
val android.app.Activity.passwordField: ft<android.widget.TextView, android.widget.TextView?>
|
||||
get() = findViewById(0) as? android.widget.TextView
|
||||
|
||||
val android.app.Fragment.passwordField: ft<android.widget.TextView, android.widget.TextView?>
|
||||
get() = getView().findViewById(0) as? android.widget.TextView
|
||||
|
||||
val android.app.Activity.passwordCaption: ft<android.widget.EditText, android.widget.EditText?>
|
||||
get() = findViewById(0) as? android.widget.EditText
|
||||
|
||||
val android.app.Fragment.passwordCaption: ft<android.widget.EditText, android.widget.EditText?>
|
||||
get() = getView().findViewById(0) as? android.widget.EditText
|
||||
|
||||
val android.app.Activity.loginButton: ft<android.widget.Button, android.widget.Button?>
|
||||
get() = findViewById(0) as? android.widget.Button
|
||||
|
||||
val android.app.Fragment.loginButton: ft<android.widget.Button, android.widget.Button?>
|
||||
get() = getView().findViewById(0) as? android.widget.Button
|
||||
|
||||
Vendored
+16
@@ -0,0 +1,16 @@
|
||||
package kotlinx.android.synthetic.main.test1.view
|
||||
|
||||
import kotlin.internal.flexible.ft
|
||||
|
||||
val android.view.View.frameLayout: ft<android.widget.FrameLayout, android.widget.FrameLayout?>
|
||||
get() = findViewById(0) as? android.widget.FrameLayout
|
||||
|
||||
val android.view.View.passwordField: ft<android.widget.TextView, android.widget.TextView?>
|
||||
get() = findViewById(0) as? android.widget.TextView
|
||||
|
||||
val android.view.View.passwordCaption: ft<android.widget.EditText, android.widget.EditText?>
|
||||
get() = findViewById(0) as? android.widget.EditText
|
||||
|
||||
val android.view.View.loginButton: ft<android.widget.Button, android.widget.Button?>
|
||||
get() = findViewById(0) as? android.widget.Button
|
||||
|
||||
Vendored
+28
@@ -0,0 +1,28 @@
|
||||
package kotlinx.android.synthetic.main.test
|
||||
|
||||
import kotlin.internal.flexible.ft
|
||||
|
||||
val android.app.Activity.item_detail_container: ft<android.widget.FrameLayout, android.widget.FrameLayout?>
|
||||
get() = findViewById(0) as? android.widget.FrameLayout
|
||||
|
||||
val android.app.Fragment.item_detail_container: ft<android.widget.FrameLayout, android.widget.FrameLayout?>
|
||||
get() = getView().findViewById(0) as? android.widget.FrameLayout
|
||||
|
||||
val android.app.Activity.textView1: ft<android.widget.TextView, android.widget.TextView?>
|
||||
get() = findViewById(0) as? android.widget.TextView
|
||||
|
||||
val android.app.Fragment.textView1: ft<android.widget.TextView, android.widget.TextView?>
|
||||
get() = getView().findViewById(0) as? android.widget.TextView
|
||||
|
||||
val android.app.Activity.password: ft<android.widget.EditText, android.widget.EditText?>
|
||||
get() = findViewById(0) as? android.widget.EditText
|
||||
|
||||
val android.app.Fragment.password: ft<android.widget.EditText, android.widget.EditText?>
|
||||
get() = getView().findViewById(0) as? android.widget.EditText
|
||||
|
||||
val android.app.Activity.login: ft<android.widget.Button, android.widget.Button?>
|
||||
get() = findViewById(0) as? android.widget.Button
|
||||
|
||||
val android.app.Fragment.login: ft<android.widget.Button, android.widget.Button?>
|
||||
get() = getView().findViewById(0) as? android.widget.Button
|
||||
|
||||
Vendored
+16
@@ -0,0 +1,16 @@
|
||||
package kotlinx.android.synthetic.main.test.view
|
||||
|
||||
import kotlin.internal.flexible.ft
|
||||
|
||||
val android.view.View.item_detail_container: ft<android.widget.FrameLayout, android.widget.FrameLayout?>
|
||||
get() = findViewById(0) as? android.widget.FrameLayout
|
||||
|
||||
val android.view.View.textView1: ft<android.widget.TextView, android.widget.TextView?>
|
||||
get() = findViewById(0) as? android.widget.TextView
|
||||
|
||||
val android.view.View.password: ft<android.widget.EditText, android.widget.EditText?>
|
||||
get() = findViewById(0) as? android.widget.EditText
|
||||
|
||||
val android.view.View.login: ft<android.widget.Button, android.widget.Button?>
|
||||
get() = findViewById(0) as? android.widget.Button
|
||||
|
||||
Vendored
+8
@@ -2,27 +2,35 @@ package kotlinx.android.synthetic.test1
|
||||
|
||||
import kotlin.internal.flexible.ft
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("frameLayout", "kotlinx.android.synthetic.main.test1.frameLayout"))
|
||||
val android.app.Activity.frameLayout: ft<android.widget.FrameLayout, android.widget.FrameLayout?>
|
||||
get() = findViewById(0) as? android.widget.FrameLayout
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("frameLayout", "kotlinx.android.synthetic.main.test1.frameLayout"))
|
||||
val android.app.Fragment.frameLayout: ft<android.widget.FrameLayout, android.widget.FrameLayout?>
|
||||
get() = getView().findViewById(0) as? android.widget.FrameLayout
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("passwordField", "kotlinx.android.synthetic.main.test1.passwordField"))
|
||||
val android.app.Activity.passwordField: ft<android.widget.TextView, android.widget.TextView?>
|
||||
get() = findViewById(0) as? android.widget.TextView
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("passwordField", "kotlinx.android.synthetic.main.test1.passwordField"))
|
||||
val android.app.Fragment.passwordField: ft<android.widget.TextView, android.widget.TextView?>
|
||||
get() = getView().findViewById(0) as? android.widget.TextView
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("passwordCaption", "kotlinx.android.synthetic.main.test1.passwordCaption"))
|
||||
val android.app.Activity.passwordCaption: ft<android.widget.EditText, android.widget.EditText?>
|
||||
get() = findViewById(0) as? android.widget.EditText
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("passwordCaption", "kotlinx.android.synthetic.main.test1.passwordCaption"))
|
||||
val android.app.Fragment.passwordCaption: ft<android.widget.EditText, android.widget.EditText?>
|
||||
get() = getView().findViewById(0) as? android.widget.EditText
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("loginButton", "kotlinx.android.synthetic.main.test1.loginButton"))
|
||||
val android.app.Activity.loginButton: ft<android.widget.Button, android.widget.Button?>
|
||||
get() = findViewById(0) as? android.widget.Button
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("loginButton", "kotlinx.android.synthetic.main.test1.loginButton"))
|
||||
val android.app.Fragment.loginButton: ft<android.widget.Button, android.widget.Button?>
|
||||
get() = getView().findViewById(0) as? android.widget.Button
|
||||
|
||||
|
||||
+4
@@ -2,15 +2,19 @@ package kotlinx.android.synthetic.test1.view
|
||||
|
||||
import kotlin.internal.flexible.ft
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("frameLayout", "kotlinx.android.synthetic.main.test1.view.frameLayout"))
|
||||
val android.view.View.frameLayout: ft<android.widget.FrameLayout, android.widget.FrameLayout?>
|
||||
get() = findViewById(0) as? android.widget.FrameLayout
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("passwordField", "kotlinx.android.synthetic.main.test1.view.passwordField"))
|
||||
val android.view.View.passwordField: ft<android.widget.TextView, android.widget.TextView?>
|
||||
get() = findViewById(0) as? android.widget.TextView
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("passwordCaption", "kotlinx.android.synthetic.main.test1.view.passwordCaption"))
|
||||
val android.view.View.passwordCaption: ft<android.widget.EditText, android.widget.EditText?>
|
||||
get() = findViewById(0) as? android.widget.EditText
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("loginButton", "kotlinx.android.synthetic.main.test1.view.loginButton"))
|
||||
val android.view.View.loginButton: ft<android.widget.Button, android.widget.Button?>
|
||||
get() = findViewById(0) as? android.widget.Button
|
||||
|
||||
|
||||
+8
@@ -2,27 +2,35 @@ package kotlinx.android.synthetic.test
|
||||
|
||||
import kotlin.internal.flexible.ft
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("item_detail_container", "kotlinx.android.synthetic.main.test.item_detail_container"))
|
||||
val android.app.Activity.item_detail_container: ft<android.widget.FrameLayout, android.widget.FrameLayout?>
|
||||
get() = findViewById(0) as? android.widget.FrameLayout
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("item_detail_container", "kotlinx.android.synthetic.main.test.item_detail_container"))
|
||||
val android.app.Fragment.item_detail_container: ft<android.widget.FrameLayout, android.widget.FrameLayout?>
|
||||
get() = getView().findViewById(0) as? android.widget.FrameLayout
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("textView1", "kotlinx.android.synthetic.main.test.textView1"))
|
||||
val android.app.Activity.textView1: ft<android.widget.TextView, android.widget.TextView?>
|
||||
get() = findViewById(0) as? android.widget.TextView
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("textView1", "kotlinx.android.synthetic.main.test.textView1"))
|
||||
val android.app.Fragment.textView1: ft<android.widget.TextView, android.widget.TextView?>
|
||||
get() = getView().findViewById(0) as? android.widget.TextView
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("password", "kotlinx.android.synthetic.main.test.password"))
|
||||
val android.app.Activity.password: ft<android.widget.EditText, android.widget.EditText?>
|
||||
get() = findViewById(0) as? android.widget.EditText
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("password", "kotlinx.android.synthetic.main.test.password"))
|
||||
val android.app.Fragment.password: ft<android.widget.EditText, android.widget.EditText?>
|
||||
get() = getView().findViewById(0) as? android.widget.EditText
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("login", "kotlinx.android.synthetic.main.test.login"))
|
||||
val android.app.Activity.login: ft<android.widget.Button, android.widget.Button?>
|
||||
get() = findViewById(0) as? android.widget.Button
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("login", "kotlinx.android.synthetic.main.test.login"))
|
||||
val android.app.Fragment.login: ft<android.widget.Button, android.widget.Button?>
|
||||
get() = getView().findViewById(0) as? android.widget.Button
|
||||
|
||||
|
||||
+4
@@ -2,15 +2,19 @@ package kotlinx.android.synthetic.test.view
|
||||
|
||||
import kotlin.internal.flexible.ft
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("item_detail_container", "kotlinx.android.synthetic.main.test.view.item_detail_container"))
|
||||
val android.view.View.item_detail_container: ft<android.widget.FrameLayout, android.widget.FrameLayout?>
|
||||
get() = findViewById(0) as? android.widget.FrameLayout
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("textView1", "kotlinx.android.synthetic.main.test.view.textView1"))
|
||||
val android.view.View.textView1: ft<android.widget.TextView, android.widget.TextView?>
|
||||
get() = findViewById(0) as? android.widget.TextView
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("password", "kotlinx.android.synthetic.main.test.view.password"))
|
||||
val android.view.View.password: ft<android.widget.EditText, android.widget.EditText?>
|
||||
get() = findViewById(0) as? android.widget.EditText
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("login", "kotlinx.android.synthetic.main.test.view.login"))
|
||||
val android.view.View.login: ft<android.widget.Button, android.widget.Button?>
|
||||
get() = findViewById(0) as? android.widget.Button
|
||||
|
||||
|
||||
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
package kotlinx.android.synthetic.main.test
|
||||
|
||||
import kotlin.internal.flexible.ft
|
||||
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
package kotlinx.android.synthetic.main.test.view
|
||||
|
||||
import kotlin.internal.flexible.ft
|
||||
|
||||
Vendored
+16
@@ -0,0 +1,16 @@
|
||||
package kotlinx.android.synthetic.main.test
|
||||
|
||||
import kotlin.internal.flexible.ft
|
||||
|
||||
val android.app.Activity.textView1: ft<android.view.View, android.view.View?>
|
||||
get() = findViewById(0)
|
||||
|
||||
val android.app.Fragment.textView1: ft<android.view.View, android.view.View?>
|
||||
get() = getView().findViewById(0)
|
||||
|
||||
val android.app.Activity.textView2: ft<android.widget.TextView, android.widget.TextView?>
|
||||
get() = findViewById(0) as? android.widget.TextView
|
||||
|
||||
val android.app.Fragment.textView2: ft<android.widget.TextView, android.widget.TextView?>
|
||||
get() = getView().findViewById(0) as? android.widget.TextView
|
||||
|
||||
Vendored
+10
@@ -0,0 +1,10 @@
|
||||
package kotlinx.android.synthetic.main.test.view
|
||||
|
||||
import kotlin.internal.flexible.ft
|
||||
|
||||
val android.view.View.textView1: ft<android.view.View, android.view.View?>
|
||||
get() = findViewById(0)
|
||||
|
||||
val android.view.View.textView2: ft<android.widget.TextView, android.widget.TextView?>
|
||||
get() = findViewById(0) as? android.widget.TextView
|
||||
|
||||
+4
@@ -2,15 +2,19 @@ package kotlinx.android.synthetic.test
|
||||
|
||||
import kotlin.internal.flexible.ft
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("textView1", "kotlinx.android.synthetic.main.test.textView1"))
|
||||
val android.app.Activity.textView1: ft<android.view.View, android.view.View?>
|
||||
get() = findViewById(0)
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("textView1", "kotlinx.android.synthetic.main.test.textView1"))
|
||||
val android.app.Fragment.textView1: ft<android.view.View, android.view.View?>
|
||||
get() = getView().findViewById(0)
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("textView2", "kotlinx.android.synthetic.main.test.textView2"))
|
||||
val android.app.Activity.textView2: ft<android.widget.TextView, android.widget.TextView?>
|
||||
get() = findViewById(0) as? android.widget.TextView
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("textView2", "kotlinx.android.synthetic.main.test.textView2"))
|
||||
val android.app.Fragment.textView2: ft<android.widget.TextView, android.widget.TextView?>
|
||||
get() = getView().findViewById(0) as? android.widget.TextView
|
||||
|
||||
|
||||
+2
@@ -2,9 +2,11 @@ package kotlinx.android.synthetic.test.view
|
||||
|
||||
import kotlin.internal.flexible.ft
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("textView1", "kotlinx.android.synthetic.main.test.view.textView1"))
|
||||
val android.view.View.textView1: ft<android.view.View, android.view.View?>
|
||||
get() = findViewById(0)
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("textView2", "kotlinx.android.synthetic.main.test.view.textView2"))
|
||||
val android.view.View.textView2: ft<android.widget.TextView, android.widget.TextView?>
|
||||
get() = findViewById(0) as? android.widget.TextView
|
||||
|
||||
|
||||
plugins/android-compiler-plugin/testData/android/converter/simple/severalResDirs/main_test_LAYOUT.kt
Vendored
+22
@@ -0,0 +1,22 @@
|
||||
package kotlinx.android.synthetic.main.test
|
||||
|
||||
import kotlin.internal.flexible.ft
|
||||
|
||||
val android.app.Activity.button: ft<android.view.View, android.view.View?>
|
||||
get() = findViewById(0)
|
||||
|
||||
val android.app.Fragment.button: ft<android.view.View, android.view.View?>
|
||||
get() = getView().findViewById(0)
|
||||
|
||||
val android.app.Activity.button2: ft<android.widget.Button, android.widget.Button?>
|
||||
get() = findViewById(0) as? android.widget.Button
|
||||
|
||||
val android.app.Fragment.button2: ft<android.widget.Button, android.widget.Button?>
|
||||
get() = getView().findViewById(0) as? android.widget.Button
|
||||
|
||||
val android.app.Activity.button3: ft<android.widget.Button, android.widget.Button?>
|
||||
get() = findViewById(0) as? android.widget.Button
|
||||
|
||||
val android.app.Fragment.button3: ft<android.widget.Button, android.widget.Button?>
|
||||
get() = getView().findViewById(0) as? android.widget.Button
|
||||
|
||||
Vendored
+13
@@ -0,0 +1,13 @@
|
||||
package kotlinx.android.synthetic.main.test.view
|
||||
|
||||
import kotlin.internal.flexible.ft
|
||||
|
||||
val android.view.View.button: ft<android.view.View, android.view.View?>
|
||||
get() = findViewById(0)
|
||||
|
||||
val android.view.View.button2: ft<android.widget.Button, android.widget.Button?>
|
||||
get() = findViewById(0) as? android.widget.Button
|
||||
|
||||
val android.view.View.button3: ft<android.widget.Button, android.widget.Button?>
|
||||
get() = findViewById(0) as? android.widget.Button
|
||||
|
||||
Vendored
+6
@@ -2,21 +2,27 @@ package kotlinx.android.synthetic.test
|
||||
|
||||
import kotlin.internal.flexible.ft
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("button", "kotlinx.android.synthetic.main.test.button"))
|
||||
val android.app.Activity.button: ft<android.view.View, android.view.View?>
|
||||
get() = findViewById(0)
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("button", "kotlinx.android.synthetic.main.test.button"))
|
||||
val android.app.Fragment.button: ft<android.view.View, android.view.View?>
|
||||
get() = getView().findViewById(0)
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("button2", "kotlinx.android.synthetic.main.test.button2"))
|
||||
val android.app.Activity.button2: ft<android.widget.Button, android.widget.Button?>
|
||||
get() = findViewById(0) as? android.widget.Button
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("button2", "kotlinx.android.synthetic.main.test.button2"))
|
||||
val android.app.Fragment.button2: ft<android.widget.Button, android.widget.Button?>
|
||||
get() = getView().findViewById(0) as? android.widget.Button
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("button3", "kotlinx.android.synthetic.main.test.button3"))
|
||||
val android.app.Activity.button3: ft<android.widget.Button, android.widget.Button?>
|
||||
get() = findViewById(0) as? android.widget.Button
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("button3", "kotlinx.android.synthetic.main.test.button3"))
|
||||
val android.app.Fragment.button3: ft<android.widget.Button, android.widget.Button?>
|
||||
get() = getView().findViewById(0) as? android.widget.Button
|
||||
|
||||
|
||||
Vendored
+3
@@ -2,12 +2,15 @@ package kotlinx.android.synthetic.test.view
|
||||
|
||||
import kotlin.internal.flexible.ft
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("button", "kotlinx.android.synthetic.main.test.view.button"))
|
||||
val android.view.View.button: ft<android.view.View, android.view.View?>
|
||||
get() = findViewById(0)
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("button2", "kotlinx.android.synthetic.main.test.view.button2"))
|
||||
val android.view.View.button2: ft<android.widget.Button, android.widget.Button?>
|
||||
get() = findViewById(0) as? android.widget.Button
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("button3", "kotlinx.android.synthetic.main.test.view.button3"))
|
||||
val android.view.View.button3: ft<android.widget.Button, android.widget.Button?>
|
||||
get() = findViewById(0) as? android.widget.Button
|
||||
|
||||
|
||||
Vendored
+28
@@ -0,0 +1,28 @@
|
||||
package kotlinx.android.synthetic.main.test
|
||||
|
||||
import kotlin.internal.flexible.ft
|
||||
|
||||
val android.app.Activity.item_detail_container: ft<android.widget.FrameLayout, android.widget.FrameLayout?>
|
||||
get() = findViewById(0) as? android.widget.FrameLayout
|
||||
|
||||
val android.app.Fragment.item_detail_container: ft<android.widget.FrameLayout, android.widget.FrameLayout?>
|
||||
get() = getView().findViewById(0) as? android.widget.FrameLayout
|
||||
|
||||
val android.app.Activity.textView1: ft<android.widget.TextView, android.widget.TextView?>
|
||||
get() = findViewById(0) as? android.widget.TextView
|
||||
|
||||
val android.app.Fragment.textView1: ft<android.widget.TextView, android.widget.TextView?>
|
||||
get() = getView().findViewById(0) as? android.widget.TextView
|
||||
|
||||
val android.app.Activity.password: ft<android.widget.EditText, android.widget.EditText?>
|
||||
get() = findViewById(0) as? android.widget.EditText
|
||||
|
||||
val android.app.Fragment.password: ft<android.widget.EditText, android.widget.EditText?>
|
||||
get() = getView().findViewById(0) as? android.widget.EditText
|
||||
|
||||
val android.app.Activity.login: ft<android.widget.Button, android.widget.Button?>
|
||||
get() = findViewById(0) as? android.widget.Button
|
||||
|
||||
val android.app.Fragment.login: ft<android.widget.Button, android.widget.Button?>
|
||||
get() = getView().findViewById(0) as? android.widget.Button
|
||||
|
||||
Vendored
+16
@@ -0,0 +1,16 @@
|
||||
package kotlinx.android.synthetic.main.test.view
|
||||
|
||||
import kotlin.internal.flexible.ft
|
||||
|
||||
val android.view.View.item_detail_container: ft<android.widget.FrameLayout, android.widget.FrameLayout?>
|
||||
get() = findViewById(0) as? android.widget.FrameLayout
|
||||
|
||||
val android.view.View.textView1: ft<android.widget.TextView, android.widget.TextView?>
|
||||
get() = findViewById(0) as? android.widget.TextView
|
||||
|
||||
val android.view.View.password: ft<android.widget.EditText, android.widget.EditText?>
|
||||
get() = findViewById(0) as? android.widget.EditText
|
||||
|
||||
val android.view.View.login: ft<android.widget.Button, android.widget.Button?>
|
||||
get() = findViewById(0) as? android.widget.Button
|
||||
|
||||
Vendored
+8
@@ -2,27 +2,35 @@ package kotlinx.android.synthetic.test
|
||||
|
||||
import kotlin.internal.flexible.ft
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("item_detail_container", "kotlinx.android.synthetic.main.test.item_detail_container"))
|
||||
val android.app.Activity.item_detail_container: ft<android.widget.FrameLayout, android.widget.FrameLayout?>
|
||||
get() = findViewById(0) as? android.widget.FrameLayout
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("item_detail_container", "kotlinx.android.synthetic.main.test.item_detail_container"))
|
||||
val android.app.Fragment.item_detail_container: ft<android.widget.FrameLayout, android.widget.FrameLayout?>
|
||||
get() = getView().findViewById(0) as? android.widget.FrameLayout
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("textView1", "kotlinx.android.synthetic.main.test.textView1"))
|
||||
val android.app.Activity.textView1: ft<android.widget.TextView, android.widget.TextView?>
|
||||
get() = findViewById(0) as? android.widget.TextView
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("textView1", "kotlinx.android.synthetic.main.test.textView1"))
|
||||
val android.app.Fragment.textView1: ft<android.widget.TextView, android.widget.TextView?>
|
||||
get() = getView().findViewById(0) as? android.widget.TextView
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("password", "kotlinx.android.synthetic.main.test.password"))
|
||||
val android.app.Activity.password: ft<android.widget.EditText, android.widget.EditText?>
|
||||
get() = findViewById(0) as? android.widget.EditText
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("password", "kotlinx.android.synthetic.main.test.password"))
|
||||
val android.app.Fragment.password: ft<android.widget.EditText, android.widget.EditText?>
|
||||
get() = getView().findViewById(0) as? android.widget.EditText
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("login", "kotlinx.android.synthetic.main.test.login"))
|
||||
val android.app.Activity.login: ft<android.widget.Button, android.widget.Button?>
|
||||
get() = findViewById(0) as? android.widget.Button
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("login", "kotlinx.android.synthetic.main.test.login"))
|
||||
val android.app.Fragment.login: ft<android.widget.Button, android.widget.Button?>
|
||||
get() = getView().findViewById(0) as? android.widget.Button
|
||||
|
||||
|
||||
+4
@@ -2,15 +2,19 @@ package kotlinx.android.synthetic.test.view
|
||||
|
||||
import kotlin.internal.flexible.ft
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("item_detail_container", "kotlinx.android.synthetic.main.test.view.item_detail_container"))
|
||||
val android.view.View.item_detail_container: ft<android.widget.FrameLayout, android.widget.FrameLayout?>
|
||||
get() = findViewById(0) as? android.widget.FrameLayout
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("textView1", "kotlinx.android.synthetic.main.test.view.textView1"))
|
||||
val android.view.View.textView1: ft<android.widget.TextView, android.widget.TextView?>
|
||||
get() = findViewById(0) as? android.widget.TextView
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("password", "kotlinx.android.synthetic.main.test.view.password"))
|
||||
val android.view.View.password: ft<android.widget.EditText, android.widget.EditText?>
|
||||
get() = findViewById(0) as? android.widget.EditText
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("login", "kotlinx.android.synthetic.main.test.view.login"))
|
||||
val android.view.View.login: ft<android.widget.Button, android.widget.Button?>
|
||||
get() = findViewById(0) as? android.widget.Button
|
||||
|
||||
|
||||
Vendored
+28
@@ -0,0 +1,28 @@
|
||||
package kotlinx.android.synthetic.main.test
|
||||
|
||||
import kotlin.internal.flexible.ft
|
||||
|
||||
val android.app.Activity.includeTag: ft<android.view.View, android.view.View?>
|
||||
get() = findViewById(0)
|
||||
|
||||
val android.app.Fragment.includeTag: ft<android.view.View, android.view.View?>
|
||||
get() = getView().findViewById(0)
|
||||
|
||||
val android.app.Activity.fragmentTag: ft<android.app.Fragment, android.app.Fragment?>
|
||||
get() = getFragmentManager().findFragmentById(0) as? android.app.Fragment
|
||||
|
||||
val android.app.Fragment.fragmentTag: ft<android.app.Fragment, android.app.Fragment?>
|
||||
get() = getFragmentManager().findFragmentById(0) as? android.app.Fragment
|
||||
|
||||
val android.app.Activity.`fun`: ft<android.widget.TextView, android.widget.TextView?>
|
||||
get() = findViewById(0) as? android.widget.TextView
|
||||
|
||||
val android.app.Fragment.`fun`: ft<android.widget.TextView, android.widget.TextView?>
|
||||
get() = getView().findViewById(0) as? android.widget.TextView
|
||||
|
||||
val android.app.Activity.`set`: ft<android.widget.Button, android.widget.Button?>
|
||||
get() = findViewById(0) as? android.widget.Button
|
||||
|
||||
val android.app.Fragment.`set`: ft<android.widget.Button, android.widget.Button?>
|
||||
get() = getView().findViewById(0) as? android.widget.Button
|
||||
|
||||
Vendored
+13
@@ -0,0 +1,13 @@
|
||||
package kotlinx.android.synthetic.main.test.view
|
||||
|
||||
import kotlin.internal.flexible.ft
|
||||
|
||||
val android.view.View.includeTag: ft<android.view.View, android.view.View?>
|
||||
get() = findViewById(0)
|
||||
|
||||
val android.view.View.`fun`: ft<android.widget.TextView, android.widget.TextView?>
|
||||
get() = findViewById(0) as? android.widget.TextView
|
||||
|
||||
val android.view.View.`set`: ft<android.widget.Button, android.widget.Button?>
|
||||
get() = findViewById(0) as? android.widget.Button
|
||||
|
||||
Vendored
+8
@@ -2,27 +2,35 @@ package kotlinx.android.synthetic.test
|
||||
|
||||
import kotlin.internal.flexible.ft
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("includeTag", "kotlinx.android.synthetic.main.test.includeTag"))
|
||||
val android.app.Activity.includeTag: ft<android.view.View, android.view.View?>
|
||||
get() = findViewById(0)
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("includeTag", "kotlinx.android.synthetic.main.test.includeTag"))
|
||||
val android.app.Fragment.includeTag: ft<android.view.View, android.view.View?>
|
||||
get() = getView().findViewById(0)
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("fragmentTag", "kotlinx.android.synthetic.main.test.fragmentTag"))
|
||||
val android.app.Activity.fragmentTag: ft<android.app.Fragment, android.app.Fragment?>
|
||||
get() = getFragmentManager().findFragmentById(0) as? android.app.Fragment
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("fragmentTag", "kotlinx.android.synthetic.main.test.fragmentTag"))
|
||||
val android.app.Fragment.fragmentTag: ft<android.app.Fragment, android.app.Fragment?>
|
||||
get() = getFragmentManager().findFragmentById(0) as? android.app.Fragment
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("`fun`", "kotlinx.android.synthetic.main.test.`fun`"))
|
||||
val android.app.Activity.`fun`: ft<android.widget.TextView, android.widget.TextView?>
|
||||
get() = findViewById(0) as? android.widget.TextView
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("`fun`", "kotlinx.android.synthetic.main.test.`fun`"))
|
||||
val android.app.Fragment.`fun`: ft<android.widget.TextView, android.widget.TextView?>
|
||||
get() = getView().findViewById(0) as? android.widget.TextView
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("`set`", "kotlinx.android.synthetic.main.test.`set`"))
|
||||
val android.app.Activity.`set`: ft<android.widget.Button, android.widget.Button?>
|
||||
get() = findViewById(0) as? android.widget.Button
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("`set`", "kotlinx.android.synthetic.main.test.`set`"))
|
||||
val android.app.Fragment.`set`: ft<android.widget.Button, android.widget.Button?>
|
||||
get() = getView().findViewById(0) as? android.widget.Button
|
||||
|
||||
|
||||
+3
@@ -2,12 +2,15 @@ package kotlinx.android.synthetic.test.view
|
||||
|
||||
import kotlin.internal.flexible.ft
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("includeTag", "kotlinx.android.synthetic.main.test.view.includeTag"))
|
||||
val android.view.View.includeTag: ft<android.view.View, android.view.View?>
|
||||
get() = findViewById(0)
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("`fun`", "kotlinx.android.synthetic.main.test.view.`fun`"))
|
||||
val android.view.View.`fun`: ft<android.widget.TextView, android.widget.TextView?>
|
||||
get() = findViewById(0) as? android.widget.TextView
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("`set`", "kotlinx.android.synthetic.main.test.view.`set`"))
|
||||
val android.view.View.`set`: ft<android.widget.Button, android.widget.Button?>
|
||||
get() = findViewById(0) as? android.widget.Button
|
||||
|
||||
|
||||
+40
@@ -0,0 +1,40 @@
|
||||
package kotlinx.android.synthetic.main.test
|
||||
|
||||
import kotlin.internal.flexible.ft
|
||||
|
||||
val android.app.Activity.item_detail_container: ft<android.widget.FrameLayout, android.widget.FrameLayout?>
|
||||
get() = findViewById(0) as? android.widget.FrameLayout
|
||||
|
||||
val android.app.Fragment.item_detail_container: ft<android.widget.FrameLayout, android.widget.FrameLayout?>
|
||||
get() = getView().findViewById(0) as? android.widget.FrameLayout
|
||||
|
||||
val android.support.v4.app.Fragment.item_detail_container: ft<android.widget.FrameLayout, android.widget.FrameLayout?>
|
||||
get() = getView().findViewById(0) as? android.widget.FrameLayout
|
||||
|
||||
val android.app.Activity.textView1: ft<android.widget.TextView, android.widget.TextView?>
|
||||
get() = findViewById(0) as? android.widget.TextView
|
||||
|
||||
val android.app.Fragment.textView1: ft<android.widget.TextView, android.widget.TextView?>
|
||||
get() = getView().findViewById(0) as? android.widget.TextView
|
||||
|
||||
val android.support.v4.app.Fragment.textView1: ft<android.widget.TextView, android.widget.TextView?>
|
||||
get() = getView().findViewById(0) as? android.widget.TextView
|
||||
|
||||
val android.app.Activity.password: ft<android.widget.EditText, android.widget.EditText?>
|
||||
get() = findViewById(0) as? android.widget.EditText
|
||||
|
||||
val android.app.Fragment.password: ft<android.widget.EditText, android.widget.EditText?>
|
||||
get() = getView().findViewById(0) as? android.widget.EditText
|
||||
|
||||
val android.support.v4.app.Fragment.password: ft<android.widget.EditText, android.widget.EditText?>
|
||||
get() = getView().findViewById(0) as? android.widget.EditText
|
||||
|
||||
val android.app.Activity.login: ft<android.widget.Button, android.widget.Button?>
|
||||
get() = findViewById(0) as? android.widget.Button
|
||||
|
||||
val android.app.Fragment.login: ft<android.widget.Button, android.widget.Button?>
|
||||
get() = getView().findViewById(0) as? android.widget.Button
|
||||
|
||||
val android.support.v4.app.Fragment.login: ft<android.widget.Button, android.widget.Button?>
|
||||
get() = getView().findViewById(0) as? android.widget.Button
|
||||
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
package kotlinx.android.synthetic.main.test.view
|
||||
|
||||
import kotlin.internal.flexible.ft
|
||||
|
||||
val android.view.View.item_detail_container: ft<android.widget.FrameLayout, android.widget.FrameLayout?>
|
||||
get() = findViewById(0) as? android.widget.FrameLayout
|
||||
|
||||
val android.view.View.textView1: ft<android.widget.TextView, android.widget.TextView?>
|
||||
get() = findViewById(0) as? android.widget.TextView
|
||||
|
||||
val android.view.View.password: ft<android.widget.EditText, android.widget.EditText?>
|
||||
get() = findViewById(0) as? android.widget.EditText
|
||||
|
||||
val android.view.View.login: ft<android.widget.Button, android.widget.Button?>
|
||||
get() = findViewById(0) as? android.widget.Button
|
||||
|
||||
Vendored
+12
@@ -2,39 +2,51 @@ package kotlinx.android.synthetic.test
|
||||
|
||||
import kotlin.internal.flexible.ft
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("item_detail_container", "kotlinx.android.synthetic.main.test.item_detail_container"))
|
||||
val android.app.Activity.item_detail_container: ft<android.widget.FrameLayout, android.widget.FrameLayout?>
|
||||
get() = findViewById(0) as? android.widget.FrameLayout
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("item_detail_container", "kotlinx.android.synthetic.main.test.item_detail_container"))
|
||||
val android.app.Fragment.item_detail_container: ft<android.widget.FrameLayout, android.widget.FrameLayout?>
|
||||
get() = getView().findViewById(0) as? android.widget.FrameLayout
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("item_detail_container", "kotlinx.android.synthetic.main.test.item_detail_container"))
|
||||
val android.support.v4.app.Fragment.item_detail_container: ft<android.widget.FrameLayout, android.widget.FrameLayout?>
|
||||
get() = getView().findViewById(0) as? android.widget.FrameLayout
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("textView1", "kotlinx.android.synthetic.main.test.textView1"))
|
||||
val android.app.Activity.textView1: ft<android.widget.TextView, android.widget.TextView?>
|
||||
get() = findViewById(0) as? android.widget.TextView
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("textView1", "kotlinx.android.synthetic.main.test.textView1"))
|
||||
val android.app.Fragment.textView1: ft<android.widget.TextView, android.widget.TextView?>
|
||||
get() = getView().findViewById(0) as? android.widget.TextView
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("textView1", "kotlinx.android.synthetic.main.test.textView1"))
|
||||
val android.support.v4.app.Fragment.textView1: ft<android.widget.TextView, android.widget.TextView?>
|
||||
get() = getView().findViewById(0) as? android.widget.TextView
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("password", "kotlinx.android.synthetic.main.test.password"))
|
||||
val android.app.Activity.password: ft<android.widget.EditText, android.widget.EditText?>
|
||||
get() = findViewById(0) as? android.widget.EditText
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("password", "kotlinx.android.synthetic.main.test.password"))
|
||||
val android.app.Fragment.password: ft<android.widget.EditText, android.widget.EditText?>
|
||||
get() = getView().findViewById(0) as? android.widget.EditText
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("password", "kotlinx.android.synthetic.main.test.password"))
|
||||
val android.support.v4.app.Fragment.password: ft<android.widget.EditText, android.widget.EditText?>
|
||||
get() = getView().findViewById(0) as? android.widget.EditText
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("login", "kotlinx.android.synthetic.main.test.login"))
|
||||
val android.app.Activity.login: ft<android.widget.Button, android.widget.Button?>
|
||||
get() = findViewById(0) as? android.widget.Button
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("login", "kotlinx.android.synthetic.main.test.login"))
|
||||
val android.app.Fragment.login: ft<android.widget.Button, android.widget.Button?>
|
||||
get() = getView().findViewById(0) as? android.widget.Button
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("login", "kotlinx.android.synthetic.main.test.login"))
|
||||
val android.support.v4.app.Fragment.login: ft<android.widget.Button, android.widget.Button?>
|
||||
get() = getView().findViewById(0) as? android.widget.Button
|
||||
|
||||
|
||||
Vendored
+4
@@ -2,15 +2,19 @@ package kotlinx.android.synthetic.test.view
|
||||
|
||||
import kotlin.internal.flexible.ft
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("item_detail_container", "kotlinx.android.synthetic.main.test.view.item_detail_container"))
|
||||
val android.view.View.item_detail_container: ft<android.widget.FrameLayout, android.widget.FrameLayout?>
|
||||
get() = findViewById(0) as? android.widget.FrameLayout
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("textView1", "kotlinx.android.synthetic.main.test.view.textView1"))
|
||||
val android.view.View.textView1: ft<android.widget.TextView, android.widget.TextView?>
|
||||
get() = findViewById(0) as? android.widget.TextView
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("password", "kotlinx.android.synthetic.main.test.view.password"))
|
||||
val android.view.View.password: ft<android.widget.EditText, android.widget.EditText?>
|
||||
get() = findViewById(0) as? android.widget.EditText
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("login", "kotlinx.android.synthetic.main.test.view.login"))
|
||||
val android.view.View.login: ft<android.widget.Button, android.widget.Button?>
|
||||
get() = findViewById(0) as? android.widget.Button
|
||||
|
||||
|
||||
+43
@@ -0,0 +1,43 @@
|
||||
package kotlinx.android.synthetic.main.test
|
||||
|
||||
import kotlin.internal.flexible.ft
|
||||
|
||||
val android.app.Activity.includeTag: ft<android.view.View, android.view.View?>
|
||||
get() = findViewById(0)
|
||||
|
||||
val android.app.Fragment.includeTag: ft<android.view.View, android.view.View?>
|
||||
get() = getView().findViewById(0)
|
||||
|
||||
val android.support.v4.app.Fragment.includeTag: ft<android.view.View, android.view.View?>
|
||||
get() = getView().findViewById(0)
|
||||
|
||||
val android.app.Activity.fragmentTag: ft<android.app.Fragment, android.app.Fragment?>
|
||||
get() = getFragmentManager().findFragmentById(0) as? android.app.Fragment
|
||||
|
||||
val android.app.Fragment.fragmentTag: ft<android.app.Fragment, android.app.Fragment?>
|
||||
get() = getFragmentManager().findFragmentById(0) as? android.app.Fragment
|
||||
|
||||
val android.support.v4.app.Fragment.fragmentTag: ft<android.support.v4.app.Fragment, android.support.v4.app.Fragment?>
|
||||
get() = getFragmentManager().findFragmentById(0) as? android.support.v4.app.Fragment
|
||||
|
||||
val android.support.v4.app.FragmentActivity.fragmentTag: ft<android.support.v4.app.Fragment, android.support.v4.app.Fragment?>
|
||||
get() = getSupportFragmentManager().findFragmentById(0) as? android.support.v4.app.Fragment
|
||||
|
||||
val android.app.Activity.`fun`: ft<android.widget.TextView, android.widget.TextView?>
|
||||
get() = findViewById(0) as? android.widget.TextView
|
||||
|
||||
val android.app.Fragment.`fun`: ft<android.widget.TextView, android.widget.TextView?>
|
||||
get() = getView().findViewById(0) as? android.widget.TextView
|
||||
|
||||
val android.support.v4.app.Fragment.`fun`: ft<android.widget.TextView, android.widget.TextView?>
|
||||
get() = getView().findViewById(0) as? android.widget.TextView
|
||||
|
||||
val android.app.Activity.`set`: ft<android.widget.Button, android.widget.Button?>
|
||||
get() = findViewById(0) as? android.widget.Button
|
||||
|
||||
val android.app.Fragment.`set`: ft<android.widget.Button, android.widget.Button?>
|
||||
get() = getView().findViewById(0) as? android.widget.Button
|
||||
|
||||
val android.support.v4.app.Fragment.`set`: ft<android.widget.Button, android.widget.Button?>
|
||||
get() = getView().findViewById(0) as? android.widget.Button
|
||||
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
package kotlinx.android.synthetic.main.test.view
|
||||
|
||||
import kotlin.internal.flexible.ft
|
||||
|
||||
val android.view.View.includeTag: ft<android.view.View, android.view.View?>
|
||||
get() = findViewById(0)
|
||||
|
||||
val android.view.View.`fun`: ft<android.widget.TextView, android.widget.TextView?>
|
||||
get() = findViewById(0) as? android.widget.TextView
|
||||
|
||||
val android.view.View.`set`: ft<android.widget.Button, android.widget.Button?>
|
||||
get() = findViewById(0) as? android.widget.Button
|
||||
|
||||
Vendored
+13
@@ -2,42 +2,55 @@ package kotlinx.android.synthetic.test
|
||||
|
||||
import kotlin.internal.flexible.ft
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("includeTag", "kotlinx.android.synthetic.main.test.includeTag"))
|
||||
val android.app.Activity.includeTag: ft<android.view.View, android.view.View?>
|
||||
get() = findViewById(0)
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("includeTag", "kotlinx.android.synthetic.main.test.includeTag"))
|
||||
val android.app.Fragment.includeTag: ft<android.view.View, android.view.View?>
|
||||
get() = getView().findViewById(0)
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("includeTag", "kotlinx.android.synthetic.main.test.includeTag"))
|
||||
val android.support.v4.app.Fragment.includeTag: ft<android.view.View, android.view.View?>
|
||||
get() = getView().findViewById(0)
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("fragmentTag", "kotlinx.android.synthetic.main.test.fragmentTag"))
|
||||
val android.app.Activity.fragmentTag: ft<android.app.Fragment, android.app.Fragment?>
|
||||
get() = getFragmentManager().findFragmentById(0) as? android.app.Fragment
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("fragmentTag", "kotlinx.android.synthetic.main.test.fragmentTag"))
|
||||
val android.app.Fragment.fragmentTag: ft<android.app.Fragment, android.app.Fragment?>
|
||||
get() = getFragmentManager().findFragmentById(0) as? android.app.Fragment
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("fragmentTag", "kotlinx.android.synthetic.main.test.fragmentTag"))
|
||||
val android.support.v4.app.Fragment.fragmentTag: ft<android.support.v4.app.Fragment, android.support.v4.app.Fragment?>
|
||||
get() = getFragmentManager().findFragmentById(0) as? android.support.v4.app.Fragment
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("fragmentTag", "kotlinx.android.synthetic.main.test.fragmentTag"))
|
||||
val android.support.v4.app.FragmentActivity.fragmentTag: ft<android.support.v4.app.Fragment, android.support.v4.app.Fragment?>
|
||||
get() = getSupportFragmentManager().findFragmentById(0) as? android.support.v4.app.Fragment
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("`fun`", "kotlinx.android.synthetic.main.test.`fun`"))
|
||||
val android.app.Activity.`fun`: ft<android.widget.TextView, android.widget.TextView?>
|
||||
get() = findViewById(0) as? android.widget.TextView
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("`fun`", "kotlinx.android.synthetic.main.test.`fun`"))
|
||||
val android.app.Fragment.`fun`: ft<android.widget.TextView, android.widget.TextView?>
|
||||
get() = getView().findViewById(0) as? android.widget.TextView
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("`fun`", "kotlinx.android.synthetic.main.test.`fun`"))
|
||||
val android.support.v4.app.Fragment.`fun`: ft<android.widget.TextView, android.widget.TextView?>
|
||||
get() = getView().findViewById(0) as? android.widget.TextView
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("`set`", "kotlinx.android.synthetic.main.test.`set`"))
|
||||
val android.app.Activity.`set`: ft<android.widget.Button, android.widget.Button?>
|
||||
get() = findViewById(0) as? android.widget.Button
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("`set`", "kotlinx.android.synthetic.main.test.`set`"))
|
||||
val android.app.Fragment.`set`: ft<android.widget.Button, android.widget.Button?>
|
||||
get() = getView().findViewById(0) as? android.widget.Button
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("`set`", "kotlinx.android.synthetic.main.test.`set`"))
|
||||
val android.support.v4.app.Fragment.`set`: ft<android.widget.Button, android.widget.Button?>
|
||||
get() = getView().findViewById(0) as? android.widget.Button
|
||||
|
||||
|
||||
Vendored
+3
@@ -2,12 +2,15 @@ package kotlinx.android.synthetic.test.view
|
||||
|
||||
import kotlin.internal.flexible.ft
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("includeTag", "kotlinx.android.synthetic.main.test.view.includeTag"))
|
||||
val android.view.View.includeTag: ft<android.view.View, android.view.View?>
|
||||
get() = findViewById(0)
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("`fun`", "kotlinx.android.synthetic.main.test.view.`fun`"))
|
||||
val android.view.View.`fun`: ft<android.widget.TextView, android.widget.TextView?>
|
||||
get() = findViewById(0) as? android.widget.TextView
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("`set`", "kotlinx.android.synthetic.main.test.view.`set`"))
|
||||
val android.view.View.`set`: ft<android.widget.Button, android.widget.Button?>
|
||||
get() = findViewById(0) as? android.widget.Button
|
||||
|
||||
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
package kotlinx.android.synthetic.main.test
|
||||
|
||||
import kotlin.internal.flexible.ft
|
||||
|
||||
@kotlin.internal.flexible.InvalidWidgetType("a.b.c")
|
||||
val android.app.Activity.MyView: ft<a.b.c, a.b.c?>
|
||||
get() = findViewById(0) as? a.b.c
|
||||
|
||||
@kotlin.internal.flexible.InvalidWidgetType("a.b.c")
|
||||
val android.app.Fragment.MyView: ft<a.b.c, a.b.c?>
|
||||
get() = getView().findViewById(0) as? a.b.c
|
||||
|
||||
plugins/android-compiler-plugin/testData/android/converter/simple/unresolvedFqName/main_test_VIEW.kt
Vendored
+8
@@ -0,0 +1,8 @@
|
||||
package kotlinx.android.synthetic.main.test.view
|
||||
|
||||
import kotlin.internal.flexible.ft
|
||||
|
||||
@kotlin.internal.flexible.InvalidWidgetType("a.b.c")
|
||||
val android.view.View.MyView: ft<a.b.c, a.b.c?>
|
||||
get() = findViewById(0) as? a.b.c
|
||||
|
||||
Vendored
+2
@@ -2,10 +2,12 @@ package kotlinx.android.synthetic.test
|
||||
|
||||
import kotlin.internal.flexible.ft
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("MyView", "kotlinx.android.synthetic.main.test.MyView"))
|
||||
@kotlin.internal.flexible.InvalidWidgetType("a.b.c")
|
||||
val android.app.Activity.MyView: ft<a.b.c, a.b.c?>
|
||||
get() = findViewById(0) as? a.b.c
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("MyView", "kotlinx.android.synthetic.main.test.MyView"))
|
||||
@kotlin.internal.flexible.InvalidWidgetType("a.b.c")
|
||||
val android.app.Fragment.MyView: ft<a.b.c, a.b.c?>
|
||||
get() = getView().findViewById(0) as? a.b.c
|
||||
|
||||
Vendored
+1
@@ -2,6 +2,7 @@ package kotlinx.android.synthetic.test.view
|
||||
|
||||
import kotlin.internal.flexible.ft
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("MyView", "kotlinx.android.synthetic.main.test.view.MyView"))
|
||||
@kotlin.internal.flexible.InvalidWidgetType("a.b.c")
|
||||
val android.view.View.MyView: ft<a.b.c, a.b.c?>
|
||||
get() = findViewById(0) as? a.b.c
|
||||
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
package kotlinx.android.synthetic.main.test
|
||||
|
||||
import kotlin.internal.flexible.ft
|
||||
|
||||
@kotlin.internal.flexible.InvalidWidgetType("KeyboardView")
|
||||
val android.app.Activity.MyKeyboardView: ft<android.view.View, android.view.View?>
|
||||
get() = findViewById(0)
|
||||
|
||||
@kotlin.internal.flexible.InvalidWidgetType("KeyboardView")
|
||||
val android.app.Fragment.MyKeyboardView: ft<android.view.View, android.view.View?>
|
||||
get() = getView().findViewById(0)
|
||||
|
||||
plugins/android-compiler-plugin/testData/android/converter/simple/unresolvedWidget/main_test_VIEW.kt
Vendored
+8
@@ -0,0 +1,8 @@
|
||||
package kotlinx.android.synthetic.main.test.view
|
||||
|
||||
import kotlin.internal.flexible.ft
|
||||
|
||||
@kotlin.internal.flexible.InvalidWidgetType("KeyboardView")
|
||||
val android.view.View.MyKeyboardView: ft<android.view.View, android.view.View?>
|
||||
get() = findViewById(0)
|
||||
|
||||
Vendored
+2
@@ -2,10 +2,12 @@ package kotlinx.android.synthetic.test
|
||||
|
||||
import kotlin.internal.flexible.ft
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("MyKeyboardView", "kotlinx.android.synthetic.main.test.MyKeyboardView"))
|
||||
@kotlin.internal.flexible.InvalidWidgetType("KeyboardView")
|
||||
val android.app.Activity.MyKeyboardView: ft<android.view.View, android.view.View?>
|
||||
get() = findViewById(0)
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("MyKeyboardView", "kotlinx.android.synthetic.main.test.MyKeyboardView"))
|
||||
@kotlin.internal.flexible.InvalidWidgetType("KeyboardView")
|
||||
val android.app.Fragment.MyKeyboardView: ft<android.view.View, android.view.View?>
|
||||
get() = getView().findViewById(0)
|
||||
|
||||
Vendored
+1
@@ -2,6 +2,7 @@ package kotlinx.android.synthetic.test.view
|
||||
|
||||
import kotlin.internal.flexible.ft
|
||||
|
||||
@Deprecated("Use the property from the 'main' variant instead", ReplaceWith("MyKeyboardView", "kotlinx.android.synthetic.main.test.view.MyKeyboardView"))
|
||||
@kotlin.internal.flexible.InvalidWidgetType("KeyboardView")
|
||||
val android.view.View.MyKeyboardView: ft<android.view.View, android.view.View?>
|
||||
get() = findViewById(0)
|
||||
|
||||
@@ -4,7 +4,7 @@ import android.app.Activity
|
||||
import android.view.View
|
||||
import android.widget.*
|
||||
import org.my.cool.MyButton
|
||||
import kotlinx.android.synthetic.layout.*
|
||||
import kotlinx.android.synthetic.main.layout.*
|
||||
|
||||
class R {
|
||||
class id {
|
||||
|
||||
@@ -4,7 +4,7 @@ import android.app.Activity
|
||||
import android.view.View
|
||||
import android.widget.*
|
||||
import org.my.cool.MyButton
|
||||
import kotlinx.android.synthetic.layout.*
|
||||
import kotlinx.android.synthetic.main.layout.*
|
||||
|
||||
class R {
|
||||
class id {
|
||||
|
||||
@@ -4,7 +4,7 @@ import android.app.Activity
|
||||
import android.view.View
|
||||
import android.widget.*
|
||||
import org.my.cool.MyButton
|
||||
import kotlinx.android.synthetic.layout.*
|
||||
import kotlinx.android.synthetic.main.layout.*
|
||||
|
||||
class R {
|
||||
class id {
|
||||
|
||||
@@ -4,7 +4,7 @@ import android.app.Activity
|
||||
import android.view.View
|
||||
import android.widget.*
|
||||
import org.my.cool.MyButton
|
||||
import kotlinx.android.synthetic.layout.*
|
||||
import kotlinx.android.synthetic.main.layout.*
|
||||
|
||||
class R {
|
||||
class id {
|
||||
|
||||
@@ -6,7 +6,7 @@ import android.content.Context
|
||||
import android.view.View
|
||||
import android.widget.*
|
||||
import org.my.cool.MyButton
|
||||
import kotlinx.android.synthetic.layout.*
|
||||
import kotlinx.android.synthetic.main.layout.*
|
||||
|
||||
class R {
|
||||
class id {
|
||||
|
||||
@@ -6,7 +6,7 @@ import android.content.Context
|
||||
import android.view.View
|
||||
import android.widget.*
|
||||
import org.my.cool.MyButton
|
||||
import kotlinx.android.synthetic.layout.*
|
||||
import kotlinx.android.synthetic.main.layout.*
|
||||
|
||||
class R {
|
||||
class id {
|
||||
|
||||
@@ -3,8 +3,8 @@ package com.myapp
|
||||
import android.app.Activity
|
||||
import android.view.View
|
||||
import android.widget.*
|
||||
import kotlinx.android.synthetic.layout.*
|
||||
import kotlinx.android.synthetic.layout1.*
|
||||
import kotlinx.android.synthetic.main.layout.*
|
||||
import kotlinx.android.synthetic.main.layout1.*
|
||||
|
||||
class R {
|
||||
class id {
|
||||
|
||||
@@ -3,8 +3,8 @@ package com.myapp
|
||||
import android.app.Activity
|
||||
import android.view.View
|
||||
import android.widget.*
|
||||
import kotlinx.android.synthetic.layout.*
|
||||
import kotlinx.android.synthetic.layout1.*
|
||||
import kotlinx.android.synthetic.main.layout.*
|
||||
import kotlinx.android.synthetic.main.layout1.*
|
||||
|
||||
class R {
|
||||
class id {
|
||||
|
||||
@@ -3,7 +3,7 @@ package com.myapp
|
||||
import android.app.Activity
|
||||
import android.view.View
|
||||
import android.widget.*
|
||||
import kotlinx.android.synthetic.layout.*
|
||||
import kotlinx.android.synthetic.main.layout.*
|
||||
|
||||
class R {
|
||||
class id {
|
||||
|
||||
@@ -3,7 +3,7 @@ package com.myapp
|
||||
import android.app.Activity
|
||||
import android.view.View
|
||||
import android.widget.*
|
||||
import kotlinx.android.synthetic.layout.*
|
||||
import kotlinx.android.synthetic.main.layout.*
|
||||
|
||||
class R {
|
||||
class id {
|
||||
|
||||
@@ -3,8 +3,8 @@ package com.myapp
|
||||
import android.app.Activity
|
||||
import android.view.View
|
||||
import android.widget.*
|
||||
import kotlinx.android.synthetic.layout.*
|
||||
import kotlinx.android.synthetic.layout.view.*
|
||||
import kotlinx.android.synthetic.main.layout.*
|
||||
import kotlinx.android.synthetic.main.layout.view.*
|
||||
|
||||
class R {
|
||||
class id {
|
||||
|
||||
@@ -3,8 +3,8 @@ package com.myapp
|
||||
import android.app.Activity
|
||||
import android.view.View
|
||||
import android.widget.*
|
||||
import kotlinx.android.synthetic.layout.*
|
||||
import kotlinx.android.synthetic.layout.view.*
|
||||
import kotlinx.android.synthetic.main.layout.*
|
||||
import kotlinx.android.synthetic.main.layout.view.*
|
||||
|
||||
class R {
|
||||
class id {
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
package com.myapp
|
||||
|
||||
import android.app.Activity
|
||||
import kotlinx.android.synthetic.layout.*
|
||||
import kotlinx.android.synthetic.main.layout.*
|
||||
|
||||
fun Activity.a() {
|
||||
val x = login
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
package com.myapp
|
||||
|
||||
import android.app.Fragment
|
||||
import kotlinx.android.synthetic.layout.*
|
||||
import kotlinx.android.synthetic.main.layout.*
|
||||
|
||||
fun Fragment.a() {
|
||||
val x = login
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@ package com.myapp
|
||||
import android.app.Activity
|
||||
import android.os.Bundle
|
||||
import java.io.File
|
||||
import kotlinx.android.synthetic.layout.*
|
||||
import kotlinx.android.synthetic.main.layout.*
|
||||
|
||||
public class MyActivity : Activity() {
|
||||
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@ package com.myapp
|
||||
import android.app.Fragment
|
||||
import android.os.Bundle
|
||||
import java.io.File
|
||||
import kotlinx.android.synthetic.layout.*
|
||||
import kotlinx.android.synthetic.main.layout.*
|
||||
|
||||
public class MyFragment : Fragment()
|
||||
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
package com.myapp
|
||||
|
||||
import android.view.View
|
||||
import kotlinx.android.synthetic.layout.view.*
|
||||
import kotlinx.android.synthetic.main.layout.view.*
|
||||
|
||||
fun View.a() {
|
||||
val x = login
|
||||
|
||||
Vendored
+1
-1
@@ -1,7 +1,7 @@
|
||||
package com.myapp
|
||||
|
||||
import android.app.Activity
|
||||
import kotlinx.android.synthetic.layout.*
|
||||
import kotlinx.android.synthetic.main.layout.*
|
||||
|
||||
class MyActivity: Activity() {
|
||||
val button = this.MyButton
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
package com.myapp
|
||||
|
||||
import android.app.Fragment
|
||||
import kotlinx.android.synthetic.layout.*
|
||||
import kotlinx.android.synthetic.main.layout.*
|
||||
|
||||
class MyFragment: Fragment() {
|
||||
val button = this.MyButton
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
package com.myapp
|
||||
|
||||
import android.app.Activity
|
||||
import kotlinx.android.synthetic.layout.*
|
||||
import kotlinx.android.synthetic.main.layout.*
|
||||
|
||||
class MyActivity: Activity() {
|
||||
val button = this.MyButton
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
package com.myapp
|
||||
|
||||
import android.app.Fragment
|
||||
import kotlinx.android.synthetic.layout.*
|
||||
import kotlinx.android.synthetic.main.layout.*
|
||||
|
||||
class MyFragment: Fragment() {
|
||||
val button = this.MyButton
|
||||
|
||||
+2
-2
@@ -1,8 +1,8 @@
|
||||
package com.myapp
|
||||
|
||||
import android.app.Activity
|
||||
import kotlinx.android.synthetic.layout.*
|
||||
import kotlinx.android.synthetic.layout1.*
|
||||
import kotlinx.android.synthetic.main.layout.*
|
||||
import kotlinx.android.synthetic.main.layout1.*
|
||||
|
||||
class MyActivity: Activity() {
|
||||
val button = this.login
|
||||
|
||||
+2
-2
@@ -2,8 +2,8 @@ package com.myapp
|
||||
|
||||
import android.app.Activity
|
||||
import android.app.Fragment
|
||||
import kotlinx.android.synthetic.layout.*
|
||||
import kotlinx.android.synthetic.layout1.*
|
||||
import kotlinx.android.synthetic.main.layout.*
|
||||
import kotlinx.android.synthetic.main.layout1.*
|
||||
|
||||
class MyActivity: Activity() {
|
||||
val button = this.login
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@ package com.myapp
|
||||
|
||||
import android.app.Fragment
|
||||
import java.io.File
|
||||
import kotlinx.android.synthetic.layout.*
|
||||
import kotlinx.android.synthetic.main.layout.*
|
||||
|
||||
public class MyFragment : Fragment() {
|
||||
init {login}
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@ package com.myapp
|
||||
import android.app.Activity
|
||||
import android.os.Bundle
|
||||
import java.io.File
|
||||
import kotlinx.android.synthetic.layout.*
|
||||
import kotlinx.android.synthetic.main.layout.*
|
||||
|
||||
public class MyActivity : Activity() {
|
||||
init {login}
|
||||
|
||||
Vendored
+1
-1
@@ -2,7 +2,7 @@ package com.myapp
|
||||
|
||||
import android.app.Fragment
|
||||
import java.io.File
|
||||
import kotlinx.android.synthetic.layout.*
|
||||
import kotlinx.android.synthetic.main.layout.*
|
||||
|
||||
public class MyFragment : Fragment() {
|
||||
init {login}
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ import android.app.Activity
|
||||
import android.app.Fragment
|
||||
import android.os.Bundle
|
||||
import java.io.File
|
||||
import kotlinx.android.synthetic.layout.*
|
||||
import kotlinx.android.synthetic.main.layout.*
|
||||
|
||||
public class MyActivity : Activity() {
|
||||
init { fragm }
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@ package com.myapp
|
||||
|
||||
import android.view.View
|
||||
import android.app.Activity
|
||||
import kotlinx.android.synthetic.layout.view.*
|
||||
import kotlinx.android.synthetic.main.layout.view.*
|
||||
|
||||
public class MyActivity : Activity() {
|
||||
init { View(this).login }
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ import android.app.Activity
|
||||
import android.view.View
|
||||
import android.os.Bundle
|
||||
import java.io.File
|
||||
import kotlinx.android.synthetic.layout.*
|
||||
import kotlinx.android.synthetic.main.layout.*
|
||||
|
||||
open class Fragment {
|
||||
open fun getActivity(): Activity = throw Exception("Function getActivity() is not overridden")
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@ package android.support.v4.app
|
||||
import android.app.Activity
|
||||
import android.view.View
|
||||
import java.io.File
|
||||
import kotlinx.android.synthetic.layout.*
|
||||
import kotlinx.android.synthetic.main.layout.*
|
||||
|
||||
open class Fragment {
|
||||
open fun getActivity(): Activity = throw Exception("Function getActivity() is not overridden")
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@ package android.support.v4.app
|
||||
import android.app.Activity
|
||||
import android.os.Bundle
|
||||
import java.io.File
|
||||
import kotlinx.android.synthetic.layout.*
|
||||
import kotlinx.android.synthetic.main.layout.*
|
||||
|
||||
open class FragmentManager {
|
||||
open fun findFragmentById(id: Int): Fragment = throw Exception("Function getFragmentById() is not overriden")
|
||||
|
||||
Reference in New Issue
Block a user