From 1f0e22ae03ba1610f792c73af35b88d219ae79b9 Mon Sep 17 00:00:00 2001 From: lexiaoyao2 Date: Tue, 4 Mar 2025 17:34:01 +0800 Subject: [PATCH] add textpicker's selected background style Signed-off-by: lexiaoyao2 Change-Id: I784357be297e3b70a30169d0cd41cd57d56d0ce0 --- arkui/ace_engine/native/native_node.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/arkui/ace_engine/native/native_node.h b/arkui/ace_engine/native/native_node.h index c246d755f..184d3e098 100644 --- a/arkui/ace_engine/native/native_node.h +++ b/arkui/ace_engine/native/native_node.h @@ -4209,6 +4209,28 @@ typedef enum { * @since 18 */ NODE_TEXT_PICKER_ENABLE_HAPTIC_FEEDBACK = 15010, + /** + * @brief Defines the background color and border radius of the selected items. + * This attribute can be set, reset, and obtained as required through APIs. + * + * Format of the {@link ArkUI_AttributeItem} parameter for setting the attribute:\n + * .value[0].u32: background color, in 0xARGB format, for example, 0xFF1122FF. \n + * 1: .value[1].f32: radius of the four corners. \n + * 2: .value[1].f32: radius of the upper left corner. \n + * .value[2].f32: radius of the upper right corner. \n + * .value[3].f32: radius of the lower left corner. \n + * .value[4].f32: radius of the lower right corner. \n + * \n + * Format of the return value {@link ArkUI_AttributeItem}:\n + * .value[0].u32: background color, in 0xARGB format, for example, 0xFF1122FF. \n * + * .value[1].f32: radius of the upper left corner. \n + * .value[2].f32: radius of the upper right corner. \n + * .value[3].f32: radius of the lower left corner. \n + * .value[4].f32: radius of the lower right corner. \n + * + * @since 20 + */ + NODE_TEXT_PICKER_SELECTED_BACKGROUND_STYLE = 15011, /** * @brief Defines the style of the background in the selected state of the calendar picker. * This attribute can be set, reset, and obtained as required through APIs. -- Gitee