1<?xml version="1.0" encoding="utf-8"?> 2<androidx.constraintlayout.widget.ConstraintLayout 3 xmlns:android="http://schemas.android.com/apk/res/android" 4 xmlns:app="http://schemas.android.com/apk/res-auto" 5 android:id="@+id/global_actions_grid_root" 6 android:layout_width="match_parent" 7 android:layout_height="match_parent" 8 android:clipChildren="false" 9 android:clipToPadding="false" 10 android:layout_marginBottom="@dimen/global_actions_grid_container_negative_shadow_offset" 11> 12 13 <FrameLayout 14 android:id="@+id/global_actions_panel_container" 15 android:layout_width="match_parent" 16 android:layout_height="0dp" 17 app:layout_constraintTop_toTopOf="parent" 18 app:layout_constraintBottom_toTopOf="@id/global_actions_view" 19 /> 20 21 <com.android.systemui.globalactions.GlobalActionsGridLayout 22 android:id="@id/global_actions_view" 23 android:layout_width="match_parent" 24 android:layout_height="wrap_content" 25 android:orientation="horizontal" 26 android:theme="@style/Theme.SystemUI.QuickSettings" 27 app:layout_constraintBottom_toBottomOf="parent" 28 app:layout_constraintLeft_toLeftOf="parent" 29 app:layout_constraintRight_toRightOf="parent" 30 android:gravity="bottom | center_horizontal" 31 android:clipChildren="false" 32 android:clipToPadding="false" 33 android:paddingBottom="@dimen/global_actions_grid_container_shadow_offset" 34 android:layout_marginBottom="@dimen/global_actions_grid_container_negative_shadow_offset" 35 > 36 <LinearLayout 37 android:layout_height="wrap_content" 38 android:layout_width="wrap_content" 39 android:layoutDirection="ltr" 40 android:clipChildren="false" 41 android:clipToPadding="false" 42 android:layout_marginBottom="@dimen/global_actions_grid_container_bottom_margin" 43 > 44 <!-- For separated items--> 45 <LinearLayout 46 android:id="@+id/separated_button" 47 android:layout_width="wrap_content" 48 android:layout_height="match_parent" 49 android:layout_marginLeft="@dimen/global_actions_grid_side_margin" 50 android:layout_marginRight="@dimen/global_actions_grid_side_margin" 51 android:paddingLeft="@dimen/global_actions_grid_horizontal_padding" 52 android:paddingRight="@dimen/global_actions_grid_horizontal_padding" 53 android:paddingTop="@dimen/global_actions_grid_vertical_padding" 54 android:paddingBottom="@dimen/global_actions_grid_vertical_padding" 55 android:orientation="vertical" 56 android:gravity="center" 57 android:translationZ="@dimen/global_actions_translate" 58 /> 59 <!-- Grid of action items --> 60 <com.android.systemui.globalactions.ListGridLayout 61 android:id="@android:id/list" 62 android:layout_width="wrap_content" 63 android:layout_height="wrap_content" 64 android:orientation="vertical" 65 android:gravity="right" 66 android:layout_marginRight="@dimen/global_actions_grid_side_margin" 67 android:translationZ="@dimen/global_actions_translate" 68 android:paddingLeft="@dimen/global_actions_grid_horizontal_padding" 69 android:paddingRight="@dimen/global_actions_grid_horizontal_padding" 70 android:paddingTop="@dimen/global_actions_grid_vertical_padding" 71 android:paddingBottom="@dimen/global_actions_grid_vertical_padding" 72 > 73 <LinearLayout 74 android:layout_width="wrap_content" 75 android:layout_height="wrap_content" 76 android:visibility="gone" 77 android:layoutDirection="locale" 78 /> 79 <LinearLayout 80 android:layout_width="wrap_content" 81 android:layout_height="wrap_content" 82 android:visibility="gone" 83 android:layoutDirection="locale" 84 /> 85 <LinearLayout 86 android:layout_width="wrap_content" 87 android:layout_height="wrap_content" 88 android:visibility="gone" 89 android:layoutDirection="locale" 90 /> 91 </com.android.systemui.globalactions.ListGridLayout> 92 </LinearLayout> 93 94 </com.android.systemui.globalactions.GlobalActionsGridLayout> 95</androidx.constraintlayout.widget.ConstraintLayout>