怎样解决错误:error: Error: No resource found that matches the given name (at 'layout_toLeftOf' with value
来源:互联网 发布:宝信软件可转债 编辑:程序博客网 时间:2024/06/04 19:50
错误分析,要是这个控件左边添加控件,必须要在这个控件声明时候。
<RelativeLayout
<TextView
android:layout_width="wrap_content"android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_toLeftOf="@id/MoringDiary_interpersonal_next"
android:text="下一个"
android:textColor="#ffffff"
android:textSize="14dip" />
<Button
android:id="@+id/MoringDiary_interpersonal_next"
android:layout_width="30dp"
android:layout_height="30dp"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:layout_marginRight="3dp"
android:background="@drawable/ic_launcher" />
</RelativeLayout>
所以应该改为Button应该写在TextView之前。
1 0
- 怎样解决错误:error: Error: No resource found that matches the given name (at 'layout_toLeftOf' with value
- Error: No resource found that matches the given name (at 'layout_toLeftOf' with value '@id/p
- Error:(26, 34) No resource found that matches the given name (at 'layout_toLeftOf' with value '@id/b
- error: Error: No resource found that matches the given name (at 'text' with value '@string/
- No resource found that matches the given name (at 'layout_toLeftOf' with value '@id/ history_child_
- No resource found that matches the given name (at 'layout_toLeftOf' with value '@id/tx_search_friend
- No resource found that matches the given name (at 'layout_toLeftOf' with value '@id/tx_search_frien
- Error: No resource found that matches the given name (at 'theme' with value '@style/ AppTheme').
- Error:No resource found that matches the given name (at 'icon' with value '@mipmap/ic_launcher.9').
- 关于Android报错:error: Error: No resource found that matches the given name (at 'label' with value)
- 关于error: Error: No resource found that matches the given name (at 'text' with value '@string/hello')
- AndroidManifest.xml:10: error: Error: No resource found that matches the given name (at 'icon' with
- Android studio b Error: No resource found that matches the given name (at 'src' with value '@dra...
- Error:(3, 58) No resource found that matches the given name (at 'drawable' with value '@drawable/mm_
- 解决 No resource found that matches the given name (at 'layout_above' with value '@id/button3').
- \res\menu\main.xml:3: error: Error: No resource found that matches the given name (at 'title' with
- No resource found that matches the given name (at 'drawab' with value '@drawable/你的资源').
- 报错No resource found that matches the given name (at 'title' with value '@string/action_settings'
- Android Log.v(), Log.d…
- android获取string.xml的值
- android icon 大小
- 2014年09月19日
- MAC下配置ADB
- 怎样解决错误:error: Error: No resource found that matches the given name (at 'layout_toLeftOf' with value
- ExtJs xtype一览
- mac 系统开发android,真机调…
- mac 系统开发android,真机调…
- 面向对象语法1
- 使用adb shell提示adb s…
- Linux 之 最常用的20条命令
- Mac下使用 Tt波塞冬ZX …
- Andorid任意页面退出