i am using androidx.constraintlayout.widget.ConstraintLayout,but I don't know how to set a percent height.
the layout.xml is as follow:
<androidx.camera.view.PreviewView
android:id="@+id/viewFinder"
class="androidx.camera.view.PreviewView"
android:layout_width="match_parent"...