ArkUI_PickerIndicatorDivider
typedef struct {...} ArkUI_PickerIndicatorDivider
Overview
Defines the style parameter of the divider-style indicator.
Since: 23
Related module: ArkUI_NativeModule
Header file: native_type.h
Sample: native_type_sample
Summary
Member Variables
| Name | Description |
|---|---|
| float strokeWidth | Stroke width of the divider. Default value: 0 Unit: vp Value range: [0, half the height of the selected item (that is, 20 vp)]. Setting the style parameters for the divider-style indicator fails when strokeWidth is less than 0. If strokeWidth exceeds half the height of the selected item, 2.0 px is used. Percentages are not supported. |
| uint32_t dividerColor | Color of the divider. Default value: 0 Value range: 0xARGB format, for example, 0xFF1122FF. |
| float startMargin | Distance between the divider and the start edge of the picker container. Default value: 0 Unit: vp Value range: The sum of startMargin and endMargin must not exceed the width of the Picker container. Setting the style parameters for the divider-style indicator fails when the value less than 0 is set. If the sum of startMargin and endMargin exceeds the width of the Picker container, the default value is used. Percentages are not supported. |
| float endMargin | Distance between the divider and the end edge of the Picker container. Default value: 0 Unit: vp Value range: The sum of startMargin and endMargin must not exceed the width of the Picker container. Setting the style parameters for the divider-style indicator fails when the value less than 0 is set. If the sum of startMargin and endMargin exceeds the width of the Picker container, the default value is used. Percentages are not supported. |
你可能感兴趣的鸿蒙文章
openharmony 鸿蒙 arkts-apis-uicontext-contextmenucontroller
openharmony 鸿蒙 errorcode-canvas
openharmony 鸿蒙 capi-oh-nativexcomponent-native-xcomponent-oh-nativexcomponent
openharmony 鸿蒙 errorcode-bindSheet
openharmony 鸿蒙 js-apis-arkui-uiExtension-sys
openharmony 鸿蒙 capi-arkui-accessibility-arkui-accessibilityeventinfo
openharmony 鸿蒙 capi-arkui-rendernodeutils
openharmony 鸿蒙 js-apis-arkui-node
openharmony 鸿蒙 capi-native-node-h
openharmony 鸿蒙 capi-arkui-nativemodule-arkui-listitemswipeactionitem