Guest User

Untitled

a guest
Jan 17th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.73 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <com.daimajia.swipe.SwipeLayout android:id="@+id/sample1"
  3. xmlns:android="http://schemas.android.com/apk/res/android"
  4. android:layout_width="match_parent"
  5. android:layout_height="wrap_content">
  6.  
  7. <!-- BOTTOM VIEW LEFT-->
  8. <LinearLayout
  9. android:id="@+id/bottom_wrapper"
  10. android:layout_width="160dp"
  11. android:layout_height="match_parent"
  12. android:background="#cdb70d0d"
  13. android:weightSum="1">
  14. <!--What you want to show-->
  15. <TextView
  16. android:id="@+id/closeResultBubble"
  17. android:layout_width="wrap_content"
  18. android:layout_height="match_parent"
  19. android:layout_gravity="center_horizontal|center_vertical"
  20. android:text="@string/swipe_to_close"
  21. android:textColor="@color/white"
  22. android:textSize="15sp"/>
  23. </LinearLayout>
  24.  
  25.  
  26. <!-- SURFACE VIEW START - MAIN VISIBLE CONTENT (SHOWN BY DEFAULT) -->
  27. <phonetoaster.com.bubbletranslate.activity.TouchableLinearLayout
  28. xmlns:android="http://schemas.android.com/apk/res/android"
  29. xmlns:app="http://schemas.android.com/apk/res-auto"
  30. android:layout_width="match_parent"
  31. android:layout_height="wrap_content"
  32. android:focusable="true"
  33. android:focusableInTouchMode="true"
  34. android:orientation="vertical"
  35. app:layout_behavior="@string/AUTO"
  36. app:layout_collapseParallaxMultiplier="1.0">
  37.  
  38. <!--HEADING WITH ICON BUTTONS-->
  39. <LinearLayout
  40. android:layout_width="wrap_content"
  41. android:layout_height="wrap_content"
  42. android:orientation="vertical"
  43. >
  44.  
  45. <!--HEADING WITH ICON BUTTONS-->
  46. <LinearLayout
  47. android:layout_width="fill_parent"
  48. android:layout_height="40dp"
  49. android:background="@color/main_blue"
  50. android:orientation="horizontal"
  51. android:weightSum="10">
  52.  
  53. <android.support.v7.widget.AppCompatImageButton
  54. android:id="@+id/settingsButtonTop"
  55. android:layout_width="0dp"
  56. android:layout_height="wrap_content"
  57. android:layout_gravity="center"
  58. android:layout_weight="2"
  59. android:adjustViewBounds="true"
  60. android:background="@null"
  61. android:contentDescription="@string/settings"
  62. android:src="@drawable/settings"
  63. android:tint="@color/white"/>
  64.  
  65. <android.support.v7.widget.AppCompatTextView
  66. android:layout_width="0dp"
  67. android:layout_height="match_parent"
  68. android:layout_weight="6"
  69. android:gravity="center"
  70. android:text="@string/app_name"
  71. android:textColor="@color/white"
  72. android:textSize="15sp"/>
  73.  
  74. <android.support.v7.widget.AppCompatImageButton
  75. android:id="@+id/closeButtonTop"
  76. android:layout_width="0dp"
  77. android:layout_height="wrap_content"
  78. android:layout_gravity="center"
  79. android:layout_weight="2"
  80. android:adjustViewBounds="true"
  81. android:background="@null"
  82. android:contentDescription="@string/close"
  83. android:src="@drawable/close"
  84. android:tint="@color/white"/>
  85.  
  86. </LinearLayout>
  87.  
  88. <!--RESULT-->
  89. <LinearLayout
  90. android:layout_width="fill_parent"
  91. android:layout_height="wrap_content"
  92. android:background="@color/white"
  93. android:descendantFocusability="beforeDescendants"
  94. android:orientation="vertical"
  95. android:padding="10dp">
  96.  
  97. <!--ORIGINAL PART-->
  98.  
  99. <!--ORIGINAL SETTINGS BAR-->
  100. <LinearLayout
  101. android:id="@+id/original_text"
  102. android:layout_width="fill_parent"
  103. android:layout_height="wrap_content"
  104. android:background="@color/white"
  105. android:orientation="horizontal">
  106.  
  107. <android.support.v7.widget.AppCompatTextView
  108. android:id="@+id/textViewOriginalTextSelectedLanguage"
  109. android:layout_width="wrap_content"
  110. android:layout_height="match_parent"
  111. android:gravity="start"
  112. android:text="@string/original"
  113. android:textColor="@color/dark_gray"
  114. android:textSize="15sp"/>
  115.  
  116. <Spinner
  117. android:id="@+id/source_lang_spinner"
  118. android:layout_width="wrap_content"
  119. android:layout_height="wrap_content"
  120. android:backgroundTint="@color/main_blue"
  121. android:gravity="start"/>
  122. </LinearLayout>
  123.  
  124. <!--ORIGINAL TEXT-->
  125. <!-- THIS EDITTEXT CANNOT BE EDITED -->
  126.  
  127. <android.support.v7.widget.AppCompatEditText
  128. android:id="@+id/editTextSourceText"
  129. android:layout_width="fill_parent"
  130. android:layout_height="wrap_content"
  131. android:focusableInTouchMode="true"
  132. android:focusable="true"
  133. android:cursorVisible="true"
  134. android:gravity="start"
  135. android:inputType="textMultiLine"
  136. android:text="@string/lipsum"
  137. android:textColor="@color/dark_gray"
  138. android:textSize="15sp"/>
  139.  
  140. <ScrollView
  141. android:id="@+id/scrollViewSource"
  142. android:layout_width="fill_parent"
  143. android:focusableInTouchMode="true"
  144. android:layout_height="110dp"
  145. android:scrollbars="vertical">
  146.  
  147.  
  148. <!--
  149. <android.support.v7.widget.AppCompatTextView
  150. android:id="@+id/textViewSourceText"
  151. android:layout_width="fill_parent"
  152. android:layout_height="wrap_content"
  153. android:focusableInTouchMode="true"
  154. android:gravity="start"
  155. android:inputType="textMultiLine"
  156. android:text="@string/lipsum"
  157. android:textColor="@color/dark_gray"
  158. android:textSize="15sp"/>
  159. -->
  160. </ScrollView>
  161.  
  162.  
  163. <!--HORIZONTAL RULE-->
  164. <View style="@style/Divider"/>
  165.  
  166. <!--TRANSLATION PART-->
  167. <LinearLayout
  168. android:id="@+id/translated_text"
  169. android:layout_width="fill_parent"
  170. android:layout_height="wrap_content"
  171. android:background="@color/white"
  172. android:orientation="horizontal">
  173.  
  174. <!--LANG BAR-->
  175. <android.support.v7.widget.AppCompatTextView
  176. android:layout_width="wrap_content"
  177. android:layout_height="match_parent"
  178. android:gravity="start"
  179. android:text="@string/original"
  180. android:textColor="@color/dark_gray"
  181. android:textSize="15sp"/>
  182.  
  183. <Spinner
  184. android:id="@+id/translation_lang_spinner"
  185. android:layout_width="wrap_content"
  186. android:layout_height="wrap_content"
  187. android:backgroundTint="@color/main_blue"
  188. android:gravity="start"/>
  189. </LinearLayout>
  190.  
  191. <!--TRANSLATED TEXT-->
  192. <ScrollView
  193. android:id="@+id/scrollViewResult"
  194. android:layout_width="fill_parent"
  195. android:layout_height="110dp"
  196. android:scrollbars="vertical">
  197.  
  198. <android.support.v7.widget.AppCompatTextView
  199. android:id="@+id/textViewTranslatedText"
  200. android:layout_width="fill_parent"
  201. android:layout_height="wrap_content"
  202. android:gravity="start"
  203. android:inputType="textMultiLine"
  204. android:text="@string/lipsum"
  205. android:textColor="@color/dark_gray"
  206. android:textSize="15sp"/>
  207.  
  208. </ScrollView>
  209.  
  210. </LinearLayout>
  211.  
  212. <!--COPY TRANSLATION BTN-->
  213. <LinearLayout
  214. android:layout_width="fill_parent"
  215. android:layout_height="wrap_content"
  216. android:background="@color/white"
  217. android:orientation="vertical">
  218.  
  219. <android.support.v7.widget.AppCompatButton
  220. android:id="@+id/copyTranslationButton"
  221. android:layout_width="fill_parent"
  222. android:background="@color/main_blue"
  223. android:textColor="@color/white"
  224. android:text="@string/copy_to_clipboard"
  225. android:layout_height="wrap_content"/>
  226.  
  227. </LinearLayout>
  228.  
  229. <!-- Surface View End -->
  230. </LinearLayout>
  231. </phonetoaster.com.bubbletranslate.activity.TouchableLinearLayout>
  232.  
  233. <!-- Surface View End -->
  234. </com.daimajia.swipe.SwipeLayout>
Add Comment
Please, Sign In to add comment