CircleLayout icon indicating copy to clipboard operation
CircleLayout copied to clipboard

Clipping of view elements inside when they're circles

Open ghost opened this issue 11 years ago • 3 comments

Thanks for this great library! Just what I needed. But, I'm facing an issue when I'm trying to place 5 circles in a circle using your CircleLayout. Have attached the screenshot. screenshot_2014-04-12-00-22-51

My layout.xml-

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res/com.styledotme.one" android:id="@+id/themepopup" android:layout_width="fill_parent" android:layout_height="fill_parent"

<com.styledotme.one.CircleLayout
    android:id="@+id/circlecolortap"
    android:layout_width="match_parent"
    android:layout_gravity="center_horizontal|center_vertical"
    android:layout_height="match_parent"
    app:angleOffset="40.0" >

    <View
        android:id="@+id/pinkthemetile"
        android:layout_width="50dp"
        android:layout_height="50dp"
        android:background="@drawable/circle_pink"
        android:tag="PinkTheme" />

    <View
        android:id="@+id/bluethemetile"
        android:layout_width="50dp"
        android:layout_height="50dp"
        android:background="@drawable/circle_blue"
        android:tag="BlueTheme" />

    <View
        android:id="@+id/greenthemetile"
        android:layout_width="50dp"
        android:layout_height="50dp"
        android:background="@drawable/circle_green"
        android:tag="GreenTheme" />

    <View
        android:id="@+id/orangethemetile"
        android:layout_width="50dp"
        android:layout_height="50dp"
        android:background="@drawable/circle_orange"
        android:tag="OrangeTheme" />

    <View
        android:id="@+id/redthemetile"
        android:layout_width="50dp"
        android:layout_height="50dp"
        android:background="@drawable/circle_red"
        android:tag="RedTheme" />
</com.styledotme.one.CircleLayout>

One of the drawables used for the cirlces- reddrawable

and that's about it! the rightmost child circle is clipping no matter what I tried. (margin, change size to smaller than parent, etc) Only option seems to be to reduce the size of the 5 circles but it makes them aesthetically too small to accept.

Thanks!

ghost avatar Apr 11 '14 18:04 ghost

Thanks for your report - I'll take a look when I'll have any free time.

dmitry-zaitsev avatar Apr 14 '14 08:04 dmitry-zaitsev

I have the same problem, and don't know where to change the radius setting. Could you give some hint? qq20140626153237

jink2005 avatar Jun 26 '14 07:06 jink2005

I solve it by set the radius bigger: app:innerRadius="100dp"

jink2005 avatar Jun 26 '14 08:06 jink2005