Example usage for android.view ViewGroup getMinimumHeight

List of usage examples for android.view ViewGroup getMinimumHeight

Introduction

In this page you can find the example usage for android.view ViewGroup getMinimumHeight.

Prototype

public int getMinimumHeight() 

Source Link

Document

Returns the minimum height of the view.

Usage

From source file:com.ruesga.rview.fragments.SnippetFragment.java

public void onContentLayoutChanged(ViewGroup parent) {
    ViewGroup.MarginLayoutParams lp = (ViewGroup.MarginLayoutParams) mBinding.editor.getLayoutParams();
    lp.height = parent.getMinimumHeight() - lp.topMargin - lp.bottomMargin - mBinding.editor.getPaddingTop()
            - mBinding.editor.getPaddingBottom();
}