Escape widget ids which are Kotlin keywords
This commit is contained in:
+6
@@ -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
|
||||
|
||||
|
||||
+3
@@ -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
|
||||
|
||||
|
||||
+5
@@ -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>
|
||||
Reference in New Issue
Block a user