BobStore/res/layout/swap_wifi_qr.xml
Peter Serwylo 6d807793c2 Moved code from LocalRepo to the Swap UI to reuse it.
Along with a bunch of networking stuff, a lot of UI to do with selecting
apps to swap was also moved. The background on the list is transparent,
which allows blue to shine through. Also, the text on the list items is
white, which will not work with a white background.

I've temporarily dropped support for searching this list too, until
I get some feedback from carrie et al.

NOTE: This stuff was written before hans fixed apcompat problems with
LocalRepoActivity, but then rebased over it later. As such, it doesn't
contain his fixes. Will need to do that before a stable release. i.e.
Still has a bit of a dependency on API 11 which needs to be resolved.
2014-10-22 18:01:24 +10:30

43 lines
1.9 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:tools="http://schemas.android.com/tools">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/textView"
android:layout_gravity="center_horizontal"
android:layout_alignParentTop="true"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:text="One person needs to scan the code, or type the URL of the other swapper into a browser."
style="@style/SwapTheme.Wizard.MainText"/>
<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/wifi_qr_code"
tools:src="@drawable/swap_qr_example"
android:layout_below="@+id/textView"
android:layout_above="@+id/device_ip_address"/>
<Button style="@style/SwapTheme.Wizard.OptionButton"
android:id="@+id/btn_not_working"
android:text="@string/swap_wifi_qr_not_working"
android:layout_alignParentBottom="true" />
<Button style="@style/SwapTheme.Wizard.OptionButton"
android:text="@string/open_qr_code_scanner"
android:layout_above="@id/btn_not_working" android:layout_gravity="center" android:id="@+id/button"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/device_ip_address"
tools:text="192.168.1.1:8888"
android:layout_above="@+id/button" android:layout_centerHorizontal="true"
style="@style/SwapTheme.Wizard.LocalIpAddress"/>
</RelativeLayout>