0
  • 聊天消息
  • 系統(tǒng)消息
  • 評論與回復(fù)
登錄后你可以
  • 下載海量資料
  • 學(xué)習(xí)在線課程
  • 觀看技術(shù)視頻
  • 寫文章/發(fā)帖/加入社區(qū)
會員中心
創(chuàng)作中心

完善資料讓更多小伙伴認(rèn)識你,還能領(lǐng)取20積分哦,立即完善>

3天內(nèi)不再提示

鴻蒙開發(fā)(Harmonyos兼容與Harmonyos適配)

jf_46214456 ? 來源:jf_46214456 ? 作者:jf_46214456 ? 2024-01-26 17:49 ? 次閱讀

布局的實(shí)現(xiàn)

Layout_ability_main.xml布局:

< ?xml version="1.0" encoding="utf-8"? >
< DirectionalLayout
    xmlns:ohos="http://schemas.huawei.com/res/ohos"
    ohos:height="match_parent"
    ohos:width="match_parent"
    ohos:alignment="center"
    ohos:orientation="vertical" >

    < TextField
        ohos:id="$+id:content"
        ohos:height="0vp"
        ohos:weight="1"
        ohos:width="match_parent"
        ohos:enabled="false"
        ohos:padding="20vp"
        ohos:text="0"
        ohos:text_alignment="center"
        ohos:text_size="30"/ >

    < ScrollView
        ohos:height="0vp"
        ohos:weight="1.8"
        ohos:width="match_parent" >

        < DirectionalLayout
            ohos:height="match_content"
            ohos:width="match_parent"
            ohos:alignment="horizontal_center"
            ohos:orientation="vertical" >

            < DirectionalLayout
                ohos:height="match_content"
                ohos:width="match_parent"
                ohos:orientation="horizontal" >

                

                

                

                

            < /DirectionalLayout >

            < DirectionalLayout
                ohos:height="match_content"
                ohos:width="match_parent"
                ohos:orientation="horizontal" >

                

                

                

                

            < /DirectionalLayout >

            < DirectionalLayout
                ohos:height="match_content"
                ohos:width="match_parent"
                ohos:orientation="horizontal" >

                

                

                

                

            < /DirectionalLayout >

            < DirectionalLayout
                ohos:height="match_content"
                ohos:width="match_parent"
                ohos:orientation="horizontal" >

                

                

                

                

            < /DirectionalLayout >

            < DirectionalLayout
                ohos:height="match_content"
                ohos:width="match_parent"
                ohos:orientation="horizontal" >


                

                

                

            < /DirectionalLayout >

        < /DirectionalLayout >
    < /ScrollView >
< /DirectionalLayout >
< /DirectionalLayout >
< /DirectionalLayout >

background_button1.xml背景樣式:

< ?xml version="1.0" encoding="utf-8"? >
< shape
    xmlns:ohos="http://schemas.huawei.com/res/ohos"
    ohos:shape="rectangle" >
    < solid ohos:color="#CCF1F1F1"/ >
    < corners ohos:radius="20vp"/ >
< /shape >
< /shape >
< /shape >

background_button2.xml背景樣式:

< shape
    xmlns:ohos="http://schemas.huawei.com/res/ohos"
    ohos:shape="rectangle" >
    < solid ohos:color="#FFE4F2FE"/ >
    < corners ohos:radius="20vp"/ >
< /shape >
< /shape >
< /shape >

background_button3.xml背景樣式:

< ?xml version="1.0" encoding="utf-8"? >
< shape
    xmlns:ohos="http://schemas.huawei.com/res/ohos"
    ohos:shape="rectangle" >
    < solid ohos:color="#FF007CFD"/ >
    < corners ohos:radius="20vp"/ >
< /shape >
< /shape >
< /shape >

嗯,編寫布局頁面不難、稍微難點(diǎn)的是電視、車載設(shè)備、Pad、手機(jī)、手表五個端的屏幕適配。

界面編寫完,發(fā)現(xiàn)各個端的屏幕高度還沒有做適配,一開始認(rèn)為AndroidHarmonyOSJava語言都可以編寫,HarmonyOS也可以使用Android的相關(guān)框架,便想著如何在HarmonyOS上去使用Android的屏幕適配方案,在用了今日頭條的屏幕適配方案開刀后,發(fā)現(xiàn)壓根行不通,今日頭條的屏幕適配方案用的單位是dp,這個單位在HarmonyOS上并沒有,只有類似的vp,看來還是我太天真了。

