Escape widget ids which are Kotlin keywords

This commit is contained in:
Yan Zhulanow
2015-03-25 21:50:41 +03:00
parent 2af538e854
commit d0e4f86790
4 changed files with 28 additions and 3 deletions
@@ -18,3 +18,9 @@ val Activity.fragmentTag: ft<View, View?>
val Fragment.fragmentTag: ft<View, View?>
get() = getView().findViewById(0) : View
val Activity.`fun`: ft<TextView, TextView?>
get() = findViewById(0) as TextView
val Fragment.`fun`: ft<TextView, TextView?>
get() = getView().findViewById(0) as TextView
@@ -12,3 +12,6 @@ val View.includeTag: ft<View, View?>
val View.fragmentTag: ft<View, View?>
get() = findViewById(0) : View
val View.`fun`: ft<TextView, TextView?>
get() = findViewById(0) as TextView
@@ -16,4 +16,9 @@
android:layout_height="wrap_content"
android:layout_width="wrap_content" />
<TextView
android:id="@+id/fun"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</FrameLayout>