2014-08-19 15:37:44 +09:30
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
|
2015-07-28 00:07:55 +10:00
|
|
|
<!-- TODO: Add paddingStart in places where there is only paddingLeft. However Android Studio lint
|
|
|
|
gives an error, which is discussed here:
|
|
|
|
http://stackoverflow.com/questions/27449776/conflicting-lint-messages-regarding-paddingstart-usage?lq=1
|
|
|
|
-->
|
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">
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2015-06-28 23:25:16 +10:00
|
|
|
android:orientation="vertical">
|
2015-06-21 10:05:38 +10:00
|
|
|
|
2015-06-28 23:25:16 +10:00
|
|
|
<RelativeLayout
|
|
|
|
android:id="@+id/header"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="130dp">
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:scaleType="centerCrop"
|
|
|
|
android:src="@drawable/swap_start_header"/>
|
|
|
|
|
2015-08-19 08:44:55 +10:00
|
|
|
<!--
|
|
|
|
Removed for now, because there is no UI to hook this up to.
|
|
|
|
However, the general principle of having a help screen made accessible from the
|
|
|
|
start swap screen is still desirable, and so should be revisited in the future.
|
2015-06-28 23:25:16 +10:00
|
|
|
<ImageView
|
|
|
|
android:layout_width="24dp"
|
|
|
|
android:layout_height="24dp"
|
|
|
|
android:src="@drawable/ic_info_white"
|
2015-07-28 00:07:55 +10:00
|
|
|
android:layout_alignParentRight="true"
|
2015-06-28 23:25:16 +10:00
|
|
|
android:layout_alignParentEnd="true"
|
|
|
|
android:layout_alignParentTop="true"
|
2015-07-28 00:07:55 +10:00
|
|
|
android:layout_marginRight="10dp"
|
2015-06-28 23:25:16 +10:00
|
|
|
android:layout_marginEnd="10dp"
|
|
|
|
android:layout_marginTop="10dp"
|
2015-08-19 08:44:55 +10:00
|
|
|
/>-->
|
2015-06-21 10:05:38 +10:00
|
|
|
|
2015-06-28 23:25:16 +10:00
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_centerHorizontal="true"
|
|
|
|
android:layout_alignParentBottom="true"
|
|
|
|
android:padding="20dp"
|
2015-07-28 00:07:55 +10:00
|
|
|
android:paddingLeft="30dp"
|
|
|
|
android:paddingRight="30dp"
|
2015-06-28 23:25:16 +10:00
|
|
|
android:paddingEnd="30dp"
|
2015-08-17 21:22:21 +10:00
|
|
|
android:gravity="center"
|
2015-06-28 23:25:16 +10:00
|
|
|
android:textAlignment="center"
|
|
|
|
android:text="@string/swap_intro"
|
2015-09-02 16:54:09 +10:00
|
|
|
android:textColor="@android:color/white"
|
2015-08-17 21:22:21 +10:00
|
|
|
android:textSize="18sp"
|
|
|
|
tools:ignore="UnusedAttribute" />
|
2015-06-21 10:05:38 +10:00
|
|
|
|
2015-06-28 23:25:16 +10:00
|
|
|
</RelativeLayout>
|
2015-06-21 10:05:38 +10:00
|
|
|
|
2015-06-28 23:25:16 +10:00
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/bluetooth_info"
|
|
|
|
android:layout_width="match_parent"
|
2015-06-21 10:05:38 +10:00
|
|
|
android:layout_height="wrap_content"
|
2015-06-28 23:25:16 +10:00
|
|
|
android:padding="10dp"
|
|
|
|
android:orientation="horizontal">
|
2015-06-21 10:05:38 +10:00
|
|
|
|
2015-06-28 23:25:16 +10:00
|
|
|
<ImageView
|
|
|
|
android:layout_width="24dp"
|
|
|
|
android:layout_height="24dp"
|
|
|
|
android:tint="@color/swap_grey_icon"
|
|
|
|
android:src="@drawable/ic_bluetooth_white" />
|
2015-06-21 10:05:38 +10:00
|
|
|
|
2015-06-28 23:25:16 +10:00
|
|
|
<LinearLayout
|
2015-08-17 21:22:21 +10:00
|
|
|
android:layout_width="0dp"
|
2015-06-28 23:25:16 +10:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="vertical"
|
2015-07-28 00:07:55 +10:00
|
|
|
android:paddingLeft="15dp"
|
2015-06-28 23:25:16 +10:00
|
|
|
android:paddingStart="15dp"
|
2015-08-17 21:22:21 +10:00
|
|
|
android:layout_weight="1.00"
|
|
|
|
tools:ignore="RtlSymmetry">
|
2015-06-28 23:25:16 +10:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/bluetooth_visible"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
tools:text="@string/swap_visible_bluetooth"
|
|
|
|
android:textSize="18sp" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/device_id_bluetooth"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
tools:text="SP-120"
|
|
|
|
android:textColor="@color/swap_light_text" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
2015-07-28 00:07:55 +10:00
|
|
|
<android.support.v7.widget.SwitchCompat
|
2015-06-28 23:25:16 +10:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
tools:checked="true"
|
|
|
|
android:id="@+id/switch_bluetooth" />
|
2015-06-21 10:05:38 +10:00
|
|
|
|
2015-06-28 23:25:16 +10:00
|
|
|
</LinearLayout>
|
2015-06-21 10:05:38 +10:00
|
|
|
|
|
|
|
<LinearLayout
|
2015-06-28 23:25:16 +10:00
|
|
|
android:layout_width="match_parent"
|
2015-06-21 10:05:38 +10:00
|
|
|
android:layout_height="wrap_content"
|
2015-06-28 23:25:16 +10:00
|
|
|
android:padding="10dp"
|
|
|
|
android:orientation="horizontal">
|
2015-06-21 10:05:38 +10:00
|
|
|
|
2015-06-28 23:25:16 +10:00
|
|
|
<ImageView
|
|
|
|
android:layout_width="24dp"
|
|
|
|
android:layout_height="24dp"
|
|
|
|
android:tint="@color/swap_grey_icon"
|
|
|
|
android:src="@drawable/ic_network_wifi_white" />
|
2015-06-21 10:05:38 +10:00
|
|
|
|
2015-06-28 23:25:16 +10:00
|
|
|
<LinearLayout
|
2015-08-17 21:22:21 +10:00
|
|
|
android:layout_width="0dp"
|
2015-06-28 23:25:16 +10:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="vertical"
|
2015-07-28 00:07:55 +10:00
|
|
|
android:paddingLeft="15dp"
|
2015-06-28 23:25:16 +10:00
|
|
|
android:paddingStart="15dp"
|
2015-08-17 21:22:21 +10:00
|
|
|
android:layout_weight="1.00"
|
|
|
|
tools:ignore="RtlSymmetry">
|
2015-06-28 23:25:16 +10:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/wifi_visible"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
tools:text="@string/swap_not_visible_wifi"
|
|
|
|
android:textSize="18sp" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/device_id_wifi"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/swap_wifi_device_name"
|
|
|
|
android:textColor="@color/swap_light_text" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/wifi_network"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
tools:text="wifi network name"
|
|
|
|
android:textColor="@color/swap_bright_blue"
|
|
|
|
android:textSize="16sp" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
2015-07-28 00:07:55 +10:00
|
|
|
<android.support.v7.widget.SwitchCompat
|
2015-06-21 10:05:38 +10:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2015-06-28 23:25:16 +10:00
|
|
|
tools:checked="false"
|
|
|
|
android:id="@+id/switch_wifi" />
|
2015-06-21 10:05:38 +10:00
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
2015-06-28 23:25:16 +10:00
|
|
|
<LinearLayout
|
|
|
|
android:layout_width="match_parent"
|
2015-06-21 10:05:38 +10:00
|
|
|
android:layout_height="wrap_content"
|
2015-06-28 23:25:16 +10:00
|
|
|
android:paddingStart="20dp"
|
|
|
|
android:paddingEnd="20dp"
|
|
|
|
android:paddingBottom="5dp"
|
|
|
|
android:paddingTop="20dp">
|
2015-06-21 10:05:38 +10:00
|
|
|
|
2015-06-28 23:25:16 +10:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/text_people_nearby"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/swap_people_nearby"
|
|
|
|
android:textColor="@color/swap_light_text"
|
|
|
|
android:layout_weight="1.00"/>
|
2015-06-21 10:05:38 +10:00
|
|
|
|
2015-06-28 23:25:16 +10:00
|
|
|
<ProgressBar
|
|
|
|
android:id="@+id/searching_people_nearby"
|
|
|
|
android:layout_width="24dp"
|
|
|
|
android:layout_height="24dp"
|
|
|
|
android:indeterminate="true" />
|
2015-06-21 10:05:38 +10:00
|
|
|
|
2015-06-28 23:25:16 +10:00
|
|
|
</LinearLayout>
|
2015-06-21 10:05:38 +10:00
|
|
|
|
2015-06-28 23:25:16 +10:00
|
|
|
<ListView
|
|
|
|
android:id="@+id/list_people_nearby"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content">
|
2015-06-21 10:05:38 +10:00
|
|
|
|
2015-06-28 23:25:16 +10:00
|
|
|
</ListView>
|
2014-08-19 15:37:44 +09:30
|
|
|
|
2015-06-28 23:25:16 +10:00
|
|
|
<TextView
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/swap_cant_find_peers"
|
2015-07-28 00:07:55 +10:00
|
|
|
android:paddingLeft="20dp"
|
2015-08-17 21:22:21 +10:00
|
|
|
android:paddingStart="20dp"
|
|
|
|
android:paddingRight="20dp"
|
|
|
|
android:paddingEnd="20dp"
|
2015-06-28 23:25:16 +10:00
|
|
|
android:paddingTop="20dp"
|
|
|
|
android:textColor="@color/swap_light_text" />
|
2015-06-21 11:17:54 +10:00
|
|
|
|
2015-06-28 23:25:16 +10:00
|
|
|
<LinearLayout
|
|
|
|
android:orientation="horizontal"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content">
|
2015-06-21 10:05:38 +10:00
|
|
|
|
2015-06-28 23:25:16 +10:00
|
|
|
<Button
|
|
|
|
android:id="@+id/btn_send_fdroid"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2015-07-28 00:07:55 +10:00
|
|
|
android:drawableLeft="@drawable/ic_fdroid_grey"
|
2015-06-28 23:25:16 +10:00
|
|
|
android:drawableStart="@drawable/ic_fdroid_grey"
|
|
|
|
android:text="@string/swap_send_fdroid"
|
|
|
|
android:drawablePadding="10dp"
|
2015-07-28 00:07:55 +10:00
|
|
|
android:paddingLeft="25dp"
|
|
|
|
android:paddingRight="25dp"
|
2015-06-28 23:25:16 +10:00
|
|
|
android:paddingEnd="25dp"
|
|
|
|
android:background="@android:color/transparent" />
|
|
|
|
|
|
|
|
<Button
|
|
|
|
android:id="@+id/btn_qr_scanner"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2015-07-28 00:07:55 +10:00
|
|
|
android:drawableLeft="@drawable/ic_qr_grey"
|
2015-06-28 23:25:16 +10:00
|
|
|
android:drawableStart="@drawable/ic_qr_grey"
|
|
|
|
android:text="@string/swap_scan_qr_code"
|
|
|
|
android:drawablePadding="10dp"
|
2015-07-28 00:07:55 +10:00
|
|
|
android:paddingLeft="25dp"
|
|
|
|
android:paddingRight="25dp"
|
2015-06-28 23:25:16 +10:00
|
|
|
android:paddingEnd="25dp"
|
|
|
|
android:background="@android:color/transparent" />
|
2015-06-21 10:05:38 +10:00
|
|
|
|
2015-06-28 23:25:16 +10:00
|
|
|
</LinearLayout>
|
2015-06-23 22:46:52 +10:00
|
|
|
|
|
|
|
</LinearLayout>
|
2014-08-19 15:37:44 +09:30
|
|
|
|
2015-05-25 16:02:41 +10:00
|
|
|
</org.fdroid.fdroid.views.swap.StartSwapView>
|