slider_preference_dialog.xml 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Copyright 2012 Jay Weisskopf
  4. Licensed under the MIT License (see LICENSE.txt)
  5. -->
  6. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  7. android:id="@+id/slider_preference_layout"
  8. android:layout_width="match_parent"
  9. android:layout_height="match_parent"
  10. android:orientation="vertical"
  11. android:paddingBottom="8dip"
  12. android:paddingLeft="16dip"
  13. android:paddingRight="16dip"
  14. android:paddingTop="8dip" >
  15. <RelativeLayout
  16. android:layout_width="match_parent"
  17. android:layout_height="wrap_content"
  18. android:orientation="horizontal"
  19. android:padding="16dip">
  20. <TextView
  21. android:id="@+android:id/message"
  22. android:layout_width="wrap_content"
  23. android:layout_height="wrap_content"
  24. android:gravity="left"/>
  25. <TextView
  26. android:id="@+id/value"
  27. android:layout_width="100dip"
  28. android:layout_height="wrap_content"
  29. android:layout_alignParentRight="true"
  30. android:textStyle="bold"
  31. android:text=""
  32. android:layout_gravity="right"
  33. android:gravity="right" />
  34. </RelativeLayout>
  35. <SeekBar
  36. android:id="@+id/slider_preference_seekbar"
  37. android:layout_width="fill_parent"
  38. android:layout_height="wrap_content"
  39. android:paddingBottom="12dip"
  40. android:paddingTop="12dip" />
  41. <LinearLayout
  42. android:layout_width="match_parent"
  43. android:layout_height="wrap_content"
  44. android:orientation="horizontal"
  45. android:layout_marginTop="-18dip"
  46. android:paddingLeft="16dip"
  47. android:paddingRight="16dip" >
  48. <TextView
  49. android:id="@+id/min"
  50. android:layout_width="wrap_content"
  51. android:layout_height="wrap_content"
  52. android:textSize="10dip"
  53. android:text=""
  54. android:gravity="left"/>
  55. <TextView
  56. android:id="@+id/max"
  57. android:layout_width="match_parent"
  58. android:layout_height="wrap_content"
  59. android:textSize="10dip"
  60. android:text=""
  61. android:gravity="right" />
  62. </LinearLayout>
  63. </LinearLayout>