适用于最低SDK版本14的App的AppCompatSpinner与android.widget.Spinner [英] AppCompatSpinner vs android.widget.Spinner for app with min SDK version 14

查看:138
本文介绍了适用于最低SDK版本14的App的AppCompatSpinner与android.widget.Spinner的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发最低SDK版本为14 Ice-cream sandwitch的应用程序,目标版本为Android Marshmallow.

I am developing application with minimum SDK version 14 Ice-cream sandwitch and targeted version is Android Marshmallow.

我需要使用AppCompatSpinner还是普通的微调器可以在具有所有实质外观的ICS设备上正常工作?

DO I need to use AppCompatSpinner or normal spinner will work on ICS devices with all material look and feel?

推荐答案

如果您查看

If you look at the AppCompatSpinner page, you will see the folowing line.

当您在布局中使用Spinner时,将自动使用它.编写自定义视图时,您只需要手动使用此类.

This will automatically be used when you use Spinner in your layouts. You should only need to manually use this class when writing custom views.

因此,您不必在Spinners和AppCompatSpinners之间进行选择.

So you don't have to choose between Spinners and AppCompatSpinners.

这篇关于适用于最低SDK版本14的App的AppCompatSpinner与android.widget.Spinner的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