Android屏幕單位有dp、in、mm、pt、px、sp,HarmonOS屏幕單位有fp、px、vp。

其中兩者相同的單位是px,Android的dp與HarmonOS的vp都是為各自設(shè)備量身打造的單位,若想要搞一個兩者都可以用的屏幕適配框架,也許,只能從px找突破口。今日頭條的屏幕適配方案用的單位雖然是HarmonyOS所沒有的dp,但其實(shí)它最終都是要拿dp來轉(zhuǎn)換成px的喔~

Java代碼邏輯

繼承AbilitySlice的MainAbilitySlice類:

public class MainAbilitySlice extends AbilitySlice implements Component.ClickedListener {
    private Utils utils = Utils.getInstance();
    private TextField content;
    private String formula = "";

    @Override
    public void onStart(Intent intent) {
        super.onStart(intent);
        super.setUIContent(ResourceTable.Layout_ability_main);
        initView();
        highlyAdaptive();
    }

    /**
     * 各個按鈕點(diǎn)擊事件
     * @param component
     */
    @Override
    public void onClick(Component component) {
        switch (component.getId()) {
            case ResourceTable.Id_one:
                if (utils.isNumStart(formula)) formula = utils.isZero(formula, "1");
                else formula = "1";
                break;
            case ResourceTable.Id_two:
                if (utils.isNumStart(formula)) formula = utils.isZero(formula, "2");
                else formula = "2";
                break;
            case ResourceTable.Id_three:
                if (utils.isNumStart(formula)) formula = utils.isZero(formula, "3");
                else formula = "3";
                break;
            case ResourceTable.Id_four:
                if (utils.isNumStart(formula)) formula = utils.isZero(formula, "4");
                else formula = "4";
                break;
            case ResourceTable.Id_five:
                if (utils.isNumStart(formula)) formula = utils.isZero(formula, "5");
                else formula = "5";
                break;
            case ResourceTable.Id_six:
                if (utils.isNumStart(formula)) formula = utils.isZero(formula, "6");
                else formula = "6";
                break;
            case ResourceTable.Id_seven:
                if (utils.isNumStart(formula)) formula = utils.isZero(formula, "7");
                else formula = "7";
                break;
            case ResourceTable.Id_eight:
                if (utils.isNumStart(formula)) formula = utils.isZero(formula, "8");
                else formula = "8";
                break;
            case ResourceTable.Id_nine:
                if (utils.isNumStart(formula)) formula = utils.isZero(formula, "9");
                else formula = "9";
                break;
            case ResourceTable.Id_zero:
                if (utils.isNumStart(formula)) formula = utils.isZero(formula, "0");
                else formula = "0";
                break;
            case ResourceTable.Id_reset:
                formula = "0";
                break;
            case ResourceTable.Id_except:
                if (utils.isNumEnd(formula)) formula += "÷";
                else if (!formula.substring(formula.length() - 1, formula.length()).equals("."))
                    formula = formula.substring(0, formula.length() - 1) + "÷";
                break;
            case ResourceTable.Id_ride:
                formula = utils.isNum(formula, "x");
                break;
            case ResourceTable.Id_percentage:
                formula = utils.isNum(formula, "%");
                break;
            case ResourceTable.Id_decimal_point:
                if (utils.isNumEnd(formula) && !utils.isDecimals(formula)) formula += ".";
                break;
            case ResourceTable.Id_delete:
                if (!formula.equals("") && !formula.equals("0")) {
                    formula = formula.substring(0, formula.length() - 1);
                    if (formula.equals("")) formula = "0";
                }
                break;
            case ResourceTable.Id_reduce:
                if (utils.isNumEnd(formula)) formula += "-";
                else formula = formula.substring(0, formula.length() - 1) + "-";
                break;
            case ResourceTable.Id_add:
                if (utils.isNumEnd(formula)) formula += "+";
                else formula =
                        formula.substring(0, formula.length() - 1) + "+";
                break;
            case ResourceTable.Id_equal:
                equal();
                break;
            default:
                break;
        }
        if (component.getId() != ResourceTable.Id_equal) {
            content.setText(formula);
        }
    }

