问题描述:

I am using a circular progressbar, source from here

I am having some issues with the padding of the bottomtext, as you can see in provided screenhot it is not diplayed complete but cut in half.

I looked throught the sourcecode but could not find any padding option for the bottom text, is somebody able to help?

The .xml file:

<android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"

xmlns:custom="http://schemas.android.com/apk/res-auto"

android:id="@+id/card_verbr"

android:layout_width="match_parent"

android:layout_height="220dp"

android:layout_marginBottom="16dp"

android:layout_marginLeft="16dp"

android:layout_marginRight="16dp"

android:layout_marginTop="16dp">

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"

android:id="@+id/linverbr2"

android:layout_width="match_parent"

android:layout_height="wrap_content"

android:orientation="horizontal">

<com.github.lzyzsd.circleprogress.ArcProgress

android:id="@+id/arc_progress"

android:layout_width="100dp"

android:layout_height="100dp"

android:layout_marginLeft="50dp"

android:background="#E8EBED"

custom:arc_progress="58"

custom:arc_bottom_text="VERBRUIK"/>

<com.github.lzyzsd.circleprogress.ArcProgress

android:id="@+id/arc_progress2"

android:layout_width="100dp"

android:layout_height="100dp"

android:layout_marginLeft="50dp"

android:background="#E8EBED"

custom:arc_progress="55"

custom:arc_bottom_text="DATA"/>

</LinearLayout>

</android.support.v7.widget.CardView>

相关阅读:
Top