diff options
author | Samuel Holland <samuel@sholland.org> | 2017-08-10 01:05:20 -0500 |
---|---|---|
committer | Samuel Holland <samuel@sholland.org> | 2017-08-10 01:05:20 -0500 |
commit | de53a1b50a27b4a05937a613dd3f8cf492910a65 (patch) | |
tree | e031515683a5a20a980c98b8bd6dd856426ad377 /app/src/main/res | |
parent | 87d3200b29d43ec5ee93de18d016c483cb3cb239 (diff) |
ProfileEdit: Finish writing code-behind
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'app/src/main/res')
-rw-r--r-- | app/src/main/res/layout/profile_edit_activity.xml | 6 | ||||
-rw-r--r-- | app/src/main/res/layout/profile_edit_fragment.xml | 38 |
2 files changed, 44 insertions, 0 deletions
diff --git a/app/src/main/res/layout/profile_edit_activity.xml b/app/src/main/res/layout/profile_edit_activity.xml new file mode 100644 index 00000000..aee54638 --- /dev/null +++ b/app/src/main/res/layout/profile_edit_activity.xml @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="utf-8"?> +<fragment xmlns:android="http://schemas.android.com/apk/res/android" + android:name="com.wireguard.android.ProfileEditFragment" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:tag="edit" /> diff --git a/app/src/main/res/layout/profile_edit_fragment.xml b/app/src/main/res/layout/profile_edit_fragment.xml new file mode 100644 index 00000000..2c25257b --- /dev/null +++ b/app/src/main/res/layout/profile_edit_fragment.xml @@ -0,0 +1,38 @@ +<?xml version="1.0" encoding="utf-8"?> +<layout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:app="http://schemas.android.com/apk/res-auto"> + + <data> + + <variable + name="profile" + type="com.wireguard.config.Profile" /> + </data> + + <ScrollView + android:layout_width="match_parent" + android:layout_height="match_parent" + android:padding="16dp"> + + <RelativeLayout + android:layout_width="match_parent" + android:layout_height="wrap_content"> + + <TextView + android:id="@+id/profile_name_label" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_alignParentTop="true" + android:labelFor="@+id/profile_name_text" + android:text="@string/profile_name" /> + + <EditText + android:id="@+id/profile_name_text" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_below="@+id/profile_name_label" + android:inputType="textCapWords" + android:text="@={profile.name}" /> + </RelativeLayout> + </ScrollView> +</layout> |