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

Commit d538e38a authored by Seigo Nonaka's avatar Seigo Nonaka
Browse files

Introduce dimension of text edit related floating window.

This is a follow up CL of I5a9bcbe29400d6193eb0532a5e711a78a12383cd.
Floating toolbar and suggestion window has a same elevation and
layout_margin. Introduce dimension value for elevation and
layout_margin and refer them.

Bug: 15347319

Change-Id: I6c635398241b60415437707285faeac76a1a4b6d
(cherry picked from commit eee8941e)
parent 186b5439
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -19,8 +19,8 @@
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:padding="0dp"
    android:layout_margin="20dp"
    android:elevation="2dp"
    android:layout_margin="@android:dimen/text_edit_floating_toolbar_margin"
    android:elevation="@android:dimen/text_edit_floating_toolbar_elevation"
    android:focusable="true"
    android:focusableInTouchMode="true"
    android:background="?attr/floatingToolbarPopupBackgroundDrawable"/>
+2 −2
Original line number Diff line number Diff line
@@ -22,8 +22,8 @@
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:orientation="vertical"
        android:elevation="2dp"
        android:layout_margin="20dp"
        android:elevation="@android:dimen/text_edit_floating_toolbar_elevation"
        android:layout_margin="@android:dimen/text_edit_floating_toolbar_margin"
        android:background="@drawable/text_edit_suggestions_window"
        android:dropDownSelector="@drawable/list_selector_background"
        android:divider="@null">
+2 −2
Original line number Diff line number Diff line
@@ -24,8 +24,8 @@
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:background="?android:attr/floatingToolbarPopupBackgroundDrawable"
        android:elevation="2dp"
        android:layout_margin="20dp"
        android:elevation="@android:dimen/text_edit_floating_toolbar_elevation"
        android:layout_margin="@android:dimen/text_edit_floating_toolbar_margin"
        android:orientation="vertical"
        android:divider="?android:attr/listDivider"
        android:showDividers="middle">
+3 −0
Original line number Diff line number Diff line
@@ -82,6 +82,9 @@
    <dimen name="text_size_medium_material">18sp</dimen>
    <dimen name="text_size_small_material">14sp</dimen>

    <dimen name="text_edit_floating_toolbar_elevation">2dp</dimen>
    <dimen name="text_edit_floating_toolbar_margin">20dp</dimen>

    <dimen name="floating_window_z">16dp</dimen>
    <dimen name="floating_window_margin_left">16dp</dimen>
    <dimen name="floating_window_margin_top">8dp</dimen>