WaveView icon indicating copy to clipboard operation
WaveView copied to clipboard

WaveView appears to have a minimum size

Open dgcooke opened this issue 5 years ago • 0 comments

I am show these views to indicate progress and change their height depending on which one needs to be bigger for example if the progress is 10% I put a weight of 1 on the bottom and 9 on the top.

<LinearLayout android:id="@+id/topView" android:orientation="vertical" android:background="@color/transparent" android:layout_width="match_parent" android:layout_height="0dp" android:layout_weight="1">

    </LinearLayout>
    <LinearLayout
            android:id="@+id/bottomView"
            android:orientation="vertical"
            android:layout_width="match_parent"
            android:layout_height="0dp"
            android:background="@color/colour_white"
            android:alpha=".3"
            android:layout_weight="99">
        <com.yuan.waveview.WaveView
                android:visibility="gone"
                android:id="@+id/waveView"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                app:background="@color/white"
                app:progressColor="@color/black"
                />

    </LinearLayout>

When I added the Wave view this no longer works as it seems there is a minimum height. Have you any intentions of making that dynamic with the parent layout?

Damien

dgcooke avatar Jan 22 '20 21:01 dgcooke