Android Extensions: Support LayoutContainer in code generation
This commit is contained in:
+4
-3
@@ -9,13 +9,14 @@ import kotlinx.android.extensions.*
|
||||
@ContainerOptions(cache = CacheImplementation.HASH_MAP)
|
||||
class MyView(context: Context) : View(context)
|
||||
|
||||
@ContainerOptions(cache = CacheImplementation.NO_CACHE)
|
||||
class MyActivity : Activity() {
|
||||
init { MyView(this).login }
|
||||
}
|
||||
|
||||
// 2 public _\$_findCachedViewById
|
||||
// 1 INVOKEVIRTUAL android/app/Activity\.findViewById
|
||||
// 2 public _\$_clearFindViewByIdCache
|
||||
// 1 public _\$_findCachedViewById
|
||||
// 0 INVOKEVIRTUAL android/app/Activity\.findViewById
|
||||
// 1 public _\$_clearFindViewByIdCache
|
||||
// 1 GETSTATIC test/R\$id\.login
|
||||
// 1 INVOKEVIRTUAL android/view/View\.findViewById
|
||||
// 0 INVOKEVIRTUAL test/MyActivity\._\$_findCachedViewById
|
||||
|
||||
Reference in New Issue
Block a user