notification_template_custom_big.xml 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. ~ Copyright (C) 2016 The Android Open Source Project
  4. ~
  5. ~ Licensed under the Apache License, Version 2.0 (the "License");
  6. ~ you may not use this file except in compliance with the License.
  7. ~ You may obtain a copy of the License at
  8. ~
  9. ~ http://www.apache.org/licenses/LICENSE-2.0
  10. ~
  11. ~ Unless required by applicable law or agreed to in writing, software
  12. ~ distributed under the License is distributed on an "AS IS" BASIS,
  13. ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. ~ See the License for the specific language governing permissions and
  15. ~ limitations under the License
  16. -->
  17. <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
  18. android:id="@+id/notification_background"
  19. android:layout_width="match_parent"
  20. android:layout_height="wrap_content" >
  21. <ImageView android:id="@+id/icon"
  22. android:layout_width="@dimen/notification_large_icon_width"
  23. android:layout_height="@dimen/notification_large_icon_height"
  24. android:scaleType="center"
  25. />
  26. <LinearLayout
  27. android:layout_width="match_parent"
  28. android:layout_height="wrap_content"
  29. android:layout_gravity="top"
  30. android:orientation="vertical" >
  31. <LinearLayout
  32. android:id="@+id/notification_main_column_container"
  33. android:layout_width="match_parent"
  34. android:layout_height="wrap_content"
  35. android:layout_marginLeft="@dimen/notification_large_icon_width"
  36. android:layout_marginStart="@dimen/notification_large_icon_width"
  37. android:paddingTop="@dimen/notification_main_column_padding_top"
  38. android:minHeight="@dimen/notification_large_icon_height"
  39. android:orientation="horizontal">
  40. <FrameLayout
  41. android:id="@+id/notification_main_column"
  42. android:layout_width="match_parent"
  43. android:layout_height="wrap_content"
  44. android:layout_weight="1"
  45. android:layout_marginLeft="@dimen/notification_content_margin_start"
  46. android:layout_marginStart="@dimen/notification_content_margin_start"
  47. android:layout_marginBottom="8dp"
  48. android:layout_marginRight="8dp"
  49. android:layout_marginEnd="8dp" />
  50. <FrameLayout
  51. android:id="@+id/right_side"
  52. android:layout_width="wrap_content"
  53. android:layout_height="wrap_content"
  54. android:layout_marginRight="8dp"
  55. android:layout_marginEnd="8dp"
  56. android:paddingTop="@dimen/notification_right_side_padding_top">
  57. <ViewStub android:id="@+id/time"
  58. android:layout_width="wrap_content"
  59. android:layout_height="wrap_content"
  60. android:layout_gravity="end|top"
  61. android:visibility="gone"
  62. android:layout="@layout/notification_template_part_time" />
  63. <ViewStub android:id="@+id/chronometer"
  64. android:layout_width="wrap_content"
  65. android:layout_height="wrap_content"
  66. android:layout_gravity="end|top"
  67. android:visibility="gone"
  68. android:layout="@layout/notification_template_part_chronometer" />
  69. <LinearLayout
  70. android:layout_width="match_parent"
  71. android:layout_height="wrap_content"
  72. android:orientation="horizontal"
  73. android:layout_gravity="end|bottom"
  74. android:layout_marginTop="20dp">
  75. <TextView android:id="@+id/info"
  76. android:textAppearance="@style/TextAppearance.Compat.Notification.Info"
  77. android:layout_width="wrap_content"
  78. android:layout_height="wrap_content"
  79. android:singleLine="true"
  80. />
  81. <ImageView android:id="@+id/right_icon"
  82. android:layout_width="16dp"
  83. android:layout_height="16dp"
  84. android:layout_gravity="center"
  85. android:layout_marginLeft="8dp"
  86. android:layout_marginStart="8dp"
  87. android:scaleType="centerInside"
  88. android:visibility="gone"
  89. android:alpha="0.6"
  90. />
  91. </LinearLayout>
  92. </FrameLayout>
  93. </LinearLayout>
  94. <ImageView
  95. android:layout_width="match_parent"
  96. android:layout_height="1px"
  97. android:id="@+id/action_divider"
  98. android:visibility="gone"
  99. android:layout_marginLeft="@dimen/notification_large_icon_width"
  100. android:layout_marginStart="@dimen/notification_large_icon_width"
  101. android:background="?android:attr/dividerHorizontal" />
  102. <LinearLayout
  103. android:id="@+id/actions"
  104. android:layout_width="match_parent"
  105. android:layout_height="wrap_content"
  106. android:orientation="horizontal"
  107. android:visibility="gone"
  108. android:showDividers="middle"
  109. android:divider="?android:attr/listDivider"
  110. android:dividerPadding="12dp"
  111. android:layout_marginLeft="@dimen/notification_large_icon_width"
  112. android:layout_marginStart="@dimen/notification_large_icon_width" >
  113. <!-- actions will be added here -->
  114. </LinearLayout>
  115. </LinearLayout>
  116. </FrameLayout>