Android Hello GridView Tutorial Will Not Display Images

前端 未结 4 1093
心在旅途
心在旅途 2021-02-13 12:25

First time poster!

I am new to Android development and have been following Google\'s HelloView tutorials without problems... until the HelloGridView tutorial. For some r

4条回答
  •  北荒
    北荒 (楼主)
    2021-02-13 13:06

    Usually, in these cases, a clean and rebuild of the project will resolve the problem. It is possible that replacing the images simply forced your R file to refresh.

    If not, my only other thought is that android only supports baseline and progressive jpegs. If your jpeg had some sort of weird optimisation on it, that could have made for an invalid resource.

提交回复
热议问题