开发者

Android, how to render two (close) controls - a single selection (spinner) and a multiple one (ListView) - visually similar?

开发者 https://www.devze.com 2023-03-29 06:18 出处:网络
I need to implement - for my Android app - two user controls quite similar, and very close each other in the UI layout: a single selection control, and a multiple one.

I need to implement - for my Android app - two user controls quite similar, and very close each other in the UI layout: a single selection control, and a multiple one.

I know the Android solution is to use a Spinner (for single selection) and a ListView (for multiple selection).

I ask: is there a way to let them look more visually similar? By default, a Spinner has a down-arrow symbol on the 开发者_如何学Goright, which a ListView has not. And, the Spinner is dismissed on an item selection, while the ListView must be closed with the [back] button on the phone.

I just don't want to confuse my user: I feel (and suppose users, too) that the attribute "single/multiple" selection doesn't account for such a different UI and usage...


I do accept Raggedtoad solution: I will stick with the Android convention of using a Spinner and a ListView separately, though I find this solution quite sub-elegant... :-)

0

精彩评论

暂无评论...
验证码 换一张
取 消