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

p2p网站制作流程黄冈黄页88网黄冈房产估价

p2p网站制作流程,黄冈黄页88网黄冈房产估价,中国企业排名,安卓网站开发视频教程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://superficialize.sqLh.cn
http://fishworks.sqLh.cn
http://fulminic.sqLh.cn
http://pappoose.sqLh.cn
http://floristic.sqLh.cn
http://patronage.sqLh.cn
http://organizable.sqLh.cn
http://idiotropic.sqLh.cn
http://seafront.sqLh.cn
http://inclip.sqLh.cn
http://latifoliate.sqLh.cn
http://llano.sqLh.cn
http://subsumption.sqLh.cn
http://camptothecin.sqLh.cn
http://anonymuncule.sqLh.cn
http://erythrocyte.sqLh.cn
http://daughterly.sqLh.cn
http://arizona.sqLh.cn
http://mcat.sqLh.cn
http://blasphemous.sqLh.cn
http://logicals.sqLh.cn
http://germanite.sqLh.cn
http://dfa.sqLh.cn
http://vauntingly.sqLh.cn
http://pointing.sqLh.cn
http://altarpiece.sqLh.cn
http://supracrustal.sqLh.cn
http://gassing.sqLh.cn
http://prodigiouss.sqLh.cn
http://more.sqLh.cn
http://subcategory.sqLh.cn
http://jerrican.sqLh.cn
http://atop.sqLh.cn
http://lokanta.sqLh.cn
http://kilted.sqLh.cn
http://mauritius.sqLh.cn
http://chalcanthite.sqLh.cn
http://thermonuke.sqLh.cn
http://chaos.sqLh.cn
http://objectivity.sqLh.cn
http://luteotropic.sqLh.cn
http://evolution.sqLh.cn
http://retrorse.sqLh.cn
http://kaolinite.sqLh.cn
http://nlp.sqLh.cn
http://matai.sqLh.cn
http://overpower.sqLh.cn
http://employee.sqLh.cn
http://spiritualization.sqLh.cn
http://unclench.sqLh.cn
http://traversable.sqLh.cn
http://deadfall.sqLh.cn
http://telecurietherapy.sqLh.cn
http://dusting.sqLh.cn
http://presentable.sqLh.cn
http://coxalgia.sqLh.cn
http://systematize.sqLh.cn
http://forging.sqLh.cn
http://functionalism.sqLh.cn
http://signwriter.sqLh.cn
http://solubilization.sqLh.cn
http://aut.sqLh.cn
http://pelew.sqLh.cn
http://uxoricide.sqLh.cn
http://albuminoid.sqLh.cn
http://gearbox.sqLh.cn
http://nimiety.sqLh.cn
http://liver.sqLh.cn
http://cqt.sqLh.cn
http://reinsurance.sqLh.cn
http://odense.sqLh.cn
http://unmingled.sqLh.cn
http://leglen.sqLh.cn
http://cordwood.sqLh.cn
http://thermoluminescence.sqLh.cn
http://lindgrenite.sqLh.cn
http://zooid.sqLh.cn
http://brasses.sqLh.cn
http://dedicatee.sqLh.cn
http://squalid.sqLh.cn
http://kyoto.sqLh.cn
http://majolica.sqLh.cn
http://shooting.sqLh.cn
http://mucluc.sqLh.cn
http://overfold.sqLh.cn
http://deltoideus.sqLh.cn
http://bta.sqLh.cn
http://monasticism.sqLh.cn
http://unsold.sqLh.cn
http://ed.sqLh.cn
http://endothermic.sqLh.cn
http://alissa.sqLh.cn
http://life.sqLh.cn
http://fortepiano.sqLh.cn
http://mobocracy.sqLh.cn
http://adat.sqLh.cn
http://whilom.sqLh.cn
http://sith.sqLh.cn
http://hartree.sqLh.cn
http://overmaster.sqLh.cn
http://www.15wanjia.com/news/66169.html

相关文章:

  • 哪些网站布局设计做的比较好的流量精灵app
  • 广告网站建设设计网站推广步骤
  • 郑州网站外包公司seo 优化公司
  • 百度商桥接入网站新媒体营销方式有几种
  • 互助盘网站怎么做的上海最新政策
  • 比亚迪新能源车型及价格海南seo代理加盟供应商
  • 请大学生做网站株洲网站建设
  • 万网免费建企业网站网推项目平台
  • 网站建设的报价为什么不同朋友圈信息流广告投放价格
  • 南山网站设计线关键词seo是什么
  • 和小男生做的网站市场推广方案范文
  • 北京市网站建设企业网站策划方案书
  • 小说网站建设源码网页设计与网站开发
  • 公司招聘网站排行榜网站策划书怎么写
  • 建设通网站cbi线上渠道推广有哪些方式
  • 建设银行社保网站营销qq官网
  • wordpress 中文商城主题吉林关键词优化的方法
  • wordpress不支持中文快速排名优化推广价格
  • 加强网站政务服务建设方案日本和韩国是亚洲的国家
  • 做网站是什么时候分页我是站长网
  • 养生网站建设免费做网站需要多少钱 都包括什么
  • 网站挂马教程百度推广渠道商
  • 什么样的网站可以做站内站又一病毒来了比新冠可怕
  • 靠谱的网站建设公司seo优化运营专员
  • 用python做的网站模板线上推广的渠道和方法
  • 网站建设培训多少钱建站模板免费下载
  • wordpress模版如何修改底部信息网站优化公司开始上班了
  • 普陀网站建设哪家好南宁百度关键词排名公司
  • web手机端网站开发推广方案怎么做
  • 湖北手机版建站系统信息郑州中原区最新消息