2017-08-08 12:51:38 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2017-08-13 14:24:03 +02:00
|
|
|
<layout xmlns:android="http://schemas.android.com/apk/res/android">
|
2017-08-08 12:51:38 +02:00
|
|
|
|
|
|
|
<data>
|
|
|
|
|
|
|
|
<variable
|
2017-08-13 14:24:03 +02:00
|
|
|
name="config"
|
|
|
|
type="com.wireguard.config.Config" />
|
2017-08-08 12:51:38 +02:00
|
|
|
</data>
|
|
|
|
|
2017-08-09 12:12:00 +02:00
|
|
|
<ScrollView
|
2017-08-08 12:51:38 +02:00
|
|
|
android:layout_width="match_parent"
|
2017-08-13 14:24:03 +02:00
|
|
|
android:layout_height="match_parent">
|
2017-08-08 12:51:38 +02:00
|
|
|
|
2017-08-09 12:12:00 +02:00
|
|
|
<RelativeLayout
|
2017-08-08 12:51:38 +02:00
|
|
|
android:layout_width="match_parent"
|
2017-08-13 14:24:03 +02:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:padding="16dp">
|
2017-08-08 12:51:38 +02:00
|
|
|
|
2017-08-09 12:12:00 +02:00
|
|
|
<TextView
|
2017-08-13 14:24:03 +02:00
|
|
|
android:id="@+id/config_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"
|
2017-08-13 14:24:03 +02:00
|
|
|
android:labelFor="@+id/config_name_text"
|
|
|
|
android:text="@string/config_name" />
|
2017-08-09 12:12:00 +02:00
|
|
|
|
|
|
|
<TextView
|
2017-08-13 14:24:03 +02:00
|
|
|
android:id="@+id/config_name_text"
|
2017-08-09 12:12:00 +02:00
|
|
|
style="?android:attr/textAppearanceMedium"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2017-08-13 14:24:03 +02:00
|
|
|
android:layout_below="@+id/config_name_label"
|
|
|
|
android:text="@{config.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"
|
2017-08-13 14:24:03 +02:00
|
|
|
android:layout_below="@+id/config_name_text"
|
2017-08-09 12:12:00 +02:00
|
|
|
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"
|
2017-08-13 14:24:03 +02:00
|
|
|
android:text="@{config.interface.publicKey}" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_below="@id/public_key_text"
|
|
|
|
android:text="@{config.toString()}" />
|
2017-08-09 12:12:00 +02:00
|
|
|
</RelativeLayout>
|
|
|
|
</ScrollView>
|
2017-08-08 12:51:38 +02:00
|
|
|
</layout>
|