android UI xml bridge initial
- add frontend.android module - add xml ids to kotlin extension properties converter - add converter basic functional test
This commit is contained in:
committed by
Yan Zhulanow
parent
c8c1ce521b
commit
1e8769b5f7
@@ -0,0 +1,21 @@
|
||||
import android.app.Activity
|
||||
import android.view.View
|
||||
|
||||
val Activity.item_detail_container: View
|
||||
get() = findViewById(R.id.item_detail_container)!!
|
||||
|
||||
val Activity.textView1: View
|
||||
get() = findViewById(R.id.textView1)!!
|
||||
|
||||
val Activity.password: View
|
||||
get() = findViewById(R.id.password)!!
|
||||
|
||||
val Activity.textView2: View
|
||||
get() = findViewById(R.id.textView2)!!
|
||||
|
||||
val Activity.passwordConfirmation: View
|
||||
get() = findViewById(R.id.passwordConfirmation)!!
|
||||
|
||||
val Activity.login: View
|
||||
get() = findViewById(R.id.login)!!
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
<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" >
|
||||
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView1"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Enter your password" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/password"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:ems="10"
|
||||
android:inputType="textPassword" >
|
||||
|
||||
<requestFocus />
|
||||
</EditText>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textView2"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Repeat your password" />
|
||||
|
||||
<EditText
|
||||
android:id="@+id/passwordConfirmation"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:ems="10"
|
||||
android:inputType="textPassword" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/login"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Sign in" />
|
||||
|
||||
</FrameLayout>
|
||||
Reference in New Issue
Block a user