notification_template_lines.xml 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. ~ Copyright (C) 2015 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. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  18. android:layout_width="wrap_content"
  19. android:layout_height="wrap_content"
  20. android:orientation="vertical"
  21. android:paddingRight="8dp"
  22. android:paddingEnd="8dp"
  23. android:paddingTop="2dp"
  24. android:paddingBottom="2dp"
  25. >
  26. <LinearLayout
  27. android:id="@+id/line1"
  28. android:layout_width="fill_parent"
  29. android:layout_height="wrap_content"
  30. android:paddingTop="6dp"
  31. android:layout_marginLeft="8dp"
  32. android:layout_marginStart="8dp"
  33. android:orientation="horizontal"
  34. >
  35. <TextView android:id="@+id/title"
  36. android:textAppearance="@style/TextAppearance.StatusBar.EventContent.Title"
  37. android:layout_width="fill_parent"
  38. android:layout_height="wrap_content"
  39. android:singleLine="true"
  40. android:ellipsize="marquee"
  41. android:fadingEdge="horizontal"
  42. android:layout_weight="1"
  43. />
  44. <include
  45. layout="@layout/notification_template_part_time"
  46. android:id="@+id/time"
  47. android:layout_width="wrap_content"
  48. android:layout_height="wrap_content"
  49. android:layout_gravity="center"
  50. android:layout_weight="0"
  51. android:visibility="gone"
  52. />
  53. <include
  54. layout="@layout/notification_template_part_chronometer"
  55. android:id="@+id/chronometer"
  56. android:layout_width="wrap_content"
  57. android:layout_height="wrap_content"
  58. android:layout_gravity="center"
  59. android:layout_weight="0"
  60. android:visibility="gone"
  61. />
  62. </LinearLayout>
  63. <TextView android:id="@+id/text2"
  64. android:textAppearance="@style/TextAppearance.StatusBar.EventContent.Line2"
  65. android:layout_width="fill_parent"
  66. android:layout_height="wrap_content"
  67. android:layout_marginTop="-2dp"
  68. android:layout_marginBottom="-2dp"
  69. android:layout_marginLeft="8dp"
  70. android:layout_marginStart="8dp"
  71. android:singleLine="true"
  72. android:fadingEdge="horizontal"
  73. android:ellipsize="marquee"
  74. android:visibility="gone"
  75. />
  76. <LinearLayout
  77. android:id="@+id/line3"
  78. android:layout_width="fill_parent"
  79. android:layout_height="wrap_content"
  80. android:orientation="horizontal"
  81. android:gravity="center_vertical"
  82. android:layout_marginLeft="8dp"
  83. android:layout_marginStart="8dp"
  84. >
  85. <TextView android:id="@+id/text"
  86. android:textAppearance="@style/TextAppearance.StatusBar.EventContent"
  87. android:layout_width="0dp"
  88. android:layout_height="wrap_content"
  89. android:layout_weight="1"
  90. android:layout_gravity="center"
  91. android:singleLine="true"
  92. android:ellipsize="marquee"
  93. android:fadingEdge="horizontal"
  94. />
  95. <TextView android:id="@+id/info"
  96. android:textAppearance="@style/TextAppearance.StatusBar.EventContent.Info"
  97. android:layout_width="wrap_content"
  98. android:layout_height="wrap_content"
  99. android:layout_gravity="center"
  100. android:layout_weight="0"
  101. android:singleLine="true"
  102. android:gravity="center"
  103. android:paddingLeft="8dp"
  104. android:paddingStart="8dp"
  105. />
  106. </LinearLayout>
  107. </LinearLayout>