    private void equal() {
        if (formula.equals("")) {
            // 如果沒有輸入公式
            utils.toast(this, "還沒輸入公式呢");
            return;
        } else if (!utils.isNumEnd(formula)) {
            // 如果公式的最后一位數(shù)非數(shù)字
            utils.toast(this, "計算器表示沒見過這樣的數(shù)學(xué)公式,運(yùn)算不出來");
            return;
        }
        String[] split;
        if (!utils.isContains(formula, ".")) {
            // 計算整數(shù)
            if (utils.isContains(formula, "-")) {
                // 減法
                split = formula.split("-");
                if (split.length > 1)
                    result((Integer.parseInt(split[0]) + Integer.parseInt(split[1])) + "");
            } else if (utils.isContains(formula, "+")) {
                // 加法
                split = formula.split("+");
                if (split.length > 1)
                    result((Integer.parseInt(split[0]) + Integer.parseInt(split[1])) + "");
            } else if (utils.isContains(formula, "x")) {
                // 乘法
                split = formula.split("x");
                if (split.length > 1)
                    result((Integer.parseInt(split[0]) + Integer.parseInt(split[1])) + "");
            } else if (utils.isContains(formula, "÷")) {
                // 除法
                split = formula.split("÷");
                if (split.length > 1)
                    result((Integer.parseInt(split[0]) + Integer.parseInt(split[1])) + "");
            } else if (utils.isContains(formula, "%")) {
                // 取余
                split = formula.split("%");
                if (split.length > 1)
                    result((Integer.parseInt(split[0]) + Integer.parseInt(split[1])) + "");
            }
        } else {
            // 計算小數(shù)
            if (utils.isContains(formula, "-")) {
                // 減法
                split = formula.split("-");
                if (split.length > 1)
                    result((Double.parseDouble(split[0]) - Double.parseDouble(split[1])) + "");
            } else if (utils.isContains(formula, "+")) {
                // 加法
                split = formula.split("+");
                if (split.length > 1)
                    result((Double.parseDouble(split[0]) - Double.parseDouble(split[1])) + "");
            } else if (utils.isContains(formula, "x")) {
                // 乘法
                split = formula.split("x");
                if (split.length > 1)
                    result((Double.parseDouble(split[0]) - Double.parseDouble(split[1])) + "");
            } else if (utils.isContains(formula, "÷")) {
                // 除法`
                split = formula.split("÷");
                if (split.length > 1)
                    result((Double.parseDouble(split[0]) - Double.parseDouble(split[1])) + "");
            } else if (utils.isContains(formula, "%")) {
                // 取余
                split = formula.split("%");
                if (split.length > 1)
                    result((Double.parseDouble(split[0]) - Double.parseDouble(split[1])) + "");
            }
        }
    }

    private void result(String value) {
        formula = value;
        content.setText(value);
    }

    /**
     * 根據(jù)不同設(shè)備調(diào)整高度
     */
    private void highlyAdaptive() {
        if (DeviceInfo.getDeviceType().equals("phone")) {
            // 手機(jī)設(shè)備
            ComponentContainer.LayoutConfig layoutConfig = new ComponentContainer.LayoutConfig();
            layoutConfig.height = 1100;
            content.setLayoutConfig(layoutConfig);
        } else if (DeviceInfo.getDeviceType().equals("tablet")) {
            // 平板設(shè)備
            ComponentContainer.LayoutConfig layoutConfig = new ComponentContainer.LayoutConfig();
            layoutConfig.height = 1200;
            content.setLayoutConfig(layoutConfig);
        } else if (DeviceInfo.getDeviceType().equals("tv")) {
            // TV設(shè)備
            ComponentContainer.LayoutConfig layoutConfig = new ComponentContainer.LayoutConfig();
            layoutConfig.height = 160;
            content.setLayoutConfig(layoutConfig);
        } else if (DeviceInfo.getDeviceType().equals("wearable")) {
            // 可穿戴設(shè)備
            ComponentContainer.LayoutConfig layoutConfig = new ComponentContainer.LayoutConfig();
            layoutConfig.height = 150;
            content.setLayoutConfig(layoutConfig);
        } else if (DeviceInfo.getDeviceType().equals("car")) {
            // 車載設(shè)備
            ComponentContainer.LayoutConfig layoutConfig = new ComponentContainer.LayoutConfig();
            layoutConfig.height = 500;
            content.setLayoutConfig(layoutConfig);
        }
    }

    /**
     * 初始化xml布局控件
     */
    private void initView() {
        content = (TextField) findComponentById(ResourceTable.Id_content);
        ((Button) findComponentById(ResourceTable.Id_one)).setClickedListener(this);
        ((Button) findComponentById(ResourceTable.Id_two)).setClickedListener(this);
        ((Button) findComponentById(ResourceTable.Id_three)).setClickedListener(this);
        ((Button) findComponentById(ResourceTable.Id_four)).setClickedListener(this);
        ((Button) findComponentById(ResourceTable.Id_five)).setClickedListener(this);
        ((Button) findComponentById(ResourceTable.Id_six)).setClickedListener(this);
        ((Button) findComponentById(ResourceTable.Id_seven)).setClickedListener(this);
        ((Button) findComponentById(ResourceTable.Id_eight)).setClickedListener(this);
        ((Button) findComponentById(ResourceTable.Id_nine)).setClickedListener(this);
        ((Button) findComponentById(ResourceTable.Id_zero)).setClickedListener(this);
        ((Button) findComponentById(ResourceTable.Id_reset)).setClickedListener(this);
        ((Button) findComponentById(ResourceTable.Id_except)).setClickedListener(this);
        ((Button) findComponentById(ResourceTable.Id_ride)).setClickedListener(this);
        ((Button) findComponentById(ResourceTable.Id_delete)).setClickedListener(this);
        ((Button) findComponentById(ResourceTable.Id_reduce)).setClickedListener(this);
        ((Button) findComponentById(ResourceTable.Id_add)).setClickedListener(this);
        ((Button) findComponentById(ResourceTable.Id_equal)).setClickedListener(this);
        ((Button) findComponentById(ResourceTable.Id_decimal_point)).setClickedListener(this);
        ((Button) findComponentById(ResourceTable.Id_percentage)).setClickedListener(this);
    }
}
}
}

由于在編寫xml UI時屏幕適配只能做到寬度適配或高度適配,沒辦法在一個xml界面同時適配寬度與高度,為此寫了一個highlyAdaptive方法處理xml沒能完成的高度適配,方法通過DeviceInfo.getDeviceType()來得到設(shè)備的類型,根據(jù)不同的設(shè)備去修改它的高度,也算是實(shí)現(xiàn)了高度適配。

Utils類:

public class Utils {
    private static Utils utils = new Utils();
    private static ToastDialog toastDialog;
    private String[] symbol = new String[]{"+", "-", "x", "÷", "%"};

    public static Utils getInstance() {
        return utils;
    }

    public void toast(Context context, String text) {
        if (toastDialog == null) {
            toastDialog = new ToastDialog(context);
        }
        toastDialog.setAlignment(LayoutAlignment.CENTER);
        toastDialog.setText(text);
        toastDialog.show();
    }

    /**
     * 判斷最后一位是否數(shù)字
     * @param content
     */
    public boolean isNumber(String content){
        char[] chars = content.substring(content.length() - 1, content.length()).toCharArray();
        return Character.isDigit(chars[0]);
    }

    /**
     * 判斷是否是小數(shù)
     */
    public boolean isDecimals(String str) {
        if (isDecimal(str)) {
            for (String s : symbol) {
                if (isContains(str, s)) {
                    String[] split = str.split(s);
                    if (split != null){
                        if (!isDecimal(split[split.length - 1])) {
                            return false;
                        } else {
                            return true;
                        }
                    }
                }
            }
            return true;
        }
        return false;
    }

    /**
     * 判斷一位數(shù)是否是小數(shù)
     */
    public boolean isDecimal(String str) {
        if (isContains(str, "."))
            return true;
        else
            return false;
    }

    /**
     * 是否包含某一個運(yùn)算符
     */
    public boolean isContains(String value, String contain) {
        if (value.indexOf(contain) == -1)
            return false;
        else
            return true;
    }

    /**
     * 最后一個值是數(shù)字就加符號,不是數(shù)字則替換它
     * @param str 符號
     */
    public String isNum(String content,String str) {
        if (isNumEnd(content)) content += str;
        else content = content.substring(0, content.length() - 1) + str;
        return content;
    }

