Skip to content Skip to sidebar Skip to footer

Resources$notfoundexception: Resource Id # Type #0x12 Is Not Valid

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. And one more. I plan to use in

Solution 1:

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

Solution 2:

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,

Post a Comment for "Resources$notfoundexception: Resource Id # Type #0x12 Is Not Valid"