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

Internal padding? #37

Open
wrozwad opened this issue Dec 9, 2015 · 0 comments
Open

Internal padding? #37

wrozwad opened this issue Dec 9, 2015 · 0 comments

Comments

@wrozwad
Copy link

wrozwad commented Dec 9, 2015

HELLo,

I have one annoying problem. I want to draw your progress (blue progress with semitransparent green rim) on a RoundedImageView with own border (red).

internal_padding

I have 10dp border and as you can see I get there 5dp padding on a ProgressWheel. Setting android:padding="0dp" or android:layout_margin="0dp" doesn't change anything. Only after I set 5dp padding on to the RoundedImageView progress display in correctly place.
When i set border_width to 4dp then I have 2dp padding. Even after setting circleRadius="120dp" in place of fillRadius="true" issue still exist.

Of course in place of RoundedImageView it's can be simple ImageView with circle drawable but issue is still the same.

Simplified layout:

<FrameLayout
    android:layout_width="120dp"
    android:layout_height="120dp">

    <com.makeramen.roundedimageview.RoundedImageView
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:scaleType="centerCrop"
            android:src="@drawable/placeholder"
            app:riv_border_color="#f00"
            app:riv_border_width="@dimen/border_width"
            app:riv_oval="true"/>

    <com.pnikosis.materialishprogress.ProgressWheel
            style="@style/progress"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            app:matProg_barWidth="@dimen/border_width"
            app:matProg_barColor="#00f"
            app:matProg_rimWidth="@dimen/border_width"
            app:matProg_rimColor="#60f0"
            app:matProg_fillRadius="true"/>
</FrameLayout>
@wrozwad wrozwad changed the title Internal padding with fillRadius? Internal padding? Dec 9, 2015
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

1 participant