当前位置: 首页 > news >正文

p2p网站制作流程seo综合查询爱站

p2p网站制作流程,seo综合查询爱站,怎么做虚拟网站,建设财经资讯网站的目的1、首先安装必要的开发工具 1.1通过访问https://developer.harmonyos.com/cn/develop/deveco-studio 1.2安装软件 1.3通过访问https://nodejs.org/en/download/ (注:安装Node.js按自己系统安装) 1.4安装HarmonyOS SDK 把上述都勾选中进行…

1、首先安装必要的开发工具

1.1通过访问https://developer.harmonyos.com/cn/develop/deveco-studio在这里插入图片描述
1.2安装软件
在这里插入图片描述
1.3通过访问https://nodejs.org/en/download/
(注:安装Node.js按自己系统安装)
在这里插入图片描述
1.4安装HarmonyOS SDK
在这里插入图片描述在这里插入图片描述
在这里插入图片描述
把上述都勾选中进行安装。

2、创建一个HarmonyOS项目

在这里插入图片描述
选择EmptyAbility(选择框中的内容是,支持的设备)
在这里插入图片描述
下一步
在这里插入图片描述

3、实现最基础的页面跳转

3.1首先进入目录下的entry/src/main/resources/base/layout/下的ability_main.xml文件

<?xml version="1.0" encoding="utf-8"?>
<DirectionalLayoutxmlns:ohos="http://schemas.huawei.com/res/ohos"ohos:height="match_parent"ohos:width="match_parent"ohos:alignment="center"ohos:orientation="vertical"><Textohos:id="$+id:text_helloworld"ohos:height="match_content"ohos:width="match_content"ohos:background_element="$graphic:background_ability_main"ohos:layout_alignment="horizontal_center"ohos:text="$string:mainability_HelloWorld"ohos:text_size="40vp"/><Buttonohos:id="$+id:button1"ohos:height="match_parent"ohos:width="match_parent"ohos:layout_alignment="horizontal_center"ohos:text="跳转按钮"ohos:text_size="50vp"></Button></DirectionalLayout>

3.2然后去目录entry/src/main/java/com.example.helloword/slice/下的MainAbilitySlice文件:

package com.example.helloword.slice;import com.example.helloword.ResourceTable;
import ohos.aafwk.ability.AbilitySlice;
import ohos.aafwk.content.Intent;
import ohos.agp.components.Button;
import ohos.agp.components.Component;
import ohos.agp.components.Text;public class MainAbilitySlice extends AbilitySlice {@Overridepublic void onStart(Intent intent) {super.onStart(intent);super.setUIContent(ResourceTable.Layout_ability_main);Text text = (Text) findComponentById(ResourceTable.Id_text_helloworld);Button button = (Button) findComponentById(ResourceTable.Id_button1);/*注释:在找组件的过程中,系统会自己加上ID_,后面的部分为自己取的名字*/button.setClickedListener(listener->present(new SecondAbilitySlice(),new Intent()));}@Overridepublic void onActive() {super.onActive();}@Overridepublic void onForeground(Intent intent) {super.onForeground(intent);}
}

3.3创建一个Slice在目录entry/src/main/java/com.example.helloword/slice/下新建一个java class取名为SecondAbilitySlice
SecondAbilitySlice文件为:

package com.example.helloword.slice;import ohos.aafwk.ability.AbilitySlice;
import ohos.aafwk.content.Intent;
import ohos.agp.colors.RgbColor;
import ohos.agp.components.DependentLayout;
import ohos.agp.components.Text;
import ohos.agp.components.element.ShapeElement;
import ohos.agp.utils.Color;public class SecondAbilitySlice extends AbilitySlice {@Overrideprotected void onStart(Intent intent) {super.onStart(intent);// 声明布局DependentLayout myLayout = new DependentLayout(this);// 设置布局宽高myLayout.setWidth(DependentLayout.LayoutConfig.MATCH_PARENT);myLayout.setHeight(DependentLayout.LayoutConfig.MATCH_PARENT);// 设置布局背景为白色ShapeElement background = new ShapeElement();background.setRgbColor(new RgbColor(255, 255, 255));myLayout.setBackground(background);// 创建一个文本Text text = new Text(this);text.setText("Hi there");text.setWidth(DependentLayout.LayoutConfig.MATCH_PARENT);text.setTextSize(100);text.setTextColor(Color.BLACK);// 设置文本的布局DependentLayout.LayoutConfig textConfig = new DependentLayout.LayoutConfig(DependentLayout.LayoutConfig.MATCH_CONTENT, DependentLayout.LayoutConfig.MATCH_CONTENT);textConfig.addRule(DependentLayout.LayoutConfig.CENTER_IN_PARENT);text.setLayoutConfig(textConfig);myLayout.addComponent(text);super.setUIContent(myLayout);}
}

3.4创建一个虚拟机
在这里插入图片描述
此处需要登陆,需要拥有开发者账号

选择手机(phone)

运行那个小三角小三角就好了

4、结语

好的开始是成功的一大步!

http://www.mmbaike.com/news/37199.html

相关文章:

  • 怀柔做网站淘宝指数网站
  • 男人和女人做受吃母乳视频网站免费公司网站优化
  • 政务服务 网站 建设方案seo免费外链工具
  • 广州建网站白云区网站seo优化案例
  • 网站建设预付流程服装网络营销策划书
  • 烟台网站推广冬镜seo
  • 做网站用什么源码好今日头条(官方版本)
  • 石家庄做建站模板网站建设维护
  • 湖南长沙网站建设seo外链推广工具下载
  • o2o网站设计方案百度广告推广电话
  • 扬州网站建设近几天发生的新闻大事
  • WordPress只能sslseo关键词排名优化是什么
  • c2c模式举例子郑州整站网站优化
  • 物流行业网站建设方案考研比较厉害的培训机构
  • 计算机应用技术ui设计是什么seo百度站长工具
  • 做网站用到的工具成人零基础学电脑培训班
  • 做一个网站多久快点tv下载安装
  • 记事本做网站东方网络律师团队
  • wordpress cue插件廊坊百度seo公司
  • 回龙观做网站优化网站推广网站
  • 营销网站建设服务chrome官方下载
  • 高台县建设局网站百度云资源搜索引擎入口
  • 怎么做便民信息网站网络营销和市场营销的区别
  • 在线播放的网站怎么做东莞做网站seo
  • 台州路桥网站建设seowhy官网
  • 如何建立企业网站或者官网快速网站排名提升
  • 网站模板psd百度小说排行榜第一名
  • 广告公司网站建设方案免费的网站推广平台
  • 建设手机网站费用吗站群优化公司
  • 深圳高端网站制作价格google引擎入口