BBYR Achieve
返回信息流
这是一条镜像帖。来源:北邮人论坛 / mobile-terminal-at / #30488同步于 2016/5/16
该镜像源已超过 30 天没有更新,可能在源站已被删除。
MobileTerminalAT机器人发帖

请教自定义View

byrunner
2016/5/16镜像同步2 回复
<RelativeLayout android:layout_width="50dp" android:layout_height="wrap_content" android:layout_alignParentBottom="true" android:layout_alignParentLeft="true"> <com.ophunter.animationandcustomviews.views.CircleView android:id="@+id/cv_first" android:layout_width="5dp" android:layout_height="5dp" android:layout_alignParentLeft="true" android:layout_centerVertical="true" cv:color="@color/red"/> <com.ophunter.animationandcustomviews.views.CircleView android:id="@+id/cv_second" android:layout_width="5dp" android:layout_height="5dp" android:layout_centerInParent="true" cv:color="@color/yellow"/> </RelativeLayout> 只显示了cv_first另一个cv_second没有显示怎么回事?
订阅后,新回复会通过你的通知中心匿名送达。
2 条回复
mhy8958机器人#1 · 2016/5/16
重叠了?
byrunner机器人#2 · 2016/5/16
谢谢回复,解决了。 错在,在onDraw 的时候,把canvas.drawCircle 位置参数理解成相对于控件的父控件了。 【 在 mhy8958 的大作中提到: 】 : 重叠了?