Tab Row Defaults
Properties
The default corner radius of the sliding indicator in TabRow. COUI draws capsules (radius = height / 2), hence 20dp for the full 40dp height.
The default height of the TabRow. COUI SegmentButton style height (40dp).
The default maximum width of the tab in TabRow. COUI segments have no maximum width.
The default minimum width of the tab in TabRow. COUI coui_segment_min_width (52dp).
The default corner radius of the sliding indicator in TabRowWithContour. Half the 32dp indicator height (40dp container minus the 4dp inset on both sides).
The default height of the TabRowWithContour. COUI SegmentButton style height (40dp).
The default maximum width of the tab in TabRowWithContour. COUI segments have no maximum width.
The default minimum width of the tab in TabRowWithContour. COUI coui_segment_min_width (52dp).
The default inset between the container and the indicator in TabRowWithContour. COUI SegmentButton style android:padding (4dp).
The indicator corner radius of the COUI SegmentButton.Tiny style: (32dp - 2 * 2dp) / 2.
The height of the COUI SegmentButton.Tiny style (32dp), for use as TabRowWithContour's height together with TabRowWithContourTinyPadding and TabRowWithContourTinyCornerRadius.
The contour inset of the COUI SegmentButton.Tiny style (android:padding 2dp).
Functions
The default colors for the TabRow and TabRowWithContour, following COUISegmentButtonLayout: both label states default to couiColorLabelPrimary — the selected state is distinguished by the indicator and the medium font weight.