Loading core/java/android/widget/ListPopupWindow.java +2 −0 Original line number Diff line number Diff line Loading @@ -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. } /** Loading core/java/android/widget/SearchView.java +1 −0 Original line number Diff line number Diff line Loading @@ -717,6 +717,7 @@ public class SearchView extends LinearLayout { if (mOnSuggestionListener == null || !mOnSuggestionListener.onSuggestionClicked(position)) { launchSuggestion(position, KeyEvent.KEYCODE_UNKNOWN, null); setImeVisibility(false); dismissSuggestions(); } } Loading core/res/res/drawable/search_dropdown_dark.xml 0 → 100644 +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> core/res/res/drawable/search_dropdown_light.xml 0 → 100644 +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> core/res/res/layout/search_view.xml +1 −1 Original line number Diff line number Diff line Loading @@ -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 Loading
core/java/android/widget/ListPopupWindow.java +2 −0 Original line number Diff line number Diff line Loading @@ -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. } /** Loading
core/java/android/widget/SearchView.java +1 −0 Original line number Diff line number Diff line Loading @@ -717,6 +717,7 @@ public class SearchView extends LinearLayout { if (mOnSuggestionListener == null || !mOnSuggestionListener.onSuggestionClicked(position)) { launchSuggestion(position, KeyEvent.KEYCODE_UNKNOWN, null); setImeVisibility(false); dismissSuggestions(); } } Loading
core/res/res/drawable/search_dropdown_dark.xml 0 → 100644 +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>
core/res/res/drawable/search_dropdown_light.xml 0 → 100644 +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>
core/res/res/layout/search_view.xml +1 −1 Original line number Diff line number Diff line Loading @@ -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