2014-08-19 15:37:44 +09:30
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
|
2015-05-25 16:02:41 +10:00
|
|
|
<org.fdroid.fdroid.views.swap.StartSwapView
|
2015-06-21 10:05:38 +10:00
|
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
android:orientation="vertical"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent">
|
|
|
|
|
|
|
|
<RelativeLayout
|
|
|
|
android:id="@+id/header"
|
2014-08-19 15:37:44 +09:30
|
|
|
android:layout_width="match_parent"
|
2015-06-21 11:17:54 +10:00
|
|
|
android:layout_height="130dp">
|
2015-06-21 10:05:38 +10:00
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2015-06-21 11:17:54 +10:00
|
|
|
android:scaleType="centerCrop"
|
|
|
|
android:src="@drawable/swap_start_header"/>
|
2015-06-21 10:05:38 +10:00
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:layout_width="24dp"
|
|
|
|
android:layout_height="24dp"
|
|
|
|
android:src="@drawable/ic_info_white"
|
|
|
|
android:layout_alignParentEnd="true"
|
|
|
|
android:layout_alignParentTop="true"
|
|
|
|
android:layout_marginEnd="10dp"
|
|
|
|
android:layout_marginTop="10dp"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_centerHorizontal="true"
|
|
|
|
android:layout_alignParentBottom="true"
|
|
|
|
android:padding="20dp"
|
|
|
|
android:paddingStart="30dp"
|
|
|
|
android:paddingEnd="30dp"
|
|
|
|
android:textAlignment="center"
|
2015-06-21 11:17:54 +10:00
|
|
|
android:text="@string/swap_intro"
|
|
|
|
android:textColor="@color/white"
|
2015-06-21 10:05:38 +10:00
|
|
|
android:textSize="18sp" />
|
|
|
|
|
|
|
|
</RelativeLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/bluetooth_info"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:padding="10dp"
|
|
|
|
android:weightSum="1">
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:layout_width="24dp"
|
|
|
|
android:layout_height="24dp"
|
2015-06-21 11:17:54 +10:00
|
|
|
android:tint="@color/swap_grey_icon"
|
|
|
|
android:src="@drawable/ic_bluetooth_white" />
|
2015-06-21 10:05:38 +10:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:paddingStart="15dp"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2015-06-21 11:17:54 +10:00
|
|
|
android:text="@string/swap_visible_bluetooth"
|
2015-06-21 10:05:38 +10:00
|
|
|
android:textSize="18sp" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/device_id_bluetooth"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
tools:text="SP-120"
|
2015-06-21 11:17:54 +10:00
|
|
|
android:textColor="@color/swap_light_text"
|
2015-06-21 10:05:38 +10:00
|
|
|
android:layout_weight="1.00"
|
|
|
|
android:paddingStart="10dp"
|
|
|
|
android:paddingEnd="10dp" />
|
|
|
|
|
|
|
|
<Switch
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:id="@+id/switch_bluetooth" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:padding="10dp"
|
|
|
|
android:weightSum="1">
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:layout_width="24dp"
|
|
|
|
android:layout_height="24dp"
|
2015-06-21 11:17:54 +10:00
|
|
|
android:tint="@color/swap_grey_icon"
|
|
|
|
android:src="@drawable/ic_network_wifi_white" />
|
2015-06-21 10:05:38 +10:00
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:paddingStart="15dp"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2015-06-21 11:17:54 +10:00
|
|
|
android:text="@string/swap_not_visible_wifi"
|
2015-06-21 10:05:38 +10:00
|
|
|
android:textSize="18sp" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
tools:text="wifi network name"
|
2015-06-21 11:17:54 +10:00
|
|
|
android:textColor="@color/swap_light_text"
|
2015-06-21 10:05:38 +10:00
|
|
|
android:textSize="16sp" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<TextView
|
2015-06-21 11:17:54 +10:00
|
|
|
android:layout_width="0dp"
|
2015-06-21 10:05:38 +10:00
|
|
|
android:layout_height="wrap_content"
|
2015-06-21 11:17:54 +10:00
|
|
|
android:text="@string/swap_wifi_device_name"
|
|
|
|
android:textColor="@color/swap_light_text"
|
2015-06-21 10:05:38 +10:00
|
|
|
android:layout_weight="1.00"
|
|
|
|
android:paddingStart="10dp"
|
|
|
|
android:paddingEnd="10dp" />
|
|
|
|
|
|
|
|
<Switch
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:id="@+id/switch_wifi" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2015-06-21 11:17:54 +10:00
|
|
|
android:paddingStart="20dp"
|
|
|
|
android:paddingEnd="20dp"
|
|
|
|
android:paddingBottom="5dp"
|
|
|
|
android:paddingTop="20dp">
|
2015-06-21 10:05:38 +10:00
|
|
|
|
|
|
|
<TextView
|
2015-06-21 11:17:54 +10:00
|
|
|
android:layout_width="0dp"
|
2015-06-21 10:05:38 +10:00
|
|
|
android:layout_height="wrap_content"
|
2015-06-21 11:17:54 +10:00
|
|
|
android:text="@string/swap_people_nearby"
|
|
|
|
android:textColor="@color/swap_light_text"
|
2015-06-21 10:05:38 +10:00
|
|
|
android:layout_weight="1.00"/>
|
|
|
|
|
|
|
|
<ProgressBar
|
|
|
|
android:layout_width="24dp"
|
|
|
|
android:layout_height="24dp"
|
|
|
|
android:indeterminate="true" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
2014-08-19 15:37:44 +09:30
|
|
|
|
2015-06-21 11:17:54 +10:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/no_people_nearby"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:padding="20dp"
|
|
|
|
android:textStyle="italic"
|
|
|
|
android:textColor="@color/swap_light_text"
|
|
|
|
android:text="@string/swap_no_peers_nearby"/>
|
|
|
|
|
|
|
|
<ListView
|
|
|
|
android:id="@+id/list_people_nearby"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
|
|
|
</ListView>
|
|
|
|
|
2014-08-19 15:37:44 +09:30
|
|
|
<TextView
|
2015-06-21 10:05:38 +10:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2015-06-21 11:17:54 +10:00
|
|
|
android:text="@string/swap_cant_find_peers"
|
|
|
|
android:paddingStart="20dp"
|
|
|
|
android:textColor="@color/swap_light_text" />
|
2015-06-21 10:05:38 +10:00
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
|
|
|
<Button
|
2014-08-19 15:37:44 +09:30
|
|
|
android:layout_width="wrap_content"
|
2015-06-22 08:59:20 +10:00
|
|
|
android:layout_height="wrap_content" />
|
2014-08-19 15:37:44 +09:30
|
|
|
|
2015-06-21 10:05:38 +10:00
|
|
|
<Button
|
|
|
|
android:layout_width="wrap_content"
|
2015-04-21 23:30:06 +10:00
|
|
|
android:layout_height="wrap_content"
|
2015-06-22 08:59:20 +10:00
|
|
|
android:layout_width="match_parent"/>
|
2014-08-19 15:37:44 +09:30
|
|
|
|
2015-05-25 16:02:41 +10:00
|
|
|
</org.fdroid.fdroid.views.swap.StartSwapView>
|