Skip to content

Internal padding? #37

Description

@wrozwad

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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions