Android resource not found exception?

前端 未结 9 665
一生所求
一生所求 2020-11-28 12:11

I am having a strange problem using findViewById(id). It comes back with resource not found even though the resource is definitely there. It is a textview in a layout next t

9条回答
  •  春和景丽
    2020-11-28 13:02

    I my case, I was trying to pass drawable selector with item android:color to background of view. The problem here is that you cannot define the background color using a color selector, you need a drawable selector.

提交回复
热议问题