Fix android synthetic properties compiler plugin tests

This commit is contained in:
Yan Zhulanow
2015-08-20 21:28:46 +03:00
parent 0f5d87957d
commit 0339bc55df
52 changed files with 315 additions and 886 deletions
@@ -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>
@@ -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
@@ -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