1 <?xml version="1.0" encoding="utf-8"?> 2 <com.android.systemui.globalactions.GlobalActionsGridLayout 3 xmlns:android="http://schemas.android.com/apk/res/android" 4 android:id="@id/global_actions_view" 5 android:layout_width="match_parent" 6 android:layout_height="match_parent" 7 android:orientation="horizontal" 8 android:theme="@style/qs_theme" 9 android:gravity="right | center_vertical" 10 android:clipChildren="false" 11 android:clipToPadding="false" 12 android:paddingRight="@dimen/global_actions_grid_container_shadow_offset" 13 android:layout_marginRight="@dimen/global_actions_grid_container_negative_shadow_offset" 14 > 15 <LinearLayout 16 android:layout_height="wrap_content" 17 android:layout_width="wrap_content" 18 android:orientation="vertical" 19 android:layout_marginRight="@dimen/global_actions_grid_container_bottom_margin" 20 android:clipChildren="false" 21 android:clipToPadding="false" 22 > 23 <!-- Grid of action items --> 24 <com.android.systemui.globalactions.ListGridLayout 25 android:id="@android:id/list" 26 android:layout_width="wrap_content" 27 android:layout_height="wrap_content" 28 android:orientation="vertical" 29 android:layout_marginTop="@dimen/global_actions_grid_side_margin" 30 android:translationZ="@dimen/global_actions_translate" 31 android:paddingLeft="@dimen/global_actions_grid_vertical_padding" 32 android:paddingRight="@dimen/global_actions_grid_vertical_padding" 33 android:paddingTop="@dimen/global_actions_grid_horizontal_padding" 34 android:paddingBottom="@dimen/global_actions_grid_horizontal_padding" 35 android:background="?android:attr/colorBackgroundFloating" 36 > 37 <LinearLayout 38 android:layout_width="wrap_content" 39 android:layout_height="wrap_content" 40 android:visibility="gone" 41 android:layoutDirection="locale" 42 /> 43 <LinearLayout 44 android:layout_width="wrap_content" 45 android:layout_height="wrap_content" 46 android:visibility="gone" 47 android:layoutDirection="locale" 48 /> 49 <LinearLayout 50 android:layout_width="wrap_content" 51 android:layout_height="wrap_content" 52 android:visibility="gone" 53 android:layoutDirection="locale" 54 /> 55 </com.android.systemui.globalactions.ListGridLayout> 56 <!-- For separated items--> 57 <LinearLayout 58 android:id="@+id/separated_button" 59 android:layout_width="match_parent" 60 android:layout_height="wrap_content" 61 android:layout_marginTop="@dimen/global_actions_grid_side_margin" 62 android:layout_marginBottom="@dimen/global_actions_grid_side_margin" 63 android:paddingLeft="@dimen/global_actions_grid_vertical_padding" 64 android:paddingRight="@dimen/global_actions_grid_vertical_padding" 65 android:paddingTop="@dimen/global_actions_grid_horizontal_padding" 66 android:paddingBottom="@dimen/global_actions_grid_horizontal_padding" 67 android:orientation="horizontal" 68 android:layoutDirection="ltr" 69 android:background="?android:attr/colorBackgroundFloating" 70 android:gravity="center" 71 android:translationZ="@dimen/global_actions_translate" 72 /> 73 74 </LinearLayout> 75 76 </com.android.systemui.globalactions.GlobalActionsGridLayout> 77