Package com.tomtom.ivi.platform.frontend.api.common.adaptiveness
Types
Link copied to clipboard
class AdaptiveFragmentHelper<T : Enum<T>>( fragment: Fragment, viewVariantSelector: (widthDp: Int, heightDp: Int) -> T, viewFactoryProvider: (T) -> IviFragment.ViewFactory<*>)
Content copied to clipboard
A helper class for fragments that change their view depending on the size that it's given, offering an adaptive UI.
Functions
Link copied to clipboard
Returns a dp representation of the dimen value that the given attrRes refers to. Throws: IllegalArgumentException - if the given attribute cannot be found.