Advertisement
Guest User

Untitled

a guest
Jan 19th, 2020
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.44 KB | None | 0 0
  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. android:padding="10dp"
  9. tools:context=".MainActivity"
  10. android:focusable="true"
  11. android:focusableInTouchMode="true">
  12.  
  13. <TextView
  14. android:id="@+id/textView"
  15. android:layout_width="match_parent"
  16. android:layout_height="wrap_content"
  17. android:text="Podaj swój wzrost i wage aby obliczyć wskaźnik BMI"
  18. android:textAlignment="center"
  19. android:textSize="18dp" />
  20.  
  21. <TextView
  22. android:id="@+id/slowo"
  23. android:layout_width="wrap_content"
  24. android:layout_height="50dp"
  25. android:layout_marginTop="10dp"
  26. android:text="Twoje BMI to:"
  27. android:textSize="26dp"
  28. android:visibility="invisible" />
  29.  
  30. <TextView
  31. android:id="@+id/wynik"
  32. android:layout_width="match_parent"
  33. android:layout_height="50dp"
  34. android:layout_marginLeft="160dp"
  35. android:layout_marginTop="-50dp"
  36. android:gravity="center"
  37. android:text=""
  38. android:textSize="26dp" />
  39.  
  40. <EditText
  41. android:id="@+id/wzrost"
  42. android:layout_width="match_parent"
  43. android:layout_height="wrap_content"
  44. android:ems="10"
  45. android:hint="wzrost"
  46. android:inputType="number|numberDecimal"
  47. android:maxLength="3"
  48. android:text="" />
  49.  
  50. <EditText
  51. android:id="@+id/waga"
  52. android:layout_width="match_parent"
  53. android:layout_height="wrap_content"
  54. android:layout_marginTop="10dp"
  55. android:autofillHints=""
  56. android:ems="10"
  57. android:hint="waga"
  58. android:inputType="number|numberDecimal"
  59. android:maxLength="5"
  60. android:text="" />
  61.  
  62. <Button
  63. android:id="@+id/oblicz"
  64. android:layout_width="match_parent"
  65. android:layout_height="wrap_content"
  66. android:layout_marginTop="10dp"
  67. android:text="Oblicz BMI"
  68. android:textSize="22dp" />
  69.  
  70. <LinearLayout
  71. android:layout_width="match_parent"
  72. android:layout_height="221dp"
  73. android:orientation="vertical">
  74.  
  75. <EditText
  76. android:id="@+id/adres"
  77. android:layout_width="match_parent"
  78. android:layout_height="wrap_content"
  79. android:layout_marginTop="10dp"
  80. android:autofillHints=""
  81. android:ems="10"
  82. android:hint="Wpisz adres" />
  83.  
  84. <Button
  85. android:id="@+id/url2"
  86. android:layout_width="match_parent"
  87. android:layout_height="wrap_content"
  88. android:layout_marginTop="10dp"
  89. android:text="POKAŻ" />
  90.  
  91. <Button
  92. android:id="@+id/info"
  93.  
  94. android:layout_width="match_parent"
  95. android:layout_height="wrap_content"
  96. android:layout_marginTop="10dp"
  97. android:text="POMOC" />
  98.  
  99. <Button
  100. android:id="@+id/wsb"
  101.  
  102. android:layout_width="match_parent"
  103. android:layout_height="wrap_content"
  104. android:layout_marginTop="10dp"
  105. android:text="WSB" />
  106. </LinearLayout>
  107.  
  108.  
  109. </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement