dialog_sponsor.xml 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. <LinearLayout
  2. xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:tools="http://schemas.android.com/tools"
  4. android:layout_width="fill_parent"
  5. android:layout_height="wrap_content"
  6. android:orientation="vertical"
  7. android:background="@drawable/section"
  8. android:paddingBottom="15dp">
  9. <TextView
  10. android:id="@+id/tv_dialog_sponsor_title"
  11. android:layout_width="fill_parent"
  12. android:layout_height="wrap_content"
  13. android:textAppearance="?android:attr/textAppearanceLarge"
  14. android:textStyle="bold"
  15. android:background="@drawable/section_title"
  16. android:paddingBottom="4dp"
  17. android:paddingEnd="10dp"
  18. android:paddingStart="20dp"
  19. android:paddingTop="4dp"
  20. android:textColor="@color/section_title"/>
  21. <LinearLayout
  22. android:layout_width="match_parent"
  23. android:layout_height="fill_parent"
  24. android:orientation="vertical"
  25. android:background="@drawable/entry"
  26. android:layout_margin="8dp"
  27. android:padding="7dp">
  28. <ImageView
  29. android:layout_width="match_parent"
  30. android:layout_height="wrap_content"
  31. android:src="@drawable/photo_placeholder_thumb"
  32. android:id="@+id/iv_dialog_sponsor_image"
  33. android:maxHeight="140dp"
  34. android:adjustViewBounds="true"
  35. android:contentDescription="@string/pop_menu_sponsors"/>
  36. <TextView
  37. android:id="@+id/tv_dialog_sponsor_text"
  38. android:layout_width="wrap_content"
  39. android:layout_height="wrap_content"
  40. android:layout_margin="7dp"
  41. android:textAppearance="@android:style/TextAppearance.Medium"/>
  42. <LinearLayout
  43. android:orientation="vertical"
  44. android:layout_width="match_parent"
  45. android:layout_height="match_parent">
  46. <LinearLayout
  47. android:orientation="horizontal"
  48. android:layout_width="wrap_content"
  49. android:layout_height="match_parent"
  50. android:id="@+id/ll_dialog_sponsor_url"
  51. tools:ignore="UseCompoundDrawables">
  52. <ImageView
  53. android:layout_width="30dp"
  54. android:layout_height="30dp"
  55. android:layout_marginBottom="20dp"
  56. android:layout_marginStart="15dp"
  57. android:layout_marginRight="15dp"
  58. android:layout_marginLeft="15dp"
  59. android:layout_marginEnd="15dp"
  60. android:layout_marginTop="20dp"
  61. android:adjustViewBounds="true"
  62. android:contentDescription="@string/sponsors_url"
  63. android:src="@drawable/web"/>
  64. <TextView
  65. android:text="@string/sponsors_url"
  66. android:layout_height="match_parent"
  67. android:id="@+id/tv_dialog_sponsor_url"
  68. android:layout_weight="1"
  69. android:gravity="center_vertical"
  70. android:layout_width="0dp"
  71. android:textColor="@color/background_menu"
  72. android:textSize="16sp"
  73. android:textStyle="normal|bold"/>
  74. </LinearLayout>
  75. <LinearLayout
  76. android:orientation="horizontal"
  77. android:layout_width="wrap_content"
  78. android:layout_height="match_parent"
  79. android:id="@+id/ll_dialog_sponsor_address"
  80. tools:ignore="UseCompoundDrawables">
  81. <ImageView
  82. android:layout_width="30dp"
  83. android:layout_height="30dp"
  84. android:adjustViewBounds="false"
  85. android:layout_marginBottom="20dp"
  86. android:layout_marginStart="15dp"
  87. android:layout_marginRight="15dp"
  88. android:layout_marginLeft="15dp"
  89. android:layout_marginEnd="15dp"
  90. android:layout_marginTop="20dp"
  91. android:contentDescription="@string/sponsors_url"
  92. android:src="@drawable/pinpoint"/>
  93. <TextView
  94. android:layout_height="match_parent"
  95. android:id="@+id/tv_dialog_sponsor_address"
  96. android:layout_weight="1"
  97. android:gravity="center_vertical"
  98. android:layout_width="0dp"
  99. android:textStyle="normal|bold"
  100. android:textSize="16sp"
  101. android:textColor="@color/background_menu"/>
  102. </LinearLayout>
  103. </LinearLayout>
  104. </LinearLayout>
  105. <Button
  106. android:id="@+id/bt_dialog_sponsor_close"
  107. android:layout_width="match_parent"
  108. android:layout_margin="5dp"
  109. android:background="@drawable/button_selector"
  110. android:text="@string/notification_close"
  111. android:textColor="@color/input_text_color"
  112. android:textStyle="bold"
  113. android:layout_height="50dp"/>
  114. </LinearLayout>