Resources$NotFoundException: Resource ID # type #0x12 is not valid

后端 未结 2 645
离开以前
离开以前 2021-01-18 01:29

Tell me please, why it doesn\'t like my layout (RelativeLayout with @+id/row)?

When I use it with self created adapter (layoutinflater) it works good. A

相关标签:
2条回答
  • 2021-01-18 02:12

    I really bet you trying to textView.setText(Integer) somewhere.

    Han, didn't read question fully. Update

    No, you can't place pictures in default adapter. It works only with text. You need to create your own Adapter. And I recommend you to switch to RecyclerView especially with displaying pictures,

    0 讨论(0)
  • 2021-01-18 02:27

    you should provide a layout not an id. Replace R.id.row with R.layout.your_layout_name

    0 讨论(0)
提交回复
热议问题