将圆形ImageView放在另一个圆形ImageView的边缘上

时间:2017-02-19 13:17:11

标签: android

我想将Small M-x abbrev-mode放在CircularView的锚点上,就像下面的图像

一样

enter image description here

我的代码是

ImageView

上述代码的结果:

enter image description here

但第二个 <FrameLayout android:layout_width="wrap_content" android:layout_height="wrap_content"> <com.hey.heypickup.UI.UICircularImage xmlns:app="http://schemas.android.com/apk/res-auto" android:id="@+id/contct_imgpic" android:layout_width="55dp" android:layout_height="55dp" android:layout_margin="5dp" android:layout_weight="0.04" android:padding="10dp" app:line_color="@color/colorPrimary" app:line_color_press="@color/green" android:src="@drawable/ph_1" app:line_width="1dp" app:padding="0dp"/> <ImageView android:layout_width="10dp" android:layout_height="10dp" android:layout_gravity="bottom|end" android:src="@drawable/ic_phone_black" /> </FrameLayout> 没有出现在circularImageView的achor上? 我们可以在不使用浮动操作按钮的情 如果是的话怎么样?

1 个答案:

答案 0 :(得分:0)

由于您的第二张图片与第一张图片重叠,

我认为这是因为ImageView的身高和宽度都是wrap_content。您应该将其设置为修正大小,然后尝试一下,因为如果您的ic_dialog_email图片足够大,则会占用整个空间并可能与第一张图片重叠。

您是否会heightwidth修复并重试?例如,将其分别设为15dp并查看。同时从ImageView中删除margin以及该更改。

您只需要试用并检查第二张图片所需的确切尺寸以及根据您的用户界面要求正确定位所需的边距

相关问题