main.xml

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout 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. android:orientation="vertical"
  8. tools:context=".Main">
  9.  
  10. <EditText
  11. android:id="@+id/editText"
  12. android:layout_width="match_parent"
  13. android:layout_height="wrap_content"
  14. android:layout_marginBottom="32dp"
  15. android:layout_marginEnd="8dp"
  16. android:layout_marginStart="8dp"
  17. android:layout_marginTop="32dp"
  18. android:ems="10"
  19. android:hint="@string/customer_name"
  20. android:inputType="textPersonName" />
  21.  
  22. <SeekBar
  23. android:id="@+id/seekBar"
  24. android:layout_width="match_parent"
  25. android:layout_height="wrap_content"
  26. android:layout_marginBottom="32dp"
  27. android:layout_marginEnd="8dp"
  28. android:layout_marginStart="8dp"
  29. android:layout_marginTop="32dp"
  30. android:max="10"
  31. android:progress="5" />
  32.  
  33. <Button
  34. android:id="@+id/button"
  35. android:layout_width="match_parent"
  36. android:layout_height="wrap_content"
  37. android:layout_marginBottom="32dp"
  38. android:layout_marginEnd="8dp"
  39. android:layout_marginStart="8dp"
  40. android:layout_marginTop="32dp"
  41. android:text="@string/button_ok" />
  42.  
  43. <TextView
  44. android:id="@+id/textView"
  45. android:layout_width="match_parent"
  46. android:layout_height="wrap_content"
  47. android:layout_marginBottom="32dp"
  48. android:layout_marginEnd="8dp"
  49. android:layout_marginStart="8dp"
  50. android:layout_marginTop="32dp" />
  51. </LinearLayout>

Proinf.net