Android Extensions: Support Dialog classes (KT-16957)

This commit is contained in:
Yan Zhulanow
2017-03-21 18:46:38 +03:00
parent f1e303e18d
commit cba523958e
23 changed files with 101 additions and 11 deletions
@@ -0,0 +1,13 @@
package test
import android.app.Dialog
import kotlinx.android.synthetic.main.layout.*
fun test(dialog: Dialog) {
dialog.login
}
// 1 GETSTATIC test/R\$id\.login
// 1 INVOKEVIRTUAL android/app/Dialog\.findViewById
// 1 CHECKCAST android/widget/Button
// 0 _\$_findCachedViewById
@@ -0,0 +1,17 @@
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/item_detail_container"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".ItemDetailActivity"
tools:ignore="MergeRootFrame" >
<Button
android:id="@+id/login"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Sign in" />
</FrameLayout>