Dennis
Dennis

Reputation: 412

Custom progress bar is cut in bottom

I can't figure out what the problem is. I am trying to make this possible in every screen size but I'm stuck here.

This is the problem:

linear layout

the layout is big enough but the progress is cut there

progress bar layout

below there is the code. How can I fix it?

    ...
    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:layout_weight="1">

        <CustomProgressBar
            android:id="@+id/progressBarBPM"
            android:layout_width="0dp"
            android:layout_weight="1"
            android:layout_height="match_parent"/>

        <CustomProgressBar
            android:id="@+id/progressBarBPM2"
            android:layout_width="0dp"
            android:layout_weight="1"
            android:layout_height="match_parent"/>
    </LinearLayout>
    ...

The same code in two different phones:

oneplus 6 motorola moto g

Upvotes: 0

Views: 140

Answers (1)

Dennis
Dennis

Reputation: 412

I solved the problem. I was an issue from custom progress bar.

Upvotes: 1

Related Questions