Advertisement
hainguyen09

Untitled

May 30th, 2015
255
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.07 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. /*
  4. ** Copyright 2015 The CyanogenMod Project
  5. **
  6. ** Licensed under the Apache License, Version 2.0 (the "License");
  7. ** you may not use this file except in compliance with the License.
  8. ** You may obtain a copy of the License at
  9. **
  10. ** http://www.apache.org/licenses/LICENSE-2.0
  11. **
  12. ** Unless required by applicable law or agreed to in writing, software
  13. ** distributed under the License is distributed on an "AS IS" BASIS,
  14. ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. ** See the License for the specific language governing permissions and
  16. ** limitations under the License.
  17. */
  18. -->
  19. <LinearLayout
  20. xmlns:android="http://schemas.android.com/apk/res/android"
  21. xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui"
  22. android:layout_height="match_parent"
  23. android:layout_width="match_parent"
  24. android:orientation="vertical"
  25. android:clipChildren="false"
  26. android:clipToPadding="false"
  27. android:id="@+id/nav_buttons">
  28. <FrameLayout
  29. android:layout_width="match_parent"
  30. android:layout_height="wrap_content" >
  31. <com.android.systemui.statusbar.policy.KeyButtonView
  32. android:id="@+id/ime_switcher"
  33. android:layout_width="match_parent"
  34. android:layout_height="40dp"
  35. android:contentDescription="@string/accessibility_ime_switch_button"
  36. android:scaleType="centerInside"
  37. android:src="@drawable/ic_ime_switcher_default"
  38. android:visibility="invisible" />
  39.  
  40. <com.android.systemui.statusbar.policy.KeyButtonView
  41. android:id="@+id/one"
  42. android:layout_height="40dp"
  43. android:layout_width="match_parent"
  44. android:layout_weight="0" />
  45. <com.android.systemui.statusbar.policy.KeyButtonView
  46. android:id="@+id/dpad_left"
  47. android:visibility="gone"
  48. android:layout_width="match_parent"
  49. android:layout_height="40dp"
  50. android:layout_weight="0"
  51. android:scaleType="fitCenter"
  52. systemui:keyRepeat="true"/>
  53. </FrameLayout>
  54. <LinearLayout
  55. android:layout_height="wrap_content"
  56. android:layout_width="match_parent"
  57. android:layout_weight="1"
  58. android:layout_marginTop="40dp"
  59. android:layout_marginBottom="40dp"
  60.  
  61. android:orientation="vertical"
  62. android:clipChildren="false"
  63. android:gravity="center_vertical"
  64. android:id="@+id/mid_nav_buttons"
  65. android:layout_gravity="center_vertical"
  66. android:clipToPadding="false"
  67. android:animateLayoutChanges="true">
  68. <com.android.systemui.statusbar.policy.KeyButtonView
  69. android:id="@+id/two"
  70. android:layout_height="80dp"
  71. android:layout_width="match_parent"
  72. android:layout_weight="0"
  73. systemui:keyRepeat="true" />
  74. <View
  75. android:layout_height="0dp"
  76. android:layout_width="match_parent"
  77. android:layout_weight="1"
  78. android:visibility="invisible" />
  79. <com.android.systemui.statusbar.policy.KeyButtonView
  80. android:id="@+id/three"
  81. android:layout_height="80dp"
  82. android:layout_width="match_parent"
  83. systemui:keyRepeat="true"
  84. android:layout_weight="0" />
  85. <View
  86. android:layout_height="0dp"
  87. android:layout_width="match_parent"
  88. android:layout_weight="1"
  89. android:visibility="invisible" />
  90. <com.android.systemui.statusbar.policy.KeyButtonView
  91. android:id="@+id/four"
  92. android:layout_height="80dp"
  93. android:layout_width="match_parent"
  94. android:layout_weight="0"
  95. systemui:keyRepeat="true" />
  96. <View
  97. android:layout_height="0dp"
  98. android:layout_width="match_parent"
  99. android:layout_weight="1"
  100. android:visibility="invisible" />
  101. <com.android.systemui.statusbar.policy.KeyButtonView
  102. android:id="@+id/five"
  103. android:layout_height="80dp"
  104. android:layout_width="match_parent"
  105. android:layout_weight="0"
  106. systemui:keyRepeat="true" />
  107. </LinearLayout>
  108. <FrameLayout
  109. android:layout_width="match_parent"
  110. android:layout_height="wrap_content" >
  111. <com.android.systemui.statusbar.policy.KeyButtonView
  112. android:id="@+id/dpad_right"
  113. android:visibility="gone"
  114. android:layout_width="match_parent"
  115. android:layout_height="40dp"
  116. android:layout_weight="0"
  117. android:scaleType="fitCenter"
  118. systemui:keyRepeat="true" />
  119. <com.android.systemui.statusbar.policy.KeyButtonView
  120. android:id="@+id/six"
  121. android:layout_height="40dp"
  122. android:layout_width="match_parent"
  123. android:layout_weight="0"
  124. systemui:keyRepeat="true" />
  125. </FrameLayout>
  126.  
  127. </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement