Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clipping of view elements inside when they're circles #8

Open
ghost opened this issue Apr 11, 2014 · 3 comments
Open

Clipping of view elements inside when they're circles #8

ghost opened this issue Apr 11, 2014 · 3 comments

Comments

@ghost
Copy link

ghost commented Apr 11, 2014

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!

@dmitry-zaitsev
Copy link
Owner

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

@jink2005
Copy link

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

@jink2005
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants