Advertisement
Guest User

Untitled

a guest
May 6th, 2015
258
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.83 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. /* apps/common/assets/default/default/skins/StatusBar.xml
  4. **
  5. ** Copyright (c) 2012-2014 The Linux Foundation. All rights reserved.
  6. ** Not a Contribution.
  7. ** Copyright 2006, The Android Open Source Project
  8. **
  9. ** Licensed under the Apache License, Version 2.0 (the "License");
  10. ** you may not use this file except in compliance with the License.
  11. ** You may obtain a copy of the License at
  12. **
  13. ** http://www.apache.org/licenses/LICENSE-2.0
  14. **
  15. ** Unless required by applicable law or agreed to in writing, software
  16. ** distributed under the License is distributed on an "AS IS" BASIS,
  17. ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  18. ** See the License for the specific language governing permissions and
  19. ** limitations under the License.
  20. */
  21. -->
  22.  
  23. <!-- android:background="@drawable/status_bar_closed_default_background" -->
  24. <com.android.systemui.statusbar.phone.PhoneStatusBarView
  25. xmlns:android="http://schemas.android.com/apk/res/android"
  26. xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui"
  27. android:id="@+id/msim_status_bar"
  28. android:background="@drawable/system_bar_background"
  29. android:orientation="vertical"
  30. android:focusable="true"
  31. android:descendantFocusability="afterDescendants"
  32. >
  33.  
  34. <ImageView
  35. android:id="@+id/notification_lights_out"
  36. android:layout_width="@dimen/status_bar_icon_size"
  37. android:layout_height="match_parent"
  38. android:paddingStart="6dip"
  39. android:paddingBottom="2dip"
  40. android:src="@drawable/ic_sysbar_lights_out_dot_small"
  41. android:scaleType="center"
  42. android:visibility="gone"
  43. />
  44.  
  45. <LinearLayout android:id="@+id/status_bar_contents"
  46. android:layout_width="match_parent"
  47. android:layout_height="match_parent"
  48. android:paddingStart="6dp"
  49. android:paddingEnd="8dp"
  50. android:orientation="horizontal"
  51. >
  52.  
  53. <com.android.systemui.statusbar.AlphaOptimizedFrameLayout
  54. android:id="@+id/notification_icon_area"
  55. android:layout_width="0dip"
  56. android:layout_height="match_parent"
  57. android:layout_weight="1"
  58. android:orientation="horizontal"
  59. >
  60. <!-- The alpha of this area is both controlled from PhoneStatusBarTransitions and
  61. PhoneStatusBar (DISABLE_NOTIFICATION_ICONS), so we need two views here. -->
  62. <com.android.keyguard.AlphaOptimizedLinearLayout
  63. android:id="@+id/notification_icon_area_inner"
  64. android:layout_width="match_parent"
  65. android:layout_height="match_parent"
  66. >
  67.  
  68. <TextView
  69. android:id="@+id/left_clock"
  70. android:textAppearance="@style/TextAppearance.StatusBar.Clock"
  71. android:layout_width="wrap_content"
  72. android:layout_height="fill_parent"
  73. android:singleLine="true"
  74. android:paddingEnd="6dip"
  75. android:gravity="center"
  76. android:visibility="gone"
  77. />
  78.  
  79. <com.android.systemui.statusbar.StatusBarIconView android:id="@+id/moreIcon"
  80. android:layout_width="@dimen/status_bar_icon_size"
  81. android:layout_height="match_parent"
  82. android:src="@drawable/stat_notify_more"
  83. android:visibility="gone"
  84. />
  85. <com.android.systemui.statusbar.phone.IconMerger android:id="@+id/notificationIcons"
  86. android:layout_width="match_parent"
  87. android:layout_height="match_parent"
  88. android:layout_alignParentStart="true"
  89. android:gravity="center_vertical"
  90. android:orientation="horizontal"/>
  91. </com.android.keyguard.AlphaOptimizedLinearLayout>
  92. </com.android.systemui.statusbar.AlphaOptimizedFrameLayout>
  93.  
  94. <com.android.keyguard.AlphaOptimizedLinearLayout android:id="@+id/system_icon_area"
  95. android:layout_width="wrap_content"
  96. android:layout_height="match_parent"
  97. android:orientation="horizontal"
  98. >
  99.  
  100. <com.android.systemui.statusbar.policy.Traffic
  101. android:id="@+id/traffic"
  102. android:layout_width="wrap_content"
  103. android:layout_height="match_parent"
  104. android:singleLine="false"
  105. android:gravity="right|center_vertical"
  106. />
  107.  
  108. <include layout="@layout/msim_system_icons" />
  109.  
  110. <com.android.systemui.BatteryLevelTextView android:id="@+id/battery_level_text"
  111. android:layout_width="wrap_content"
  112. android:layout_height="wrap_content"
  113. android:layout_gravity="center_vertical"
  114. android:layout_marginStart="@dimen/header_battery_margin_keyguard"
  115. android:textColor="#ffffff"
  116. android:textSize="@dimen/battery_level_text_size" />
  117.  
  118. <TextView
  119. android:id="@+id/clock"
  120. android:textAppearance="@style/TextAppearance.StatusBar.Clock"
  121. android:layout_width="wrap_content"
  122. android:layout_height="match_parent"
  123. android:singleLine="true"
  124. android:paddingStart="7dp"
  125. android:gravity="center_vertical|start"
  126. />
  127. </com.android.keyguard.AlphaOptimizedLinearLayout>
  128. </LinearLayout>
  129.  
  130. <com.android.keyguard.AlphaOptimizedLinearLayout
  131. android:id="@+id/center_clock_layout"
  132. android:gravity="center"
  133. android:orientation="horizontal"
  134. android:layout_width="match_parent"
  135. android:layout_height="match_parent"
  136. >
  137.  
  138. <TextView
  139. android:id="@+id/center_clock"
  140. android:textAppearance="@style/TextAppearance.StatusBar.Clock"
  141. android:layout_width="wrap_content"
  142. android:layout_height="match_parent"
  143. android:singleLine="true"
  144. android:gravity="center"
  145. android:visibility="gone"
  146. />
  147. </com.android.keyguard.AlphaOptimizedLinearLayout>
  148.  
  149. <ViewStub
  150. android:id="@+id/ticker_stub"
  151. android:inflatedId="@+id/ticker"
  152. android:layout="@layout/status_bar_ticker"
  153. android:layout_width="match_parent"
  154. android:layout_height="match_parent"
  155. />
  156.  
  157. <com.android.systemui.statusbar.policy.BatteryBarController
  158. android:layout_width="match_parent"
  159. android:layout_height="1dp"
  160. android:visibility="gone"
  161. systemui:viewLocation="1" />
  162.  
  163. </com.android.systemui.statusbar.phone.PhoneStatusBarView>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement