Android Dev Summit, October 23-24: two days of technical content, directly from the Android team. Sign-up for livestream updates.

PercentLayoutHelper.PercentLayoutParams

public static interface PercentLayoutHelper.PercentLayoutParams

androidx.percentlayout.widget.PercentLayoutHelper.PercentLayoutParams


This interface is deprecated.
this class is deprecated along with its parent class.

If a layout wants to support percentage based dimensions and use this helper class, its LayoutParams subclass must implement this interface. Your LayoutParams subclass should contain an instance of PercentLayoutInfo and the implementation of this interface should be a simple accessor.

Summary

Public methods

abstract PercentLayoutHelper.PercentLayoutInfo getPercentLayoutInfo()

Public methods

getPercentLayoutInfo

public abstract PercentLayoutHelper.PercentLayoutInfo getPercentLayoutInfo ()

Returns
PercentLayoutHelper.PercentLayoutInfo