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

Commit 713e2f9b authored by Bill Lin's avatar Bill Lin
Browse files

Tuning incorrect background of grid item selected state

Tuning grid item background border to meet Mock design on selection
- Selected by keyboard(Shift + Navigation Keys)
- Focus by navigation key event
- Selected by Mouse Hover
- Selected by TP long press and drag

Bug: 115446345
Test: atest DocumentsUITests
      manual test to see visual

Change-Id: Ibde27656f45ea89e9179a3fa6c48bed9c87062e5
parent 6e886e8a
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -19,6 +19,9 @@
        android:state_focused="true"
        android:state_selected="false"
        android:color="?android:attr/colorAccent"/>
    <item
        android:state_selected="true"
        android:color="?android:attr/colorAccent"/>
    <item
        android:color="@android:color/transparent"/>
</selector>
+1 −0
Original line number Diff line number Diff line
@@ -19,4 +19,5 @@
    <stroke
        android:width="2dp"
        android:color="@color/item_doc_grid_border"/>
    <corners android:radius="@dimen/grid_item_border_radius"/>
</shape>
+1 −1
Original line number Diff line number Diff line
@@ -32,7 +32,7 @@
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_margin="2dp"
        android:focusable="true">
        android:duplicateParentState="true">

        <RelativeLayout
            android:layout_width="match_parent"
+1 −0
Original line number Diff line number Diff line
@@ -42,6 +42,7 @@
    <dimen name="drag_shadow_size">120dp</dimen>
    <dimen name="grid_item_elevation">2dp</dimen>
    <dimen name="grid_item_radius">8dp</dimen>
    <dimen name="grid_item_border_radius">6dp</dimen>
    <dimen name="max_drawer_width">280dp</dimen>

    <dimen name="drawer_edge_width">12dp</dimen>