
回复
DevEco Studio安装完成后,可以通过运行Hello World工程来验证环境设置是否正确。接下来以创建一个支持Phone设备的工程为例进行介绍。
Index.ets内容
@Entry
@Component
struct Index {
@State message: string = 'Hello World';
build() {
// 元素按照水平方向排列
// Row({space:35}){
// // Text("space :35").fontSize(14).fontColor(Color.Black)
// // Row().width("10%").height(150).backgroundColor(Color.Red)
// // Row().width("10%").height(150).backgroundColor(Color.Red)
// // Row().width("10%").height(150).backgroundColor(Color.Red)
// //
// // }
// // .height('90%')
// // .width('100%')
}
}