Fix android synthetic properties compiler plugin tests
This commit is contained in:
+13
@@ -0,0 +1,13 @@
|
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
tools:context=".ItemDetailActivity"
|
||||
tools:ignore="MergeRootFrame" >
|
||||
|
||||
<a.b.c
|
||||
android:id="@+id/MyView"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"/>
|
||||
|
||||
</FrameLayout>
|
||||
Vendored
+12
@@ -0,0 +1,12 @@
|
||||
package kotlinx.android.synthetic.test
|
||||
|
||||
import kotlin.internal.flexible.ft
|
||||
|
||||
@kotlin.internal.flexible.InvalidWidgetType("a.b.c")
|
||||
val android.app.Activity.MyView: ft<android.view.View, android.view.View?>
|
||||
get() = findViewById(0) as? android.view.View
|
||||
|
||||
@kotlin.internal.flexible.InvalidWidgetType("a.b.c")
|
||||
val android.app.Fragment.MyView: ft<android.view.View, android.view.View?>
|
||||
get() = getView().findViewById(0) as? android.view.View
|
||||
|
||||
Vendored
+8
@@ -0,0 +1,8 @@
|
||||
package kotlinx.android.synthetic.test.view
|
||||
|
||||
import kotlin.internal.flexible.ft
|
||||
|
||||
@kotlin.internal.flexible.InvalidWidgetType("a.b.c")
|
||||
val android.view.View.MyView: ft<android.view.View, android.view.View?>
|
||||
get() = findViewById(0) as? android.view.View
|
||||
|
||||
Reference in New Issue
Block a user