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

Commit b1818e83 authored by Amith Yamasani's avatar Amith Yamasani
Browse files

Update dropdown colors and list readability for SearchView.

Dismiss IME on launching suggestion.
parent 4f5f7c96
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1119,6 +1119,8 @@ public class ListPopupWindow {
        public DropDownListView(Context context, boolean hijackFocus) {
            super(context, null, com.android.internal.R.attr.dropDownListViewStyle);
            mHijackFocus = hijackFocus;
            // TODO: Add an API to control this
            setCacheColorHint(0); // Transparent, since the background drawable could be anything.
        }

        /**
+1 −0
Original line number Diff line number Diff line
@@ -717,6 +717,7 @@ public class SearchView extends LinearLayout {
            if (mOnSuggestionListener == null
                    || !mOnSuggestionListener.onSuggestionClicked(position)) {
                launchSuggestion(position, KeyEvent.KEYCODE_UNKNOWN, null);
                setImeVisibility(false);
                dismissSuggestions();
            }
        }
+22 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2010 The Android Open Source Project

     Licensed under the Apache License, Version 2.0 (the "License");
     you may not use this file except in compliance with the License.
     You may obtain a copy of the License at

          http://www.apache.org/licenses/LICENSE-2.0

     Unless required by applicable law or agreed to in writing, software
     distributed under the License is distributed on an "AS IS" BASIS,
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     See the License for the specific language governing permissions and
     limitations under the License.
-->

<shape xmlns:android="http://schemas.android.com/apk/res/android">
    <solid android:color="#F0A0A0A0"/>
    <stroke android:width="2dp" color="#A00080FF"/>
    <padding android:left="5dp" android:top="0dp"
        android:right="5dp" android:bottom="1dp" />
</shape>
+22 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2010 The Android Open Source Project

     Licensed under the Apache License, Version 2.0 (the "License");
     you may not use this file except in compliance with the License.
     You may obtain a copy of the License at

          http://www.apache.org/licenses/LICENSE-2.0

     Unless required by applicable law or agreed to in writing, software
     distributed under the License is distributed on an "AS IS" BASIS,
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     See the License for the specific language governing permissions and
     limitations under the License.
-->

<shape xmlns:android="http://schemas.android.com/apk/res/android">
    <solid android:color="#F0FFFFFF"/>
    <stroke android:width="1dp" color="#A00080FF"/>
    <padding android:left="5dp" android:top="0dp"
        android:right="5dp" android:bottom="1dp" />
</shape>
+1 −1
Original line number Diff line number Diff line
@@ -91,7 +91,7 @@
                android:dropDownAnchor="@id/search_edit_frame"
                android:dropDownVerticalOffset="0dip"
                android:dropDownHorizontalOffset="0dip"
                android:popupBackground="@android:drawable/search_dropdown_background"
                android:popupBackground="?android:attr/searchDropdownBackground"
            />

            <!-- TODO: Use the generic dialog close drawable -->
Loading