[求助] 新建的项目 相对布局失效
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/cid"
android:text="@string/hello" />
<EditText
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_toRightOf="@id/cid"
/>
</RelativeLayout>

把源码copy到其他项目中 显示是正常
但以后新建的项目 相对布局都不起作用
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/cid"
android:text="@string/hello" />
<EditText
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_toRightOf="@id/cid"
/>
</RelativeLayout>

把源码copy到其他项目中 显示是正常
但以后新建的项目 相对布局都不起作用
...全文
相关推荐
修复桌面右键无新建和窗口新建文件夹按钮失效
因为使用一些杀毒软件,使桌面右键无新建和窗口新建文件夹按钮失效,可能是删了一些注册表吧。解决方法:下载文件直接点运行bat文件即可。亲测有效
hashin失效vumat,hashin失效准则介绍,Fortran
深入理解和掌握这两者,对于提升材料性能预测的准确性和工程项目的成功率至关重要。
vue-cli项目修改文件热重载失效的解决方法
然而,开发者在使用vue-cli进行项目开发时,偶尔会遇到文件热重载失效的问题,这会导致开发效率骤降,影响开发进度。
geoserver gwc缓存的生成与失效
为了启用缓存失效功能,需要在 Geoserver 的 classes 目录下新建一个 geowebcache.xml 文件。
Spring @Transactional注解失效解决方案
如果方法运行时,已经处在一个事务中,那么加入到这个事务,否则自己新建一个新的事务。2. NOT_SUPPORTED:声明方法不需要事务。


