Skip to content

Commit 279f0c0

Browse files
committed
GeneralFragment: move spinner ellipsis to the middle
1 parent d4fddc1 commit 279f0c0

2 files changed

Lines changed: 25 additions & 1 deletion

File tree

app/src/main/java/org/efidroid/efidroidmanager/fragments/operatingsystemedit/GeneralFragment.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public View onCreateView(LayoutInflater inflater, ViewGroup container,
113113
locationTextView.setVisibility(View.GONE);
114114

115115
final ArrayList<OperatingSystemEditActivity.MultibootDir> multibootDirectories = mListener.getMultibootDirectories();
116-
locationSpinner.setAdapter(new ArrayAdapter<>(getContext(), R.layout.support_simple_spinner_dropdown_item, multibootDirectories));
116+
locationSpinner.setAdapter(new ArrayAdapter<>(getContext(), R.layout.efidroid_simple_spinner_dropdown_item, multibootDirectories));
117117
locationSpinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
118118
@Override
119119
public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?xml version="1.0" encoding="utf-8"?><!--
2+
**
3+
** Copyright 2008, The Android Open Source Project
4+
**
5+
** Licensed under the Apache License, Version 2.0 (the "License");
6+
** you may not use this file except in compliance with the License.
7+
** You may obtain a copy of the License at
8+
**
9+
** http://www.apache.org/licenses/LICENSE-2.0
10+
**
11+
** Unless required by applicable law or agreed to in writing, software
12+
** distributed under the License is distributed on an "AS IS" BASIS,
13+
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
** See the License for the specific language governing permissions and
15+
** limitations under the License.
16+
*/
17+
-->
18+
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
19+
android:id="@android:id/text1"
20+
style="?attr/spinnerDropDownItemStyle"
21+
android:layout_width="match_parent"
22+
android:layout_height="?attr/dropdownListPreferredItemHeight"
23+
android:ellipsize="middle"
24+
android:maxLines="1" />

0 commit comments

Comments
 (0)