Android ArrayList ListView/Textview - You must supply a resource ID for a textview

后端 未结 2 1203
故里飘歌
故里飘歌 2021-01-24 10:41

I had this working at one point, so I think I\'m just referencing something wrong. _regionListView seems to be returning OK. I thought the array inside the ArrayList was the pro

2条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-24 11:20

    Remove LinearLayout from search_list.xml and use only textview and put this in textview itself

    xmlns:android="http://schemas.android.com/apk/res/android"
    

    There is no need of LinearLayou there and also you can set android:layout_height="wrap_content" .Then it will work. :)

提交回复
热议问题