blob: cb3136ba173cc3a6939eee4824c9255df7ab9c64 [file] [log] [blame]
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
android:layout_height="wrap_content"
android:layout_width="match_parent"
android:orientation="vertical"
android:layout_margin="20dp"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">
<ScrollView
android:layout_height="wrap_content"
android:layout_width="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
tools:context="net.named_data.nfd.WiFiDirectFragment">
<!-- Row with title and on/off switch -->
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="10dp">
<TextView
android:text="@string/fragment_wifidirect_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<Switch
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/wd_switch"
android:layout_alignParentRight="true" />
</RelativeLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:weightSum="1">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/fragment_wifidirect_label_me"
android:layout_weight="0.10" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/wd_this_device_name_textview" />
</LinearLayout>
<View
android:layout_width="fill_parent"
android:layout_height="1dp"
android:gravity="center_vertical"
android:background="@color/android_color_gray" />
<!-- Row for Group connection status -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:weightSum="1">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/fragment_wifidirect_group_conn_status"
android:layout_weight="0.10" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/wd_group_conn_status_textview" />
</LinearLayout>
<!-- Row for IP address display -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:weightSum="1">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/fragment_wifidirect_curr_ip"
android:layout_weight="0.10"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/wd_ip_address_textview" />
</LinearLayout>
<!-- Row for group owner indicator -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:weightSum="1">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/fragment_wifidirect_is_group_own"
android:layout_weight="0.10"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/wd_group_owner_textview" />
</LinearLayout>
</LinearLayout>
</ScrollView>
<!-- Column of currently connected peers -->
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/fragment_wifidirect_connected_peers"
android:layout_marginTop="10dp"/>
<View
android:layout_width="fill_parent"
android:layout_height="1dp"
android:gravity="center_vertical"
android:background="@color/android_color_gray" />
<ListView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/wd_connected_peers_listview"/>
<!-- Column of discovered peers -->
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/fragment_wifidirect_discovered_peers"
android:layout_marginTop="10dp"/>
<View
android:layout_width="fill_parent"
android:layout_height="1dp"
android:gravity="center_vertical"
android:background="@color/android_color_gray" />
<ListView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/wd_discovered_peers_listview"/>
</LinearLayout>