setInitialActivitySizePx
Sets the Custom Tab Activity's initial width/height in pixels. The Custom Tab will behave as a side sheet if the screen's width is bigger than the breakpoint value set by CustomTabsIntent.Builder.setActivitySideSheetBreakpointDp and the screen is big enough, see doc for CustomTabsIntent.EXTRA_INITIAL_ACTIVITY_WIDTH_PX.
This is equivalent to calling CustomTabsIntent.Builder.setInitialActivityWidthPx and setInitialActivityHeightPx with widthPx and heightPx + activityHeightResizeBehavior respectively.
Since
0.3.0
Parameters
The Custom Tab Activity's initial width in pixels.
The Custom Tab Activity's initial height in pixels.
Desired height behavior.
See also
Sets the Custom Tab Activity's initial width/height in pixels. The Custom Tab will behave as a side sheet if the screen's width is bigger than the breakpoint value set by CustomTabsIntent.Builder.setActivitySideSheetBreakpointDp and the screen is big enough, see doc for CustomTabsIntent.EXTRA_INITIAL_ACTIVITY_WIDTH_PX.
This is equivalent to calling setInitialActivitySizePx with widthPx
and heightPx
set to sizePx's first and second entries respectively, as well as activityHeightResizeBehavior.
Since
0.3.0
Parameters
The Custom Tab Activity's initial width + height in pixels.
Desired height behavior.
See also
Sets the Custom Tab Activity's initial width/height in pixels. The Custom Tab will behave as a side sheet if the screen's width is bigger than the breakpoint value set by CustomTabsIntent.Builder.setActivitySideSheetBreakpointDp and the screen is big enough, see doc for CustomTabsIntent.EXTRA_INITIAL_ACTIVITY_WIDTH_PX.
This is equivalent to calling setInitialActivitySizePx with widthPx
and heightPx
set to size's Size.getWidth and Size.getHeight values respectively, as well as activityHeightResizeBehavior.
Since
0.3.0
Parameters
The Custom Tab Activity's initial width + height in pixels.
Desired height behavior.