Couldn't resolve resource @id/pass问题的解决
来源:互联网 发布:石大access数据库应用 编辑:程序博客网 时间:2024/05/16 17:52
就比如
这个布局,布局如下
<?xml version="1.0" encoding="utf-8"?><RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:paddingLeft="16dp" android:paddingRight="16dp" > <TextView android:id="@+id/name" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="20dp" android:gravity="center" android:text="@string/name" android:textSize="22dp" /> <TextView android:id="@+id/zhanghao" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_alignParentLeft="true" android:layout_below="@id/name" android:layout_marginTop="30dp" android:text="@string/zhanghao" android:textSize="15dp" /> <EditText android:id="@+id/zhang" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_alignParentRight="true" android:layout_below="@id/name" android:layout_marginLeft="50dp" android:layout_toLeftOf="@id/zhanghao" /> <TextView android:id="@+id/password" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_alignParentLeft="true" android:layout_below="@id/zhanghao" android:layout_marginTop="25dp" android:text="@string/password" /> <EditText android:id="@+id/pass" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_below="@id/zhang" android:layout_marginLeft="50dp" /> <Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/zhu" android:layout_below="@id/pass" android:layout_alignParentRight="true" android:id="@+id/button" /> <!-- 为什么显示这个Couldn't resolve resource @id/pass --> <Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/deng" android:layout_below="@id/pass" android:layout_toLeftOf="@id/button" /> </RelativeLayout>
但是在转换视图下总是显示
Couldn't resolve resource @id/pass
Couldn't resolve resource @id/button
这个问题一直困扰我,我不知道是什么原因导致的,
我仅仅知道解决方法是重启eclipse就可以了,然而clear是没用的
参考链接
http://stackoverflow.com/questions/8390733/relativelayout-couldnt-resolve-resource-android#
0 3
- Couldn't resolve resource @id/pass问题的解决
- 加载SearchvView碰到的问题Couldn't resolve resource @id/search_edit_frame
- 解决android下Couldn't resolve resource @string/xx 问题
- 解决android下Couldn't resolve resource @string/xx 问题
- 关于AS的布局Rendering Problems Couldn't resolve resource @drawable/position_user问题
- Couldn't resolve error 的问题
- Couldn't resolve resource android studio
- Android Studio 中Couldn't resolve resource
- “Couldn't resolve resource…” Android Studio
- Couldn't resolve resource @drawable/homebackground
- vbox虚拟机的couldn't resolve host问题
- Couldn't resolve resource @style/MMTabButton(或@String/app_name等)的解决方法
- 解决Couldn't resolve host 'mirrorlist.centos.org
- 解决Couldn't resolve host 'mirrorlist.centos.org
- Couldn't connect to session bus问题的解决
- Git出现Couldn't save uncommitted changes.问题的解决
- 问题 couldn't find "libijkffmpeg.so" 解决
- linux安装软件时提示找不到镜像的问题:Couldn't resolve host 'mirrorlist.centos.org'
- HDU---2035-人见人爱A^B (快速幂)
- android几种定时器机制及区别
- 【转载】巨页的原理分析
- 凌阳16位单片机之IRQ6中断
- ACM训练方案poj题目分类
- Couldn't resolve resource @id/pass问题的解决
- Android apk动态加载机制的研究(二):资源加载和activity生命周期管理
- CSS样式表规范化
- 2015年浙江省赛总结
- 杭电题目大致分类
- C++第六章
- java System.out.println()
- hdu 1269 迷宫城堡
- Java学习笔记之字符串