When app:layout_constraintHeight_percent is 0.50 or 0.80 it works fine, but when I set it to 0.99 , the Button go very long and larger than 99% of screen ?
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:fillViewport="true"
android:orientation="vertical">
<android.support.constraint.ConstraintLayout
android:orientation="vertical"
android:background="@color/sos"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<Button
android:id="@+id/mybtn1"
android:text="1"
android:layout_width="match_parent"
app:layout_constraintHeight_percent="0.99"
android:layout_height="0dp" />
<Button
app:layout_constraintTop_toBottomOf="@+id/mybtn1"
android:text="2"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</android.support.constraint.ConstraintLayout>
</ScrollView>