No resource found that matches the given name (at 'xxx' with value '@id/xxx')解决方
16lz
2021-01-26
问题描述
error: Error: No resource found that matches the given name (at ‘layout_constraintRight_toLeftOf’ with value ‘@id/total_time_tv’).
提示是资源的ID无法引用
解决方式
将声明@+id/view_id
的控件
放置在引用他的控件之前
例如:
<TextView android:id="@+id/tv_id" android:layout_width="wrap_content" android:layout_height="wrap_content" /> <TextView app:layout_constraintTop_toBottomOf="@id/tv_id" android:id="@+id/tv_id" android:layout_width="wrap_content" android:layout_height="wrap_content" />
更多相关文章
- android 自定义控件的style
- Android(安卓)根据屏幕尺寸适配控件尺寸(按比例缩放)
- 【Gradle】Android(安卓)Gradle 多项目构建
- Android(安卓)Design Support Library使用详解
- Android(安卓)7.1 设置不支持遥控操作?
- Android(安卓)4.0 新增的显示数据集的桌面控件
- Android自定义控件实战——滚动选择器PickerView
- Android控件的一般属性
- Android(安卓)自定义 HorizontalScrollView 打造再多图片(控件)也