Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2674c808 authored by Matt Casey's avatar Matt Casey Committed by Android (Google) Code Review
Browse files

Merge "Move action container padding into drawable." into 24D1-dev

parents 62f8a057 4b3faf34
Loading
Loading
Loading
Loading
+10 −6
Original line number Diff line number Diff line
@@ -14,10 +14,14 @@
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  -->
<shape
<inset
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:insetLeft="@dimen/overlay_action_container_minimum_edge_spacing"
    android:insetRight="@dimen/overlay_action_container_minimum_edge_spacing">
    <shape
        xmlns:androidprv="http://schemas.android.com/apk/prv/res/android"
        android:shape="rectangle">
        <solid android:color="?androidprv:attr/materialColorSurfaceBright"/>
        <corners android:radius="10000dp"/>  <!-- fully-rounded radius -->
    </shape>
</inset>
 No newline at end of file
+16 −5
Original line number Diff line number Diff line
@@ -24,6 +24,16 @@
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:contentDescription="@string/clipboard_overlay_window_name">
    <!-- Min edge spacing guideline off of which the preview and actions can be anchored (without
         this we'd need to express margins as the sum of two different dimens). -->
    <androidx.constraintlayout.widget.Guideline
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:id="@+id/min_edge_guideline"
        app:layout_constraintGuide_begin="@dimen/overlay_action_container_minimum_edge_spacing"
        android:orientation="vertical"/>
    <!-- Negative horizontal margin because this container background must render beyond the thing
         it's constrained by (the actions themselves). -->
    <FrameLayout
        android:id="@+id/actions_container_background"
        android:visibility="gone"
@@ -31,11 +41,12 @@
        android:layout_width="0dp"
        android:elevation="4dp"
        android:background="@drawable/shelf_action_chip_container_background"
        android:layout_marginStart="@dimen/overlay_action_container_minimum_edge_spacing"
        android:layout_marginStart="@dimen/negative_overlay_action_container_minimum_edge_spacing"
        android:layout_marginEnd="@dimen/negative_overlay_action_container_minimum_edge_spacing"
        android:layout_marginBottom="@dimen/overlay_action_container_margin_bottom"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="@+id/actions_container"
        app:layout_constraintEnd_toEndOf="@+id/actions_container"
        app:layout_constraintStart_toStartOf="@id/min_edge_guideline"
        app:layout_constraintTop_toTopOf="@id/actions_container"
        app:layout_constraintEnd_toEndOf="@id/actions_container"
        app:layout_constraintBottom_toBottomOf="parent"/>
    <HorizontalScrollView
        android:id="@+id/actions_container"
@@ -76,7 +87,7 @@
        android:layout_marginBottom="@dimen/overlay_preview_container_margin"
        android:elevation="7dp"
        android:background="@drawable/overlay_border"
        app:layout_constraintStart_toStartOf="@id/actions_container_background"
        app:layout_constraintStart_toStartOf="@id/min_edge_guideline"
        app:layout_constraintTop_toTopOf="@id/clipboard_preview"
        app:layout_constraintEnd_toEndOf="@id/clipboard_preview"
        app:layout_constraintBottom_toBottomOf="@id/actions_container_background"/>
+0 −1
Original line number Diff line number Diff line
@@ -79,7 +79,6 @@
            android:layout_width="wrap_content"
            android:elevation="4dp"
            android:background="@drawable/shelf_action_chip_container_background"
            android:layout_marginHorizontal="@dimen/overlay_action_container_minimum_edge_spacing"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintBottom_toTopOf="@id/guideline"
            >
+5 −1
Original line number Diff line number Diff line
@@ -442,8 +442,12 @@
    <dimen name="overlay_preview_container_margin">8dp</dimen>
    <dimen name="overlay_action_container_margin_horizontal">8dp</dimen>
    <dimen name="overlay_action_container_margin_bottom">6dp</dimen>
    <!-- minimum distance to the left, right or bottom edges. -->
    <!--
        minimum distance to the left, right or bottom edges. Keep in sync with
        negative_overlay_action_container_minimum_edge_spacing. -->
    <dimen name="overlay_action_container_minimum_edge_spacing">12dp</dimen>
    <!-- Keep in sync with overlay_action_container_minimum_edge_spacing -->
    <dimen name="negative_overlay_action_container_minimum_edge_spacing">-12dp</dimen>
    <dimen name="overlay_bg_protection_height">242dp</dimen>
    <dimen name="overlay_action_container_corner_radius">20dp</dimen>
    <dimen name="overlay_action_container_padding_vertical">8dp</dimen>