master_chooser.xml 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. style="@style/padded"
  4. android:layout_width="match_parent"
  5. android:layout_height="wrap_content"
  6. android:focusable="false"
  7. android:orientation="vertical">
  8. <LinearLayout
  9. android:layout_width="fill_parent"
  10. android:layout_height="fill_parent">
  11. <TextView
  12. android:id="@+id/textView"
  13. android:layout_width="wrap_content"
  14. android:layout_height="wrap_content"
  15. android:layout_weight="1"
  16. android:text="@string/uri_text"
  17. android:textSize="18dp"/>
  18. <AutoCompleteTextView
  19. android:id="@+id/master_chooser_uri"
  20. android:layout_width="0dp"
  21. android:layout_height="wrap_content"
  22. android:layout_weight="20"
  23. android:hint="@string/master_uri_hint"
  24. android:singleLine="true">
  25. <requestFocus/>
  26. </AutoCompleteTextView>
  27. </LinearLayout>
  28. <LinearLayout
  29. style="@style/padded"
  30. android:layout_width="fill_parent"
  31. android:layout_height="fill_parent">
  32. <Button
  33. android:id="@+id/master_chooser_qr_code_button"
  34. android:layout_width="0dp"
  35. android:layout_height="wrap_content"
  36. android:layout_weight="1"
  37. android:onClick="qrCodeButtonClicked"
  38. android:text="@string/qr_code"/>
  39. <Button
  40. android:id="@+id/master_chooser_ok"
  41. android:layout_width="0dip"
  42. android:layout_height="wrap_content"
  43. android:layout_weight="1"
  44. android:enabled="false"
  45. android:onClick="okButtonClicked"
  46. android:text="@string/use_master"/>
  47. </LinearLayout>
  48. <CheckBox
  49. android:id="@+id/advanced_checkBox"
  50. style="@style/padded"
  51. android:layout_width="wrap_content"
  52. android:layout_height="wrap_content"
  53. android:checked="false"
  54. android:onClick="advancedCheckboxClicked"
  55. android:text="@string/show_advanced"/>
  56. <LinearLayout
  57. android:orientation="vertical"
  58. android:layout_width="fill_parent"
  59. android:layout_height="fill_parent"
  60. android:visibility="gone"
  61. android:id="@+id/advancedOptions">
  62. <TextView
  63. android:layout_width="wrap_content"
  64. android:layout_height="wrap_content"
  65. android:textAppearance="?android:attr/textAppearanceMedium"
  66. android:text="@string/select_interface"
  67. android:id="@+id/interfaceLabel"
  68. android:layout_gravity="center"
  69. android:autoText="true"/>
  70. <ListView
  71. android:layout_width="wrap_content"
  72. android:layout_height="0dp"
  73. android:id="@+id/networkInterfaces"
  74. android:layout_weight="1"
  75. android:visibility="visible"/>
  76. <LinearLayout
  77. android:layout_width="fill_parent"
  78. android:layout_height="fill_parent">
  79. <Button
  80. android:id="@+id/master_chooser_new_master_button"
  81. android:layout_width="wrap_content"
  82. android:layout_height="fill_parent"
  83. android:onClick="newMasterButtonClicked"
  84. android:text="@string/new_master"
  85. android:layout_weight="1"
  86. android:visibility="visible"/>
  87. <Button
  88. android:id="@+id/master_chooser_new_private_master_button"
  89. android:layout_width="wrap_content"
  90. android:layout_height="fill_parent"
  91. android:onClick="newPrivateMasterButtonClicked"
  92. android:text="@string/new_private_master"
  93. android:layout_weight="1"
  94. android:visibility="visible"/>
  95. </LinearLayout>
  96. </LinearLayout>
  97. <Button
  98. android:id="@+id/master_chooser_cancel"
  99. style="@style/padded"
  100. android:layout_width="fill_parent"
  101. android:layout_height="wrap_content"
  102. android:layout_gravity="bottom"
  103. android:onClick="cancelButtonClicked"
  104. android:text="@string/cancel"/>
  105. <LinearLayout
  106. android:id="@+id/connection_layout"
  107. android:layout_width="match_parent"
  108. android:layout_height="match_parent"
  109. android:orientation="vertical"
  110. style="@style/padded"
  111. android:gravity="center"
  112. android:visibility="gone">
  113. <ProgressBar
  114. android:id="@+id/connection_spinner"
  115. android:layout_width="wrap_content"
  116. android:layout_height="wrap_content"/>
  117. <TextView
  118. android:id="@+id/connection_text"
  119. android:layout_width="wrap_content"
  120. android:layout_height="wrap_content"
  121. android:text="@string/connection_text"
  122. android:textSize="18sp"/>
  123. </LinearLayout>
  124. </LinearLayout>