我有一个包含多个下拉框的布局。其中一些有适配器,而其他的则从字符串数组中获取内容。具有适配器的下拉框实现simple_list_item_1布局,但这会导致与其他下拉框不同的外观,并在页面上引起格式问题。有人知道如何找出或了解下拉框默认使用哪种布局吗?
一个Spinner的布局取决于传递给它的适配器的布局。 看起来simple_list_item_1是一个带有填充的简单TextView: 这是源xml布局:https://github.com/android/platform_frameworks_base/blob/master/core/res/res/layout/simple_list_item_1.xml
android:spinnerMode
here。 - TronicZomB