Android Extensions: Correctly handle namespaces in layout xml

#KT-19451 Fixed Target versions 1.1.5
This commit is contained in:
Vyacheslav Gerasimov
2017-08-16 15:38:41 +03:00
parent 1dfa05fe49
commit cb3a8d87d0
5 changed files with 38 additions and 3 deletions
@@ -0,0 +1,12 @@
package com.myapp
import android.app.Activity
import android.os.Bundle
import java.io.File
import kotlinx.android.synthetic.main.layout.*
public class MyActivity : Activity() {
override fun onCreate(savedInstanceState: Bundle?) {}
val button = login<caret>
}
@@ -0,0 +1,17 @@
<FrameLayout xmlns:a="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
a:id="@+id/item_detail_container"
a:layout_width="match_parent"
a:layout_height="match_parent"
tools:context=".ItemDetailActivity"
tools:ignore="MergeRootFrame" >
<Button
a:id="@+id/login"
a:layout_width="match_parent"
a:layout_height="wrap_content"
a:text="Sign in" />
</FrameLayout>