1 <?xml version="1.0" encoding="utf-8"?>
3 Modifications copyright © 2017 Soren Stoutner <soren@stoutner.com>.
5 `simple_spinner_dropdown_item_huawei_fix.xml` comes from the Android API 25 platform SDK, and is usually referenced as `android.R.layout.simple_spinner_dropdown_item`.
7 The licensing information for the original file is below:
9 //device/apps/common/assets/res/any/layout/simple_spinner_item.xml
11 Copyright 2008, The Android Open Source Project
13 Licensed under the Apache License, Version 2.0 (the "License")
14 you may not use this file except in compliance with the License.
15 You may obtain a copy of the License at
17 http://www.apache.org/licenses/LICENSE-2.0
19 Unless required by applicable law or agreed to in writing, software
20 distributed under the License is distributed on an “AS IS” BASIS,
21 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22 See the License for the specific language governing permissions and
23 limitations under the License. -->
25 <!-- Huawei did something to their customizations to Android 7.0 (API 24) to break scrolling on `spinners`. Modifying this file to set `android:layout_height="wrap_content"` resolves the issue. -->
27 xmlns:android="http://schemas.android.com/apk/res/android"
28 android:id="@android:id/text1"
29 android:layout_height="wrap_content"
30 android:layout_width="match_parent"
31 style="?android:attr/spinnerDropDownItemStyle"
33 android:ellipsize="marquee" />