Spinner 使用的使用 报错:ArrayAdapter requires the resource ID to be a TextView
生活随笔
收集整理的這篇文章主要介紹了
Spinner 使用的使用 报错:ArrayAdapter requires the resource ID to be a TextView
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
Spinner 使用的使用 報錯:ArrayAdapter requires the resource ID to be a TextView 的問題
是修改layout的最外成不是使用TextView 導致的
比如整個布局使用TextView 作為最外成就好了
<?xml version="1.0" encoding="utf-8"?>
<TextView xmlns:android="http://schemas.android.com/apk/res/android"android:layout_width="match_parent"android:layout_height="match_parent"android:textColor="@color/colorAccent"android:textSize="20sp" />
?
總結
以上是生活随笔為你收集整理的Spinner 使用的使用 报错:ArrayAdapter requires the resource ID to be a TextView的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Android 使用java 代码获取r
- 下一篇: 配一副近视偏光太阳镜大概多少钱