Android resource not found exception?

前端 未结 9 683
一生所求
一生所求 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条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-28 13:12

    textViewCount.setText(someArray.size()); was my problem.

    Simply call toString(); to fix the problem.

        Integer size = mSomeArray.size();
        textViewReplyCount.setText(size.toString());
    

提交回复
热议问题