    /**
     * 第一個值是0,輸入整數(shù)則替換掉
     */
    public String isZero(String content,String str) {
        if (content.equals("0")) {
            content = str;
        } else {
            content += str;
        }
        return content;
    }

    /**
     * 得到第一個值是否是數(shù)字
     */
    public boolean isNumStart(String str) {
        if (str.startsWith("+") || str.startsWith("x") || str.startsWith("÷") || str.startsWith("%") || str.equals("")) {
            return false;
        }
        return true;
    }

    /**
     * 得到最后一個值是否是數(shù)字
     */
    public boolean isNumEnd(String str) {
        char[] chars = str.substring(str.length() - 1, str.length()).toCharArray();
        if (!Character.isDigit(chars[chars.length - 1])) {
            return false;
        }
        return true;
    }
}
}
}

GIF演示實(shí)現(xiàn)效果

  • Phone 設(shè)備實(shí)現(xiàn)效果
  • Pad 設(shè)備實(shí)現(xiàn)效果
  • TV 設(shè)備實(shí)現(xiàn)效果
  • Wearable 設(shè)備實(shí)現(xiàn)效果
    目前所有設(shè)備中,Wearable是幾個設(shè)備中最不好適配、最難適配的設(shè)備,但,想實(shí)現(xiàn)也并非不可能。
    如果繼續(xù)適配Wearable,目前能想到Wearable屏幕適配的方法有三種:
    1、需要將背景換成一個圓,按鈕都放進(jìn)一個自動換行的組件。只是,這個想法不是很現(xiàn)實(shí),Android的RecycleView組件也只是一行固定多少個才會換行,HarmonyOS的ListContainer組件能否實(shí)現(xiàn)效果還是個未知數(shù)。
    2、使用他人開源的屏幕適配框架。不過,這個很遺憾,截止至發(fā)稿,還未能了解到有相關(guān)的適配框架。
    3、另外寫一個適配Wearable的布局。在onState方法執(zhí)行super.setUIContent前更換專門為Wearable而寫的xml,如:
@Override
    public void onStart(Intent intent) {
        super.onStart(intent);
        // wearable設(shè)備換一個布局
        if (DeviceInfo.getDeviceType().equals("wearable")){
            super.setUIContent(Wearable布局);
        }else{
            super.setUIContent(ResourceTable.Layout_ability_main);
        }
    }
    }
}

Car 實(shí)現(xiàn)效果

截止至發(fā)稿,Car還沒有開放對應(yīng)的機(jī)型,沒能使用遠(yuǎn)程真機(jī)進(jìn)行測試查看最終效果。這個效果圖也只是點(diǎn)擊Previewer進(jìn)行查看的樣式及效果。

Previewer注意事項(xiàng):

1、點(diǎn)擊Previewer查看xml,偶爾點(diǎn)擊xml的一些樣式并不會有響應(yīng),需要關(guān)閉Previewer并重新打開。

2、Previewer展示的樣式不會顯示ToastDialog等對話框、不會打印日志、不能點(diǎn)擊Debug進(jìn)行測試,還是使用真機(jī)測試真機(jī)測試香。

此次是我自HarmonyOS的DevEco Studio開發(fā)工具發(fā)布以來第一次開發(fā)的APP,身為一個Android開發(fā)工程師,做起HarmonyOS開發(fā)并不是很難,其中有很多東西都類似。DevEco Studio的遠(yuǎn)程真機(jī)測試與Previewer,效果杠杠的,要知道網(wǎng)上很多遠(yuǎn)程真機(jī)測試可都是收費(fèi)制,且按使用時間收費(fèi),這一功能的出現(xiàn)可降低了不少開發(fā)費(fèi)用。

審核編輯 黃宇

聲明:本文內(nèi)容及配圖由入駐作者撰寫或者入駐合作網(wǎng)站授權(quán)轉(zhuǎn)載。文章觀點(diǎn)僅代表作者本人,不代表電子發(fā)燒友網(wǎng)立場。文章及其配圖僅供工程師學(xué)習(xí)之用,如有內(nèi)容侵權(quán)或者其他違規(guī)問題,請聯(lián)系本站處理。 舉報投訴
  • 測試
    +關(guān)注

    關(guān)注

    8

    文章

    4944

    瀏覽量

    125981
  • 開發(fā)
    +關(guān)注

    關(guān)注

    0

    文章

    359

    瀏覽量

    40739
  • 鴻蒙
    +關(guān)注

    關(guān)注

    56

    文章

    2270

    瀏覽量

    42501
  • HarmonyOS
    +關(guān)注

    關(guān)注

    79

    文章

    1948

    瀏覽量

    29754
