Skip to content

Commit d174237

Browse files
author
Ben Murdoch
committed
Size Autocomplete drop down items correctly.
Fit the list item size to the content, and add a small amount of padding. Bug: 5420125 Change-Id: I50d6085654be77d1d314efad40df496e9c639c69
1 parent bdb3df8 commit d174237

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

core/res/res/layout/web_text_view_dropdown.xml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,7 @@ limitations under the License.
2323
android:background="#ffffffff"
2424
android:singleLine="true"
2525
android:layout_width="match_parent"
26-
android:layout_height="?android:attr/searchResultListItemHeight" />
26+
android:layout_height="wrap_content"
27+
android:minHeight="?android:attr/listPreferredItemHeightSmall"
28+
android:paddingTop="3dip"
29+
android:paddingBottom="3dip" />

0 commit comments

Comments
 (0)