问题描述

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" />

更多相关文章

  1. android 自定义控件的style
  2. Android(安卓)根据屏幕尺寸适配控件尺寸(按比例缩放)
  3. 【Gradle】Android(安卓)Gradle 多项目构建
  4. Android(安卓)Design Support Library使用详解
  5. Android(安卓)7.1 设置不支持遥控操作?
  6. Android(安卓)4.0 新增的显示数据集的桌面控件
  7. Android自定义控件实战——滚动选择器PickerView
  8. Android控件的一般属性
  9. Android(安卓)自定义 HorizontalScrollView 打造再多图片(控件)也

随机推荐

  1. java.lang.ClassCastException: android.
  2. android(2.0以后版本) 中读取联系人和通
  3. android Monkeyrunner:Python语法知识学
  4. Android(安卓)近百个项目的源代码,覆盖And
  5. 为android-support-v4.jar打包源码
  6. TextView添加Onclick点击无效没反应解决
  7. Delphi XE5 android 黑屏的临时解决办法
  8. Android(安卓)Intent 常见用法总结
  9. android中自定义Theme以及TitleBar
  10. Android中pm命令用法详解