简体   繁体   中英

What layout do spinners implement by default?

I have a layout with multiple spinners. Some have adapters while others get their contents from string arrays. The ones with the adapters implement the simple_list_item_1 layout, but this causes a different look than the other spinners and leads to formatting issues on the page. How does one find out, or does anyone know what layout a spinner uses by default?

A spinner's layout is dependent on the layout passed to it's adapter.

It looks like simple_list_item_1 is a simple TextView with padding:

Here's the source xml layout: https://github.com/android/platform_frameworks_base/blob/master/core/res/res/layout/simple_list_item_1.xml

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM