Support View in android-compiler-plugin
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
android:orientation="vertical"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent"
|
||||
android:id="@+id/fragmentContainer"
|
||||
>
|
||||
<TextView
|
||||
android:layout_width="fill_parent"
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
android:orientation="vertical"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="fill_parent"
|
||||
android:id="@+id/container"
|
||||
>
|
||||
<TextView
|
||||
android:layout_width="fill_parent"
|
||||
|
||||
+2
-1
@@ -9,6 +9,7 @@ import android.view.View
|
||||
|
||||
import kotlinx.android.synthetic.main.*
|
||||
import kotlinx.android.synthetic.fragment.*
|
||||
import kotlinx.android.synthetic.fragment.view.*
|
||||
|
||||
public class MyActivity : Activity() {
|
||||
override fun onCreate(savedInstanceState: Bundle?) {
|
||||
@@ -25,6 +26,6 @@ public class MyFragment : Fragment() {
|
||||
|
||||
override fun onResume() {
|
||||
super.onResume()
|
||||
textField2.setText("test fragment")
|
||||
fragmentContainer.textField2.setText("test fragment")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user