2017-08-08 12:51:38 +02:00
|
|
|
<?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>
|
|
|
|
|
2017-08-09 12:12:00 +02:00
|
|
|
<ScrollView
|
2017-08-08 12:51:38 +02:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:padding="16dp">
|
|
|
|
|
2017-08-09 12:12:00 +02:00
|
|
|
<RelativeLayout
|
2017-08-08 12:51:38 +02:00
|
|
|
android:layout_width="match_parent"
|
2017-08-09 12:12:00 +02:00
|
|
|
android:layout_height="wrap_content">
|
2017-08-08 12:51:38 +02:00
|
|
|
|
2017-08-09 12:12:00 +02:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/profile_name_label"
|
2017-08-08 12:51:38 +02:00
|
|
|
android:layout_width="match_parent"
|
2017-08-09 12:12:00 +02:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_alignParentTop="true"
|
|
|
|
android:labelFor="@+id/profile_name_text"
|
|
|
|
android:text="@string/profile_name" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/profile_name_text"
|
|
|
|
style="?android:attr/textAppearanceMedium"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_below="@+id/profile_name_label"
|
|
|
|
android:text="@{profile.name}" />
|
2017-08-08 12:51:38 +02:00
|
|
|
|
2017-08-09 12:12:00 +02:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/public_key_label"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_below="@+id/profile_name_text"
|
|
|
|
android:labelFor="@+id/public_key_text"
|
|
|
|
android:text="@string/public_key" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/public_key_text"
|
|
|
|
style="?android:attr/textAppearanceMedium"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_below="@+id/public_key_label"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:text="@{profile.interface.publicKey}" />
|
|
|
|
</RelativeLayout>
|
|
|
|
</ScrollView>
|
2017-08-08 12:51:38 +02:00
|
|
|
</layout>
|