Advertisement
Guest User

Xml inf04

a guest
Feb 20th, 2023
260
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.18 KB | Source Code | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <androidx.constraintlayout.widget.ConstraintLayout 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. tools:context=".MainActivity">
  8.  
  9. <LinearLayout
  10. android:layout_width="412dp"
  11. android:layout_height="732dp"
  12. android:orientation="vertical"
  13. tools:ignore="MissingConstraints,TextSizeCheck,VisualLintBounds"
  14. tools:layout_editor_absoluteX="1dp"
  15. tools:layout_editor_absoluteY="1dp">
  16.  
  17. <TextView
  18. android:id="@+id/appTitle"
  19. android:layout_width="413dp"
  20. android:layout_height="64dp"
  21. android:text="Domek w górach"
  22. android:textAppearance="@style/TextAppearance.AppCompat.Large"
  23. android:textColor="#7E7E7E"
  24. android:textSize="40sp"
  25. tools:ignore="HardcodedText,TextSizeCheck,VisualLintBounds" />
  26.  
  27. <ImageView
  28. android:id="@+id/imageView"
  29. android:layout_width="412dp"
  30. android:layout_height="226dp"
  31. android:scaleType="fitXY"
  32. app:srcCompat="@drawable/obraz"
  33. tools:ignore="ContentDescription" />
  34.  
  35. <LinearLayout
  36. android:layout_width="412dp"
  37. android:layout_height="45dp"
  38. android:background="#008080"
  39. android:orientation="horizontal">
  40.  
  41. <Button
  42. android:id="@+id/like"
  43. style="?android:attr/buttonBarButtonStyle"
  44. android:layout_width="wrap_content"
  45. android:layout_height="wrap_content"
  46. android:background="#008080"
  47. android:text="POLUB"
  48. android:textColor="#FFFFFF"
  49. tools:ignore="HardcodedText,TextContrastCheck,TouchTargetSizeCheck" />
  50.  
  51. <Button
  52. android:id="@+id/dislike"
  53. android:layout_width="wrap_content"
  54. android:layout_height="wrap_content"
  55. style="?android:attr/buttonBarButtonStyle"
  56. android:textColor="#FFFFFF"
  57. android:background="#008080"
  58. android:text="USUŃ"
  59. tools:ignore="ButtonStyle,HardcodedText,TouchTargetSizeCheck" />
  60.  
  61. <Button
  62. android:id="@+id/save"
  63. android:layout_width="wrap_content"
  64. android:layout_height="wrap_content"
  65. style="?android:attr/buttonBarButtonStyle"
  66. android:textColor="#FFFFFF"
  67. android:background="#008080"
  68. android:backgroundTint="#008080"
  69. android:text="ZAPISZ"
  70. tools:ignore="ButtonStyle,HardcodedText,TouchTargetSizeCheck" />
  71. </LinearLayout>
  72.  
  73. <TextView
  74. android:id="@+id/counter"
  75. android:layout_width="match_parent"
  76. android:layout_height="wrap_content"
  77. android:text="0 polubień"
  78. android:textAlignment="viewEnd"
  79. android:textSize="20sp"
  80. tools:ignore="HardcodedText" />
  81.  
  82. <View
  83. android:id="@+id/divider"
  84. android:layout_width="match_parent"
  85. android:layout_height="1dp"
  86. android:background="?android:attr/listDivider"
  87. android:backgroundTint="#808080" />
  88.  
  89. <TextView
  90. android:id="@+id/descTitle"
  91. android:layout_width="match_parent"
  92. android:layout_height="wrap_content"
  93. android:text="Opis"
  94. android:textStyle="bold"
  95. tools:ignore="HardcodedText" />
  96.  
  97. <TextView
  98. android:id="@+id/desc"
  99. android:layout_width="match_parent"
  100. android:layout_height="wrap_content"
  101. android:text="Odwiedź komfortowy domek w Sudetach, blisko do szlaków turystycznych"
  102. android:textColor="#808080"
  103. tools:ignore="HardcodedText,TextContrastCheck" />
  104.  
  105. </LinearLayout>
  106.  
  107. </androidx.constraintlayout.widget.ConstraintLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement