PercentRelativeLayout, wie die Höhe programmgesteuert eingestellt wird

Ich verwende PercentRelativeLayout aus dem Android Prozent Support Package. das habe ich in meinem layout.

<android.support.percent.PercentRelativeLayout
    android:id="@+id/view_parent"
    app:layout_heightPercent="68%" android:visibility="invisible"
    android:layout_width="match_parent"
    android:background="@color/mountain_meadow" android:layout_alignParentTop="true"
    android:layout_height="wrap_content">


    <View android:id="@+id/view_child" android:layout_width="match_parent" app:layout_heightPercent="30%"
        android:layout_alignParentBottom="true"
        />

</android.support.percent.PercentRelativeLayout>

Ich möchte die Höhe von @ ändeview_child programmatisch. Wie kann ich das mit @ machPercentRelativeLayout.LayoutParams oder auf andere Weise.

Antworten auf die Frage(2)

Ihre Antwort auf die Frage