Android布局问题: No resource found that matches the given name (at 'layout_above' with value @id/tv)

刚开始使用AndroidStudio时遇到的些问题:

Error:(11, 31) No resource found that matches the given name (at ‘layout_above’ with value ‘@id/pb_progress’).

  因为用到相对布局中相对另一个View对其位置,android:layout_above = “@id/tv”属性等;并且这个id之前没有出现过,只需要修改一下写法:android:layout_above="@+id/tv",在id前多加一个“+”。

用惯了elicpse再用As相当不适应啊,比如这个感觉挺奇葩差异。

猜你喜欢

转载自blog.csdn.net/qq_40757384/article/details/88026547