diff --git a/entry/src/main/ets/pages/AdaptiveTabCenteringIndex.ets b/entry/src/main/ets/pages/AdaptiveTabCenteringIndex.ets index d3ed4fd3ea6626d99073e2dbbb2a3f7fc7f40f9d..2d5023d473e271133532b28729a924c367ce7a8a 100644 --- a/entry/src/main/ets/pages/AdaptiveTabCenteringIndex.ets +++ b/entry/src/main/ets/pages/AdaptiveTabCenteringIndex.ets @@ -12,7 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - +// [Start adaptive_tab_centering_index] import { ListDataConstants } from '../constants/ListDataConstants'; import { CommonConstants } from '../constants/CommonConstants'; import { BreakpointType } from '../utils/BreakpointType'; @@ -26,6 +26,7 @@ export struct AdaptiveTabCenteringIndex { build() { NavDestination() { Column() { + // [StartExclude adaptive_tab_centering_index] Row() { Image($r('app.media.icon_back')) .width($r('app.float.image_width')) @@ -40,7 +41,7 @@ export struct AdaptiveTabCenteringIndex { top: $r('app.float.back_margin_top') }) .justifyContent(FlexAlign.Start) - + // [EndExclude adaptive_tab_centering_index] Column() { Row() { Column() { @@ -52,14 +53,17 @@ export struct AdaptiveTabCenteringIndex { ListItem() { Column() { Text(item) + // [StartExclude adaptive_tab_centering_index] .fontSize($r('app.float.font_size_16')) .fontWeight(CommonConstants.FONT_WEIGHT_500) .fontColor(this.tabIndexSelected === index ? $r('app.color.red') : $r('app.color.black')) .height($r('app.float.text_height')) .focusable(true) .groupDefaultFocus(index === 0 ? true : false) + // [EndExclude adaptive_tab_centering_index] } } + // [StartExclude adaptive_tab_centering_index] .margin({ top: $r('app.float.recommendation_margin_top'), bottom: $r('app.float.recommendation_margin_bottom') @@ -79,25 +83,33 @@ export struct AdaptiveTabCenteringIndex { .onClick(() => { this.tabIndexSelected = index; }) + // [EndExclude adaptive_tab_centering_index] }, (item: string, index: number) => index + JSON.stringify(item)) } .scrollBar(BarState.Off) .listDirection(Axis.Horizontal) } + // [StartExclude adaptive_tab_centering_index] .width($r('app.float.width_296')) .height($r('app.float.height_56')) .backgroundColor($r('app.color.adaptive_tab_background')) .justifyContent(FlexAlign.Center) .alignItems(HorizontalAlign.Center) + // [EndExclude adaptive_tab_centering_index] .layoutWeight(CommonConstants.COMMON_FAL_1) } + // [StartExclude adaptive_tab_centering_index] .height($r('app.float.height_56')) .width(CommonConstants.FULL_WIDTH_PERCENT) + // [EndExclude adaptive_tab_centering_index] } + // [StartExclude adaptive_tab_centering_index] .height(CommonConstants.NINETY_PERCENT) .justifyContent(FlexAlign.Center) + // [EndExclude adaptive_tab_centering_index] } } .hideTitleBar(true) } -} \ No newline at end of file +} +// [End adaptive_tab_centering_index] \ No newline at end of file diff --git a/entry/src/main/ets/pages/DoubleTabAdaptiveCenteringIndex.ets b/entry/src/main/ets/pages/DoubleTabAdaptiveCenteringIndex.ets index 6a66e8a1cbaf2a64ced7c65cbb8632d8d4647ed0..e2aa7f2843e2f60617817d9f85bf9c630487b4df 100644 --- a/entry/src/main/ets/pages/DoubleTabAdaptiveCenteringIndex.ets +++ b/entry/src/main/ets/pages/DoubleTabAdaptiveCenteringIndex.ets @@ -43,6 +43,7 @@ export struct DoubleTabAdaptiveCenteringIndex { .justifyContent(FlexAlign.Start) Column() { + // [Start double_tab_adaptive_centering_index] Row() { Column() { List({ @@ -53,14 +54,17 @@ export struct DoubleTabAdaptiveCenteringIndex { ListItem() { Column() { Text(item) + // [StartExclude double_tab_adaptive_centering_index] .fontSize($r('app.float.font_size_16')) .fontWeight(CommonConstants.FONT_WEIGHT_500) .fontColor(this.tabIndexSelected === index ? $r('app.color.red') : $r('app.color.black')) .height($r('app.float.text_height')) .focusable(true) .groupDefaultFocus(index === 0 ? true : false) + // [EndExclude double_tab_adaptive_centering_index] } } + // [StartExclude double_tab_adaptive_centering_index] .margin({ top: $r('app.float.stock_options_margin') }) .border({ width: { @@ -77,20 +81,26 @@ export struct DoubleTabAdaptiveCenteringIndex { .onClick(() => { this.tabIndexSelected = index; }) + // [EndExclude double_tab_adaptive_centering_index] }, (item: string, index: number) => index + JSON.stringify(item)) ListItem() { Image($r('app.media.ic_public_more')) + // [StartExclude double_tab_adaptive_centering_index] .width($r('app.float.image_width')) .height($r('app.float.image_height')) + // [EndExclude double_tab_adaptive_centering_index] } + // [StartExclude double_tab_adaptive_centering_index] .margin({ top: $r('app.float.more_margin_top') }) .visibility(this.breakPoint === CommonConstants.BREAK_POINT_LG ? Visibility.Visible : Visibility.Hidden) + // [EndExclude double_tab_adaptive_centering_index] } .scrollBar(BarState.Off) .listDirection(Axis.Horizontal) } .width($r('app.float.width_296')) + // [StartExclude double_tab_adaptive_centering_index] .height($r('app.float.height_56')) .margin({ left: $r('app.float.stock_column_margin') }) .justifyContent(FlexAlign.Center) @@ -105,10 +115,13 @@ export struct DoubleTabAdaptiveCenteringIndex { right: $r('app.float.more_margin_right') }) .visibility(this.breakPoint === CommonConstants.BREAK_POINT_LG ? Visibility.Hidden : Visibility.Visible) + // [EndExclude double_tab_adaptive_centering_index] } - .height($r('app.float.height_56')) .width(CommonConstants.FULL_WIDTH_PERCENT) - + // [StartExclude double_tab_adaptive_centering_index] + .height($r('app.float.height_56')) + // [EndExclude double_tab_adaptive_centering_index] + // [End double_tab_adaptive_centering_index] Row() { Column() { List({ diff --git a/entry/src/main/ets/pages/TableAdaptiveExtensionIndex.ets b/entry/src/main/ets/pages/TableAdaptiveExtensionIndex.ets index d9f463a2b80560d7a72bf35857d63e0a5fdc5a12..80242e56c6f4e017be6d72a34d9e265eee516b9d 100644 --- a/entry/src/main/ets/pages/TableAdaptiveExtensionIndex.ets +++ b/entry/src/main/ets/pages/TableAdaptiveExtensionIndex.ets @@ -69,10 +69,12 @@ export struct TableAdaptiveExtensionIndex { }) } Column() { + // [Start table_adaptive_extension_index] Row() { Column() { Row() { ForEach(ListDataConstants.INDICATOR_NAME_LIST, (item: string, index: number) => { + // [StartExclude table_adaptive_extension_index] Column() { Row() { Text(item) @@ -114,6 +116,7 @@ export struct TableAdaptiveExtensionIndex { Column() { ForEach(ListDataConstants.INDICATOR_NAME_COLUMN, (item: string, index: number) => { this.Item(item, index, CommonConstants.GRAY_FONT_FLAG) + // [EndExclude table_adaptive_extension_index] }, (item: string, index: number) => index + JSON.stringify(item)) } .alignItems(HorizontalAlign.Start) @@ -122,7 +125,9 @@ export struct TableAdaptiveExtensionIndex { Column() { ForEach(ListDataConstants.STOCK_INDEX_DATA1, (item: string, index: number) => { + // [StartExclude table_adaptive_extension_index] this.Item(item, index, CommonConstants.RED_FONT_FLAG) + // [EndExclude table_adaptive_extension_index] }, (item: string, index: number) => index + JSON.stringify(item)) } .width($r('app.float.stock_data_width')) @@ -132,7 +137,9 @@ export struct TableAdaptiveExtensionIndex { Column() { ForEach(ListDataConstants.STOCK_INDEX_DATA2, (item: string, index: number) => { + // [StartExclude table_adaptive_extension_index] this.Item(item, index, CommonConstants.RED_FONT_FLAG) + // [EndExclude table_adaptive_extension_index] }, (item: string, index: number) => index + JSON.stringify(item)) } .width($r('app.float.stock_data_width')) @@ -142,16 +149,21 @@ export struct TableAdaptiveExtensionIndex { Column() { ForEach(ListDataConstants.STOCK_INDEX_DATA3, (item: string, index: number) => { + // [StartExclude table_adaptive_extension_index] this.Item(item, index, CommonConstants.RED_FONT_FLAG) + // [EndExclude table_adaptive_extension_index] }, (item: string, index: number) => index + JSON.stringify(item)) } .width($r('app.float.stock_data_width')) .alignItems(HorizontalAlign.End) } .width(CommonConstants.FULL_WIDTH_PERCENT) + // [StartExclude table_adaptive_extension_index] .margin({ top: $r('app.float.indicator_name_margin') }) + // [EndExclude table_adaptive_extension_index] } } + // [End table_adaptive_extension_index] } .height(CommonConstants.EIGHTY_PERCENT) .width(this.breakPoint === CommonConstants.BREAK_POINT_LG ?