Package com.tomtom.ivi.platform.frontend.api.common.adaptiveness


Link copied to clipboard
class AdaptiveFragmentHelper<T : Enum<T>>(    fragment: Fragment,     viewVariantSelector: (widthDp: Int, heightDp: Int) -> T,     viewFactoryProvider: (T) -> IviFragment.ViewFactory<*>)

A helper class for fragments that change their view depending on the size that it's given, offering an adaptive UI.


Link copied to clipboard
fun Context.getDimensionByAttrInDp(@AttrRes attrRes: Int): Int

Returns a dp representation of the dimen value that the given attrRes refers to. Throws: IllegalArgumentException - if the given attribute cannot be found.