diff --git a/TSDemo/entry/src/main/ets/MainAbility/model/AdaptiveDemoItems.ets b/TSDemo/entry/src/main/ets/MainAbility/model/AdaptiveDemoItems.ets new file mode 100644 index 0000000000000000000000000000000000000000..d4fbbcfe94d3c49d72b6d07f7738f779f7cc811a --- /dev/null +++ b/TSDemo/entry/src/main/ets/MainAbility/model/AdaptiveDemoItems.ets @@ -0,0 +1,2 @@ +export const AdaptiveDemoItems: any[] = [ +] \ No newline at end of file diff --git a/TSDemo/entry/src/main/ets/MainAbility/pages/MainMenu.ets b/TSDemo/entry/src/main/ets/MainAbility/pages/MainMenu.ets index 2e71b5c24943667dece337b6b119069f1def4bc6..c9a89e09411a827c6f315e4a7f55c21708ee2313 100644 --- a/TSDemo/entry/src/main/ets/MainAbility/pages/MainMenu.ets +++ b/TSDemo/entry/src/main/ets/MainAbility/pages/MainMenu.ets @@ -1,5 +1,6 @@ import {ComponentList, initList} from '../common/ComponentList' import {BasicItems} from '../model/BasicItems' +import {AdaptiveDemoItems} from '../model/AdaptiveDemoItems' //import {MediaItems} from '../model/MediaItems' //import {DrawingItems} from '../model/DrawingItems' import {ContainerItems} from '../model/ContainerItems' @@ -16,7 +17,11 @@ struct MainMenu { build() { Column() { AppBar(); - Tabs({ barPosition: BarPosition.Start, index: 1, controller: this.controller }) { + Tabs({ barPosition: BarPosition.Start, index: 0, controller: this.controller }) { + + TabContent() { + ComponentList({ itemArray: initList(AdaptiveDemoItems) }) + }.tabBar('Adaptive Demo') /* TabContent() { DeviceInfo() diff --git a/TSDemo/entry/src/main/ets/MainAbility/pages/adaptive/readme.txt b/TSDemo/entry/src/main/ets/MainAbility/pages/adaptive/readme.txt new file mode 100644 index 0000000000000000000000000000000000000000..d0541e17abeb19a61442bd78f485533bf75258ce --- /dev/null +++ b/TSDemo/entry/src/main/ets/MainAbility/pages/adaptive/readme.txt @@ -0,0 +1 @@ +put adaptive demo pages into this directory \ No newline at end of file