Circular dependencies cannot exist in RelativeLayout
循环布局错误!!!
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/drop_down_item"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal">
<RelativeLayout android:layout_width="match_parent" android:layout_height="match_parent"
>
<TextView
android:layout_alignLeft="@+id/drop_down_list_item_delete"
android:layout_alignParentLeft="true"
android:id="@+id/drop_down_list_item"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="test"
android:textColor="@color/black"
android:textSize="20sp">
</TextView> <ImageButton
android:layout_alignParentRight="true"
android:layout_gravity="center"
android:id="@+id/drop_down_list_item_delete"
android:layout_width="50dp"
android:layout_height="50dp"
android:layout_toRightOf="@id/drop_down_list_item" // 这句话发生了循环布局。明明textviw 在button前 ,去掉就好了!!
android:background="@drawable/drop_down_user_name_delete">
</ImageButton>
</RelativeLayout> </LinearLayout>

Circular dependencies cannot exist in RelativeLayout的更多相关文章
- 开发问题及解决--java.lang.IllegalStateException: Circular dependencies cannot exist in RelativeLayout
		
<?xml version="1.0" encoding="utf-8"?> <ScrollView xmlns:android=" ...
 - java.lang.IllegalStateException: Circular dependencies cannot exist in RelativeLayout
		
<TextView android:layout_width="fill_parent" android:layout_height="wrap_content&q ...
 - android java.lang.IllegalStateException: Circular dependencies cannot exist in RelativeLayout
		
造成这个问题的原因是在xml文件中出现了重复依赖,何为重复依赖,如下: 以上便叫重复依赖 转载请标明出处:http://www.cnblogs.com/tangZH/p/8386978.html
 - Android之Dedug--Circular dependencies cannot exist in AnimatorSet
		
今日,在学习AnimatorSet时,使用play.with.after.before时,代码书写如下: ObjectAnimator animator1 = ObjectAnimator.ofFlo ...
 - springboot - SqlSessionFactoryBean falls in circular dependencies by Spring Boot's DataSourceInitializer
		
springboot mybatis配置多数据源的时候,报错:There is a circular dependency between 7 beans in the application con ...
 - Jackson-deserialization fails on circular dependencies(JackSon无限递归问题)
		
Ok, so I'm trying to test some stuffs with jackson json converter. I'm trying to simulate a graph be ...
 - android开发中遇到的问题汇总【九】
		
244.http请求的url含有中字符时.须要Uri编码.Uri.encoder() 245.使用androidstudio时,不知道什么原因svn不见了 Android Studio missing ...
 - 【STL+模拟】UVa 506 - System Dependencies
		
System Dependencies Components of computer systems often have dependencies--other components that m ...
 - RequireJS API
		
可以找到许多的解读,但是原文总是最重要的,也是最正宗的说明,直接访问 RequireJS 有时不太方便,这里将 RequireJS 2.0 API 的原文转载到博客园,方便查看. This is th ...
 
随机推荐
- cropper.js 跨域问题
			
this.$clone = $clone = $('<img>'); $clone.one('load', $.proxy(function () { var naturalWidth = ...
 - DOM基础操作
			
本文地址:http://www.cnblogs.com/veinyin/p/7606972.html 1 访问 HTML 元素 常用方法 document.getElementById(" ...
 - 用Vue来实现图片上传多种方式
			
没有业务场景的功能都是耍流氓,那么我们先来模拟一个需要实现的业务场景.假设我们要做一个后台系统添加商品的页面,有一些商品名称.信息等字段,还有需要上传商品轮播图的需求. 我们就以Vue.Element ...
 - Linux SCIM/fcitx/ibus 输入法
			
现在很多发行版linux一般都是装好scim scim-tables-zh 重启就行 但有时重启后还是不能调用 可以用如下方法: 添加文件: sudo gedit /etc/X11/xinit/xin ...
 - JDK1.8新特性
			
1.Lambda Lambda的语法目前仅对于只有一个抽象方法的接口. 在Lamb ...
 - python slots源码分析
			
上次总结Python3的字典实现后的某一天,突然开窍Python的__slots__的实现应该也是类似,于是翻了翻CPython的源码,果然如此! 关于在自定义类里面添加__slots__的效果,网上 ...
 - linux下route命令--说的比较清楚!
			
linux下route命令 route命令感觉很不容易.一般开机后在命令行中使用route命令,会得到下面的信息 Kernel IP routing table Destination ...
 - Qualcom QMI系列-基本知识介绍(转)
			
1 引言1.1 编写目的 介绍Qualcom QMI 基本知识,API使用,设计原理,基于QMI的RemoteEfs(NV)分析1.2 阅读建议 高通平台入门1.3 参考资料 ...
 - HTML标签学习之路-001
			
1.html的注释 <!--这里是注释内容--> <!--代表注释内容的开始 -->代表注释内容结束 注释部分,不会被浏览器输出,只是作为代码的说明,供开发者查阅 2.HTML ...
 - angular项目中使用angular-material2
			
Step 1: Install Angular Material and Angular CDK npm install --save @angular/material @angular/cdk n ...