setTitleFontSize
The setTitleFontSize method is used to set the font size of the min program page title. By adjusting this value, you can control the size of the text displayed in the title bar.
Method signature
copy
setTitleFontSize(titleFontSize: Double):GRVStartupParams.BuilderParameters
Parameter | Data Type | Default value | Required | Description |
titleFontSize | Double | 18 | Yes | Set the font size of the mini program page title. The value must be greater than 0. Note: If the value is set too high, may encounter problems when rendering fonts. |
Sample
copy
val startupParams = GRVStartupParams.createBuilderForApp(context, appId)
.setTitleFontSize(10)
.build()
Griver.openApp(startupParams,null)User experience
Value | Screenshot |
titleFontSize=10 |
|
