Advertisement
Guest User

Untitled

a guest
Sep 26th, 2016
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.10 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:app="http://schemas.android.com/apk/res-auto"
  4. xmlns:tools="http://schemas.android.com/tools"
  5. android:layout_width="match_parent"
  6. android:layout_height="match_parent">
  7.  
  8. <LinearLayout
  9. android:id="@+id/input_layout"
  10. android:layout_width="match_parent"
  11. android:layout_height="match_parent"
  12. android:orientation="vertical">
  13.  
  14. <LinearLayout
  15. android:id="@+id/top"
  16. android:layout_width="match_parent"
  17. android:layout_height="wrap_content"
  18. android:orientation="vertical"
  19. android:paddingBottom="@dimen/activity_vertical_margin"
  20. android:paddingLeft="@dimen/activity_horizontal_margin"
  21. android:paddingRight="@dimen/activity_horizontal_margin"
  22. android:paddingTop="@dimen/activity_vertical_margin"
  23. app:layout_behavior="@string/appbar_scrolling_view_behavior"
  24. tools:context=".ui.main.MainFragment">
  25.  
  26. <TextView
  27. android:layout_width="match_parent"
  28. android:layout_height="wrap_content"
  29. android:text="@string/distance"
  30. android:textStyle="bold"/>
  31.  
  32. <LinearLayout
  33. android:layout_width="match_parent"
  34. android:layout_height="wrap_content"
  35. android:orientation="horizontal">
  36. <EditText
  37. android:layout_width="60dp"
  38. android:layout_height="40dp"
  39. android:inputType="number" />
  40. <TextView
  41. android:layout_width="wrap_content"
  42. android:layout_height="40dp"
  43. android:id="@+id/meas_unit"
  44. tools:text="ft"/>
  45. <SeekBar
  46. android:id="@+id/distance_seekbar"
  47. android:layout_width="0dp"
  48. android:layout_height="40dp"
  49. android:max="95"
  50. android:progress="25"
  51. android:background="@null"
  52. android:layout_weight="1"/>
  53. </LinearLayout>
  54.  
  55. </LinearLayout>
  56.  
  57. <View
  58. android:layout_width="match_parent"
  59. android:layout_height="1dp"
  60. android:background="@android:drawable/divider_horizontal_bright" />
  61.  
  62. <LinearLayout
  63. android:id="@+id/bottom"
  64. android:layout_width="match_parent"
  65. android:layout_height="0dp"
  66. android:layout_weight="1"
  67. android:orientation="vertical"
  68. android:paddingBottom="@dimen/activity_vertical_margin"
  69. android:paddingLeft="@dimen/activity_horizontal_margin"
  70. android:paddingRight="@dimen/activity_horizontal_margin"
  71. android:paddingTop="@dimen/activity_vertical_margin"
  72. app:layout_behavior="@string/appbar_scrolling_view_behavior"
  73. android:elevation="6dp"
  74. tools:context=".ui.main.MainFragment">
  75.  
  76. <TextView
  77. android:layout_width="match_parent"
  78. android:layout_height="wrap_content"
  79. android:text="@string/putters"
  80. android:textStyle="bold"/>
  81.  
  82. </LinearLayout>
  83.  
  84.  
  85. </LinearLayout>
  86.  
  87. <LinearLayout
  88. android:orientation="horizontal"
  89. android:layout_width="match_parent"
  90. android:layout_height="wrap_content"
  91. android:layout_gravity="bottom"
  92. android:layout_alignParentTop="false"
  93. android:layout_alignParentEnd="false"
  94. android:layout_alignParentBottom="true"
  95. android:gravity="center"
  96. android:layout_alignWithParentIfMissing="false"
  97. android:layout_alignParentRight="false"
  98. android:elevation="6dp">
  99.  
  100. <Button
  101. android:layout_width="wrap_content"
  102. android:layout_height="wrap_content"
  103. android:text="New Button"
  104. android:id="@+id/button3"
  105. android:layout_gravity="center_vertical" />
  106.  
  107. <Button
  108. android:layout_width="127dp"
  109. android:layout_height="wrap_content"
  110. android:text="New Button"
  111. android:id="@+id/button4" />
  112.  
  113. </LinearLayout>
  114.  
  115. <android.support.design.widget.FloatingActionButton
  116. android:id="@+id/fab"
  117. android:layout_width="wrap_content"
  118. android:layout_height="wrap_content"
  119. android:layout_margin="16dp"
  120. android:clickable="true"
  121. android:src="@drawable/ic_person_add_24dp"
  122. app:layout_anchor="@id/top"
  123. app:layout_anchorGravity="bottom|right|end"
  124. android:tint="@android:color/white"/>
  125.  
  126. </android.support.design.widget.CoordinatorLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement