Loading libs/WindowManager/Shell/res/layout/bubble_stack_user_education.xml +2 −2 Original line number Diff line number Diff line Loading @@ -21,8 +21,8 @@ android:layout_width="wrap_content" android:paddingTop="48dp" android:paddingBottom="48dp" android:paddingEnd="16dp" android:layout_marginEnd="24dp" android:paddingEnd="@dimen/bubble_user_education_padding_end" android:layout_marginEnd="@dimen/bubble_user_education_margin_end" android:orientation="vertical" android:background="@drawable/bubble_stack_user_education_bg" > Loading libs/WindowManager/Shell/res/layout/bubbles_manage_button_education.xml +2 −2 Original line number Diff line number Diff line Loading @@ -23,8 +23,8 @@ android:clickable="true" android:paddingTop="28dp" android:paddingBottom="16dp" android:paddingEnd="48dp" android:layout_marginEnd="24dp" android:paddingEnd="@dimen/bubble_user_education_padding_end" android:layout_marginEnd="@dimen/bubble_user_education_margin_end" android:orientation="vertical" android:background="@drawable/bubble_stack_user_education_bg" > Loading libs/WindowManager/Shell/res/values/dimen.xml +9 −2 Original line number Diff line number Diff line Loading @@ -205,8 +205,15 @@ <dimen name="bubble_dismiss_target_padding_x">40dp</dimen> <dimen name="bubble_dismiss_target_padding_y">20dp</dimen> <dimen name="bubble_manage_menu_elevation">4dp</dimen> <!-- Size of user education views on large screens (phone is just match parent). --> <dimen name="bubbles_user_education_width_large_screen">400dp</dimen> <!-- Size of manage user education views on large screens or in landscape. --> <dimen name="bubbles_user_education_width">480dp</dimen> <!-- Margin applied to the end of the user education views (really only matters for phone since the width is match parent). --> <dimen name="bubble_user_education_margin_end">24dp</dimen> <!-- Padding applied to the end of the user education view. --> <dimen name="bubble_user_education_padding_end">58dp</dimen> <!-- Padding between the bubble and the user education text. --> <dimen name="bubble_user_education_stack_padding">16dp</dimen> <!-- Bottom and end margin for compat buttons. --> <dimen name="compat_button_margin">16dp</dimen> Loading libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/ManageEducationView.kt +2 −3 Original line number Diff line number Diff line Loading @@ -101,9 +101,8 @@ class ManageEducationView constructor(context: Context, positioner: BubblePositi bubbleExpandedView = expandedView expandedView.taskView?.setObscuredTouchRect(Rect(positioner.screenRect)) layoutParams.width = if (positioner.isLargeScreen) context.resources.getDimensionPixelSize( R.dimen.bubbles_user_education_width_large_screen) layoutParams.width = if (positioner.isLargeScreen || positioner.isLandscape) context.resources.getDimensionPixelSize(R.dimen.bubbles_user_education_width) else ViewGroup.LayoutParams.MATCH_PARENT alpha = 0f Loading libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/StackEducationView.kt +6 −5 Original line number Diff line number Diff line Loading @@ -129,21 +129,22 @@ class StackEducationView constructor( if (visibility == VISIBLE) return false controller.updateWindowFlagsForBackpress(true /* interceptBack */) layoutParams.width = if (positioner.isLargeScreen) context.resources.getDimensionPixelSize( R.dimen.bubbles_user_education_width_large_screen) layoutParams.width = if (positioner.isLargeScreen || positioner.isLandscape) context.resources.getDimensionPixelSize(R.dimen.bubbles_user_education_width) else ViewGroup.LayoutParams.MATCH_PARENT val stackPadding = context.resources.getDimensionPixelSize( R.dimen.bubble_user_education_stack_padding) setAlpha(0f) setVisibility(View.VISIBLE) post { requestFocus() with(view) { if (resources.configuration.layoutDirection == View.LAYOUT_DIRECTION_LTR) { setPadding(positioner.bubbleSize + paddingRight, paddingTop, paddingRight, setPadding(positioner.bubbleSize + stackPadding, paddingTop, paddingRight, paddingBottom) } else { setPadding(paddingLeft, paddingTop, positioner.bubbleSize + paddingLeft, setPadding(paddingLeft, paddingTop, positioner.bubbleSize + stackPadding, paddingBottom) } translationY = stackPosition.y + positioner.bubbleSize / 2 - getHeight() / 2 Loading Loading
libs/WindowManager/Shell/res/layout/bubble_stack_user_education.xml +2 −2 Original line number Diff line number Diff line Loading @@ -21,8 +21,8 @@ android:layout_width="wrap_content" android:paddingTop="48dp" android:paddingBottom="48dp" android:paddingEnd="16dp" android:layout_marginEnd="24dp" android:paddingEnd="@dimen/bubble_user_education_padding_end" android:layout_marginEnd="@dimen/bubble_user_education_margin_end" android:orientation="vertical" android:background="@drawable/bubble_stack_user_education_bg" > Loading
libs/WindowManager/Shell/res/layout/bubbles_manage_button_education.xml +2 −2 Original line number Diff line number Diff line Loading @@ -23,8 +23,8 @@ android:clickable="true" android:paddingTop="28dp" android:paddingBottom="16dp" android:paddingEnd="48dp" android:layout_marginEnd="24dp" android:paddingEnd="@dimen/bubble_user_education_padding_end" android:layout_marginEnd="@dimen/bubble_user_education_margin_end" android:orientation="vertical" android:background="@drawable/bubble_stack_user_education_bg" > Loading
libs/WindowManager/Shell/res/values/dimen.xml +9 −2 Original line number Diff line number Diff line Loading @@ -205,8 +205,15 @@ <dimen name="bubble_dismiss_target_padding_x">40dp</dimen> <dimen name="bubble_dismiss_target_padding_y">20dp</dimen> <dimen name="bubble_manage_menu_elevation">4dp</dimen> <!-- Size of user education views on large screens (phone is just match parent). --> <dimen name="bubbles_user_education_width_large_screen">400dp</dimen> <!-- Size of manage user education views on large screens or in landscape. --> <dimen name="bubbles_user_education_width">480dp</dimen> <!-- Margin applied to the end of the user education views (really only matters for phone since the width is match parent). --> <dimen name="bubble_user_education_margin_end">24dp</dimen> <!-- Padding applied to the end of the user education view. --> <dimen name="bubble_user_education_padding_end">58dp</dimen> <!-- Padding between the bubble and the user education text. --> <dimen name="bubble_user_education_stack_padding">16dp</dimen> <!-- Bottom and end margin for compat buttons. --> <dimen name="compat_button_margin">16dp</dimen> Loading
libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/ManageEducationView.kt +2 −3 Original line number Diff line number Diff line Loading @@ -101,9 +101,8 @@ class ManageEducationView constructor(context: Context, positioner: BubblePositi bubbleExpandedView = expandedView expandedView.taskView?.setObscuredTouchRect(Rect(positioner.screenRect)) layoutParams.width = if (positioner.isLargeScreen) context.resources.getDimensionPixelSize( R.dimen.bubbles_user_education_width_large_screen) layoutParams.width = if (positioner.isLargeScreen || positioner.isLandscape) context.resources.getDimensionPixelSize(R.dimen.bubbles_user_education_width) else ViewGroup.LayoutParams.MATCH_PARENT alpha = 0f Loading
libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/StackEducationView.kt +6 −5 Original line number Diff line number Diff line Loading @@ -129,21 +129,22 @@ class StackEducationView constructor( if (visibility == VISIBLE) return false controller.updateWindowFlagsForBackpress(true /* interceptBack */) layoutParams.width = if (positioner.isLargeScreen) context.resources.getDimensionPixelSize( R.dimen.bubbles_user_education_width_large_screen) layoutParams.width = if (positioner.isLargeScreen || positioner.isLandscape) context.resources.getDimensionPixelSize(R.dimen.bubbles_user_education_width) else ViewGroup.LayoutParams.MATCH_PARENT val stackPadding = context.resources.getDimensionPixelSize( R.dimen.bubble_user_education_stack_padding) setAlpha(0f) setVisibility(View.VISIBLE) post { requestFocus() with(view) { if (resources.configuration.layoutDirection == View.LAYOUT_DIRECTION_LTR) { setPadding(positioner.bubbleSize + paddingRight, paddingTop, paddingRight, setPadding(positioner.bubbleSize + stackPadding, paddingTop, paddingRight, paddingBottom) } else { setPadding(paddingLeft, paddingTop, positioner.bubbleSize + paddingLeft, setPadding(paddingLeft, paddingTop, positioner.bubbleSize + stackPadding, paddingBottom) } translationY = stackPosition.y + positioner.bubbleSize / 2 - getHeight() / 2 Loading