国产亚洲精品福利在线无卡一,国产精久久一区二区三区,亚洲精品无码国模,精品久久久久久无码专区不卡

當前位置: 首頁 > news >正文

微信上建微網(wǎng)站要錢嗎深圳seo優(yōu)化服務(wù)

微信上建微網(wǎng)站要錢嗎,深圳seo優(yōu)化服務(wù),東莞網(wǎng)站建設(shè)模板報價,網(wǎng)站ssl證書怎么做1、首先安裝必要的開發(fā)工具 1.1通過訪問https://developer.harmonyos.com/cn/develop/deveco-studio 1.2安裝軟件 1.3通過訪問https://nodejs.org/en/download/ (注:安裝Node.js按自己系統(tǒng)安裝) 1.4安裝HarmonyOS SDK 把上述都勾選中進行…

1、首先安裝必要的開發(fā)工具

1.1通過訪問https://developer.harmonyos.com/cn/develop/deveco-studio在這里插入圖片描述
1.2安裝軟件
在這里插入圖片描述
1.3通過訪問https://nodejs.org/en/download/
(注:安裝Node.js按自己系統(tǒng)安裝)
在這里插入圖片描述
1.4安裝HarmonyOS SDK
在這里插入圖片描述在這里插入圖片描述
在這里插入圖片描述
把上述都勾選中進行安裝。

2、創(chuàng)建一個HarmonyOS項目

在這里插入圖片描述
選擇EmptyAbility(選擇框中的內(nèi)容是,支持的設(shè)備)
在這里插入圖片描述
下一步
在這里插入圖片描述

3、實現(xiàn)最基礎(chǔ)的頁面跳轉(zhuǎn)

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="跳轉(zhuǎn)按鈕"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);/*注釋:在找組件的過程中,系統(tǒng)會自己加上ID_,后面的部分為自己取的名字*/button.setClickedListener(listener->present(new SecondAbilitySlice(),new Intent()));}@Overridepublic void onActive() {super.onActive();}@Overridepublic void onForeground(Intent intent) {super.onForeground(intent);}
}

3.3創(chuàng)建一個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);// 設(shè)置布局寬高myLayout.setWidth(DependentLayout.LayoutConfig.MATCH_PARENT);myLayout.setHeight(DependentLayout.LayoutConfig.MATCH_PARENT);// 設(shè)置布局背景為白色ShapeElement background = new ShapeElement();background.setRgbColor(new RgbColor(255, 255, 255));myLayout.setBackground(background);// 創(chuàng)建一個文本Text text = new Text(this);text.setText("Hi there");text.setWidth(DependentLayout.LayoutConfig.MATCH_PARENT);text.setTextSize(100);text.setTextColor(Color.BLACK);// 設(shè)置文本的布局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創(chuàng)建一個虛擬機
在這里插入圖片描述
此處需要登陸,需要擁有開發(fā)者賬號

選擇手機(phone)

運行那個小三角小三角就好了

4、結(jié)語

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

http://m.aloenet.com.cn/news/35827.html

相關(guān)文章:

  • 會展設(shè)計專業(yè)學什么百度seo整站優(yōu)化
  • 重慶網(wǎng)領(lǐng)網(wǎng)站建設(shè)公司百度快照客服人工電話
  • 內(nèi)容導購網(wǎng)站模板網(wǎng)頁設(shè)計個人主頁模板
  • 網(wǎng)站建設(shè)策劃實訓總結(jié)谷歌優(yōu)化推廣
  • 專業(yè)網(wǎng)站建設(shè)哪里好葫島百度seo
  • 企業(yè)網(wǎng)站 留言板站長之家seo查找
  • 織夢網(wǎng)站如何做seo班級優(yōu)化大師免費下載
  • 廣州網(wǎng)站建設(shè)廣州網(wǎng)絡(luò)推廣公司如何建立一個網(wǎng)站
  • ftp網(wǎng)站劫持微博推廣怎么做
  • 網(wǎng)站建設(shè)違約怎么優(yōu)化網(wǎng)站排名才能起來
  • 公司網(wǎng)站建站哪個系統(tǒng)好用網(wǎng)站建設(shè)seo優(yōu)化培訓
  • flashcs6網(wǎng)站建設(shè)成品網(wǎng)站貨源1
  • 培訓公司網(wǎng)站建設(shè)圖片外鏈生成
  • 個人博客網(wǎng)站總結(jié)漯河seo推廣
  • 簡單大氣網(wǎng)站欣賞數(shù)據(jù)推廣公司
  • 福州市人民政府網(wǎng)免費seo網(wǎng)站推薦一下
  • 有網(wǎng)站地圖的網(wǎng)站怎樣淘寶seo排名優(yōu)化
  • 做卡通的素材網(wǎng)站jsurl轉(zhuǎn)碼
  • 公司做網(wǎng)站找誰公司做網(wǎng)站找誰整合營銷傳播案例分析
  • 工商局網(wǎng)站怎么做增項網(wǎng)絡(luò)推廣都需要做什么
  • 兩學一做 網(wǎng)站源碼app注冊推廣團隊
  • 信譽比較好的商家可做網(wǎng)站蘇州seo優(yōu)化
  • 萬象園網(wǎng)站建設(shè)與開發(fā)阿里云com域名注冊
  • 武漢公司網(wǎng)站建設(shè)高端網(wǎng)站建設(shè)哪家便宜
  • 重慶造價信息網(wǎng)官網(wǎng)首頁長沙seo外包
  • 搜搜提交網(wǎng)站入口長沙網(wǎng)站seo報價
  • 游戲推廣網(wǎng)站怎么做南京網(wǎng)絡(luò)營銷服務(wù)
  • 做英文網(wǎng)站 賺美元網(wǎng)絡(luò)推廣費計入什么科目
  • 榆林做網(wǎng)站多少錢網(wǎng)絡(luò)游戲推廣怎么做
  • 網(wǎng)絡(luò)公司 網(wǎng)站建設(shè) 小程序關(guān)鍵詞代做排名推廣