收藏 人收藏

    評論

    相關(guān)推薦

    華為“純血”鴻蒙系統(tǒng) HarmonyOS NEXT 將于9月底推出正式版

    HarmonyOS NEXT 將于今年 9 月底推出正式版本。 “從發(fā)布第一個版本到今年的 9 月份,這個(9 月)月底我們會正式發(fā)布 HarmonyOS NEXT,這一版本是完全獨(dú)立開發(fā)、獨(dú)立自主的,而且是不
    的頭像 發(fā)表于 09-14 14:27 ?346次閱讀

    慶科信息獲HarmonyOS高級應(yīng)用開發(fā)能力認(rèn)證!助力品牌快速打造鴻蒙原生應(yīng)用

    近日,上海慶科信息技術(shù)有限公司榮獲HarmonyOS應(yīng)用開發(fā)者高級認(rèn)證,公司在華為鴻蒙生態(tài)的開發(fā)能力得到進(jìn)一步拓展,能夠幫助客戶快速開發(fā)基于
    的頭像 發(fā)表于 07-17 13:24 ?443次閱讀
    慶科信息獲<b class='flag-5'>HarmonyOS</b>高級應(yīng)用<b class='flag-5'>開發(fā)</b>能力認(rèn)證!助力品牌快速打造<b class='flag-5'>鴻蒙</b>原生應(yīng)用

    華為鴻蒙HarmonyOS NEXT 9月啟動,下半年全場景布局

    早前這位博主曾在4月29日發(fā)表文章稱,盡管鴻蒙NEXT在常見App適配方面已取得顯著進(jìn)展,但仍有部分功能尚未完全開發(fā)完成,可能導(dǎo)致系統(tǒng)顯示暫不支持相關(guān)內(nèi)容。此外,新版本在流暢度方面已基本與現(xiàn)有
    的頭像 發(fā)表于 05-20 16:07 ?723次閱讀

    MobTech袤博科技旗下核心SDK產(chǎn)品已全面適配HarmonyOS NEXT鴻蒙星河版

    日前,華為在鴻蒙生態(tài)春季溝通會上宣布,目前已有超4000個應(yīng)用加入鴻蒙生態(tài),鴻蒙生態(tài)再次迎來新的里程碑。作為應(yīng)用開發(fā)的重要組件,MobTech袤博科技旗下核心SDK產(chǎn)品已全面完成
    的頭像 發(fā)表于 05-14 17:41 ?354次閱讀

    鴻蒙新篇章,領(lǐng)航新征程 I 軟通動力榮膺首批“HarmonyOS開發(fā)服務(wù)商”

    HarmonyOS開發(fā)服務(wù)商”,成為華為該領(lǐng)域首批認(rèn)證服務(wù)商。 軟通動力高級副總裁石蓉(右),華為終端云開發(fā)者服務(wù)與平臺部總裁望岳(左) HarmonyOS
    的頭像 發(fā)表于 03-14 17:19 ?365次閱讀
    <b class='flag-5'>鴻蒙</b>新篇章,領(lǐng)航新征程 I 軟通動力榮膺首批“<b class='flag-5'>HarmonyOS</b><b class='flag-5'>開發(fā)</b>服務(wù)商”

    2024款鴻蒙OS 最新HarmonyOS Next_HarmonyOS4.0系列教程分享

    鴻蒙的出現(xiàn),標(biāo)志著中國科技的崛起。HarmonyOS就是我們說的華為鴻蒙系統(tǒng),截止到2023年8月4日已有超過7億臺設(shè)備搭載了鴻蒙OS系統(tǒng)。據(jù)多家媒體報道,2024年國內(nèi)有21所985
    發(fā)表于 02-28 10:29

    華為宣布HarmonyOS NEXT鴻蒙星河版開發(fā)者預(yù)覽面向開發(fā)者開放申請

    華為宣布HarmonyOS NEXT鴻蒙星河版開發(fā)者預(yù)覽面向開發(fā)者開放申請,這意味著鴻蒙生態(tài)進(jìn)入第二階段,將加速千行百業(yè)的應(yīng)用
    的頭像 發(fā)表于 01-29 16:42 ?1253次閱讀
    華為宣布<b class='flag-5'>HarmonyOS</b> NEXT<b class='flag-5'>鴻蒙</b>星河版<b class='flag-5'>開發(fā)</b>者預(yù)覽面向<b class='flag-5'>開發(fā)</b>者開放申請

    淘寶與華為合作將基于HarmonyOS NEXT啟動鴻蒙原生應(yīng)用開發(fā)

    1月25日,淘寶與華為舉辦鴻蒙合作簽約儀式,宣布將基于HarmonyOS NEXT啟動鴻蒙原生應(yīng)用開發(fā)。
    的頭像 發(fā)表于 01-26 16:14 ?882次閱讀

    今日看點(diǎn)丨華為 HarmonyOS NEXT 鴻蒙星河版第四季度商用;博世計劃2026年底前裁員1200人

    開發(fā)者預(yù)覽版 Beta 招募,當(dāng)前支持華為 Mate 60、Mate 60 Pro、Mate X5 機(jī)型報名。HarmonyOS NEXT 開發(fā)者預(yù)覽版將不再兼容安卓開源應(yīng)用,僅支持
    發(fā)表于 01-19 10:47 ?1125次閱讀

    HarmonyOS SDK,助力開發(fā)者打造煥然一新的鴻蒙原生應(yīng)用

    鴻蒙星河版重磅發(fā)布,帶來了全新架構(gòu)、全新體驗(yàn)、全新生態(tài)。作為支撐鴻蒙原生應(yīng)用開發(fā)的技術(shù)源動力,HarmonyOS SDK 將系統(tǒng)級能力全面對外開放,覆蓋了應(yīng)用框架、應(yīng)用服務(wù)、系統(tǒng)、媒
    發(fā)表于 01-19 10:31

    免費(fèi)學(xué)習(xí)鴻蒙HarmonyOS開發(fā),一些地址分享

    國內(nèi)一流高校。通過鴻蒙班的設(shè)立,高??梢詾閷W(xué)生提供專業(yè)的鴻蒙OS學(xué)習(xí)環(huán)境和豐富的實(shí)踐機(jī)會,培養(yǎng)出更多的鴻蒙開發(fā)人才,為鴻蒙OS系統(tǒng)的生態(tài)建設(shè)
    發(fā)表于 01-12 20:48

    HarmonyOS鴻蒙原生應(yīng)用開發(fā)設(shè)計- 流轉(zhuǎn)圖標(biāo)

    HarmonyOS設(shè)計文檔中,為大家提供了獨(dú)特的流轉(zhuǎn)圖標(biāo),開發(fā)者可以根據(jù)需要直接引用。 開發(fā)者直接使用官方提供的流轉(zhuǎn)圖標(biāo)內(nèi)容,既可以符合HarmonyOS原生應(yīng)用的
    發(fā)表于 10-26 10:25

    HarmonyOS鴻蒙原生應(yīng)用開發(fā)設(shè)計- 華為分享圖標(biāo)

    HarmonyOS設(shè)計文檔中,為大家提供了獨(dú)特的華為分享圖標(biāo),開發(fā)者可以根據(jù)需要直接引用。 開發(fā)者直接使用官方提供的華為分享圖標(biāo)內(nèi)容,既可以符合HarmonyOS原生應(yīng)用的
    發(fā)表于 10-25 14:28

    HarmonyOS鴻蒙原生應(yīng)用開發(fā)設(shè)計- HarmonyOS Sans 字體

    HarmonyOS設(shè)計文檔中,為大家提供了獨(dú)特的字體,開發(fā)者可以根據(jù)需要直接引用。 開發(fā)者直接使用官方提供的字體內(nèi)容,既可以符合HarmonyOS原生應(yīng)用的
    發(fā)表于 10-23 16:12

    HarmonyOS資料下載專題

    HarmonyOS資料下載專題:從鴻蒙出世到現(xiàn)在,對于鴻蒙資料查詢下載,大家是否有點(diǎn)迷茫-不知去何處查找。為此,本專題匯集了HarmonyOS從入門到精通的各種
    發(fā)表于 10-08 14:23
    <b class='flag-5'>HarmonyOS</b>資料下載專題