自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

鴻蒙小游戲-數(shù)字華容道自定義組件的踩坑記錄

開發(fā)
前兩天看到HarmonyOS開發(fā)者官網(wǎng)上發(fā)布的一個挑戰(zhàn)HarmonyOS分布式趣味應(yīng)用的帖子,然后有個想法想搞一個小游戲出來,結(jié)果三天的時間都卡在了自定義組件上。

[[430553]]

想了解更多內(nèi)容,請訪問:

51CTO和華為官方合作共建的鴻蒙技術(shù)社區(qū)

https://harmonyos.51cto.com

前兩天看到HarmonyOS開發(fā)者官網(wǎng)上發(fā)布的一個挑戰(zhàn)HarmonyOS分布式趣味應(yīng)用的帖子,然后有個想法想搞一個小游戲出來,結(jié)果三天的時間都卡在了自定義組件上,使用了各種方式方法去實現(xiàn)功能,但是還是沒有達到預(yù)期的效果,暫時先做個小總結(jié),其實坑有的時候真的很深…

一、效果演示

小應(yīng)用其實也挺簡單,以前也見到過,叫做數(shù)字華容道,當(dāng)你把所在的數(shù)字以順序放置完成后游戲結(jié)束。

其實屬于益智類的小游戲了;

最終實現(xiàn)效果:

鴻蒙小游戲-數(shù)字華容道  自定義組件的踩坑記錄-鴻蒙HarmonyOS技術(shù)社區(qū)

當(dāng)前實現(xiàn)效果:

鴻蒙小游戲-數(shù)字華容道  自定義組件的踩坑記錄-鴻蒙HarmonyOS技術(shù)社區(qū)

二、實現(xiàn)過程

暫時說一下現(xiàn)在的進度,每一個方塊可以表示一個棋子,棋子的名稱也就是3*3的九宮格,1-9的數(shù)字,只是最后一個數(shù)字單獨設(shè)置為空白。點擊空白周圍的棋子可以與這個空白棋子做一次位置調(diào)換,直到將所有棋子順序排列完成為止。

這里先說一個這個棋子,棋子有兩個東西需要被記住,一個是棋子的坐標(biāo)就是在九宮格里面的位置,另一個就是棋子的名稱;所以選擇使用自定義組件的方式將坐標(biāo)和名稱進行一個綁定。

Position.java

  1. /** 
  2.  * 定義棋子的位置 
  3.  */ 
  4. public class Position { 
  5.     public int sizeX; // 總列數(shù) 
  6.     public int sizeY; // 總行數(shù) 
  7.     public int x; // 橫坐標(biāo) 
  8.     public int y; // 縱坐標(biāo) 
  9.  
  10.     public Position() { 
  11.     } 
  12.  
  13.     public Position(int sizeX, int sizeY) { 
  14.         this.sizeX = sizeX; 
  15.         this.sizeY = sizeY; 
  16.     } 
  17.  
  18.     public Position(int sizeX, int sizeY, int x, int y) { 
  19.         this.sizeX = sizeX; 
  20.         this.sizeY = sizeY; 
  21.         this.x = x; 
  22.         this.y = y; 
  23.     } 
  24.  
  25.     public Position(Position orig) { 
  26.         this(orig.sizeX, orig.sizeY, orig.x, orig.y); 
  27.     } 
  28.  
  29.     /** 
  30.      * 移動到下一個位置 
  31.      */ 
  32.     public boolean moveToNextPosition() { 
  33.         if (x < sizeX - 1) { 
  34.             x++; 
  35.         } else if (y < sizeY - 1) { 
  36.             x = 0; 
  37.             y++; 
  38.         } else { 
  39.             return false
  40.         } 
  41.         return true
  42.     } 
  43.  
  44.     @Override 
  45.     public String toString() { 
  46.         return "Position{" + 
  47.                 "x=" + x + 
  48.                 ", y=" + y + 
  49.                 '}'
  50.     } 

CubeView.java

  1. public class CubeView extends ComponentContainer { 
  2.  
  3.     private Position mPosition; 
  4.     private int mNumber; 
  5.  
  6.     private Text mTextCub; 
  7.     private int mTextSize = 20; 
  8.  
  9.     public CubeView(Context context) { 
  10.         super(context); 
  11.         init(); 
  12.     } 
  13.  
  14.     public CubeView(Context context, AttrSet attrSet) { 
  15.         super(context, attrSet); 
  16.         init(); 
  17.     } 
  18.  
  19.     private void init(){ 
  20.         Component component = LayoutScatter.getInstance(getContext()).parse(ResourceTable.Layout_cube_view_item, this, false); 
  21.         mTextCub = (Text) component.findComponentById(ResourceTable.Id_tv_item); 
  22.         mTextCub.setTextSize(mTextSize, Text.TextSizeType.VP); 
  23.     } 
  24.  
  25.     public void setNumber(int n) { 
  26.         mNumber = n; 
  27.         mTextCub.setText(String.valueOf(n)); 
  28.     } 
  29.  
  30.  
  31.     public int getNumber() { 
  32.         return mNumber; 
  33.     } 
  34.  
  35.     public Position getPosition() { 
  36.         return mPosition; 
  37.     } 
  38.  
  39.     public void setPosition(Position position) { 
  40.         this.mPosition = position; 
  41.     } 
  42.  
  43.     @Override 
  44.     public String toString() { 
  45.         return "CubeView{" + 
  46.                 "mPosition=" + mPosition + 
  47.                 ", mNumber=" + mNumber + 
  48.                 '}'
  49.     } 

 cube_view_item.xml

  1. <?xml version="1.0" encoding="utf-8"?> 
  2. <DirectionalLayout 
  3.     xmlns:ohos="http://schemas.huawei.com/res/ohos" 
  4.     ohos:height="match_content" 
  5.     ohos:width="match_content"
  6.     <Text 
  7.         ohos:id="$+id:tv_item" 
  8.         ohos:height="100vp" 
  9.         ohos:width="100vp" 
  10.         ohos:background_element="$graphic:cube_view_bg" 
  11.         ohos:text="1" 
  12.         ohos:text_alignment="center" 
  13.         ohos:text_color="$color:cubeViewStroke" 
  14.         ohos:text_size="20vp"
  15.         ></Text> 
  16. </DirectionalLayout> 

到這問題就來了,因為在代碼中只是使用到了setText()方法,那么有人會問我為什么不直接繼承Text組件,多寫一個布局有點麻煩了不是?

第一個坑

這里就是第一個坑了,因為在以前寫Android自定義控件的時候,對于簡單的組件來說直接繼承它的組件名稱就可以了,不用去繼承公共類然后再去使用布局去定位到里面的組件。原本我也是這么寫的,CubeView直接繼承Text沒有毛病可以使用,可以看到兩者間并無差別。

  1. public class CubeView extends Text { 
  2.  
  3.     private Position mPosition; 
  4.     private int mNumber; 
  5.  
  6.  
  7.     public CubeView(Context context) { 
  8.         super(context); 
  9.         init(); 
  10.     } 
  11.  
  12.     public CubeView(Context context, AttrSet attrSet) { 
  13.         super(context, attrSet); 
  14.         init(); 
  15.     } 
  16.  
  17.     private void init(){ 
  18.          
  19.     } 
  20.  
  21.     public void setNumber(int n) { 
  22.         mNumber = n; 
  23.         setText(String.valueOf(n)); 
  24.     } 
  25.  
  26.  
  27.     public int getNumber() { 
  28.         return mNumber; 
  29.     } 
  30.  
  31.     public Position getPosition() { 
  32.         return mPosition; 
  33.     } 
  34.  
  35.     public void setPosition(Position position) { 
  36.         this.mPosition = position; 
  37.     } 
  38.  
  39.     @Override 
  40.     public String toString() { 
  41.         return "CubeView{" + 
  42.                 "mPosition=" + mPosition + 
  43.                 ", mNumber=" + mNumber + 
  44.                 '}'
  45.     } 

但是在調(diào)用組件的時候出現(xiàn)了問題,因為我需要把這個棋子的組件添加到我的棋盤布局中,那么就需要先引入這個組件。引入組件后出問題了,布局報錯(在原來Android引入自定義組件的時候,單個組件也是可以直接引入的);報錯原因是,我最外層沒有放置布局導(dǎo)致不能直接識別單個組件,但是如果我加上一個布局的話,文件不會報錯,但是在我的棋盤上不能拿到這個棋子的組件;

鴻蒙小游戲-數(shù)字華容道  自定義組件的踩坑記錄-鴻蒙HarmonyOS技術(shù)社區(qū)

為此我只能將棋子的自定義組件寫成了布局引入方式。

到這里,棋子的開發(fā)工作也就基本做完了,下面要對棋盤進行布局。還是選擇自定義組件的方式;

cube_view.xml

  1. <?xml version="1.0" encoding="utf-8"?> 
  2. <com.example.codelabs_games_hrd.CubeView 
  3.     xmlns:ohos="http://schemas.huawei.com/res/ohos" 
  4.     ohos:background_element="$graphic:cube_view_bg" 
  5.     ohos:height="100vp" 
  6.     ohos:width="100vp" 
  7.     ohos:id="$+id:title_bar_left" 
  8.     ohos:text="1" 
  9.     ohos:text_alignment="center" 
  10.     ohos:text_color="$color:cubeViewStroke" 
  11.     ohos:text_size="20vp" 
  12.  
  13.     > 
  14. </com.example.codelabs_games_hrd.CubeView> 

 ability_game.xml

  1. <?xml version="1.0" encoding="utf-8"?> 
  2. <StackLayout 
  3.     xmlns:ohos="http://schemas.huawei.com/res/ohos" 
  4.     ohos:height="match_parent" 
  5.     ohos:width="match_parent" 
  6.     ohos:background_element="$color:cubeViewBg"
  7.  
  8.     <com.example.codelabs_games_hrd.BoardView 
  9.         ohos:id="$+id:board" 
  10.         ohos:height="300vp" 
  11.         ohos:width="300vp" 
  12.         ohos:layout_alignment="center" 
  13.         ohos:background_element="$color:boardViewBg"
  14.     </com.example.codelabs_games_hrd.BoardView> 
  15.  
  16.     <Text 
  17.         ohos:id="$+id:tvCheat" 
  18.         ohos:height="10vp" 
  19.         ohos:width="10vp"></Text> 
  20.  
  21.     <Text 
  22.         ohos:id="$+id:mask" 
  23.         ohos:height="match_parent" 
  24.         ohos:width="match_parent" 
  25.         ohos:background_element="$color:cubeViewBg" 
  26.         ohos:text="123456789" 
  27.         ohos:text_size="48vp"></Text> 
  28.  
  29. </StackLayout> 

BoardView.java

  1. public class BoardView extends ComponentContainer implements ComponentContainer.EstimateSizeListener, ComponentContainer.ArrangeListener { 
  2.     private static final String TAG = "BoardView"
  3.     /** 
  4.      * 每一行有多少個棋子 
  5.      */ 
  6.     private int mSizeX = 3; 
  7.     /** 
  8.      * 有多少行棋子 
  9.      */ 
  10.     private int mSizeY = 3; 
  11.  
  12.  
  13.     private int maxWidth = 0; 
  14.  
  15.     private int maxHeight = 0; 
  16.  
  17.     private int mChildSize; 
  18.  
  19.     private Position mBlankPos; 
  20.     private CubeView[] mChildren; 
  21.  
  22.     private OnFinishListener mFinishListener; 
  23.  
  24.     private int xx = 0; 
  25.  
  26.     private int yy = 0; 
  27.  
  28.     private int lastHeight = 0; 
  29.  
  30.     // 子組件索引與其布局?jǐn)?shù)據(jù)的集合 
  31.     private final Map<Integer, Layout> axis = new HashMap<>(); 
  32.  
  33.     //位置及大小 
  34.     private static class Layout { 
  35.         int positionX = 0; 
  36.         int positionY = 0; 
  37.         int width = 0; 
  38.         int height = 0; 
  39.     } 
  40.  
  41.  
  42.     private void invalidateValues() { 
  43.         xx = 0; 
  44.         yy = 0; 
  45.         maxWidth = 0; 
  46.         maxHeight = 0; 
  47.         axis.clear(); 
  48.     } 
  49.  
  50.     public BoardView(Context context) { 
  51.         super(context); 
  52.     } 
  53.  
  54.     public BoardView(Context context, AttrSet attrs) { 
  55.         super(context, attrs); 
  56.         setEstimateSizeListener(this); 
  57.         setArrangeListener(this); 
  58.         init(); 
  59.     } 
  60.  
  61.     private void init() { 
  62.         mChildSize = mSizeX * mSizeY - 1; 
  63.         mChildren = new CubeView[mChildSize]; 
  64.         Position p = new Position(mSizeX, mSizeY); 
  65.         for (int i = 0; i < mChildSize; i++) { 
  66.         //添加棋子 
  67.             CubeView view = (CubeView) LayoutScatter.getInstance(getContext()).parse(ResourceTable.Layout_cube_view, this, false); 
  68.             view.setPosition(new Position(p)); 
  69.             view.setClickedListener(component -> moveChildToBlank(view)); 
  70.             addComponent(view); 
  71.             p.moveToNextPosition(); 
  72.             mChildren[i] = view
  73.         } 
  74.         //最后一個空白棋子 
  75.         mBlankPos = new Position(mSizeX, mSizeY, mSizeX - 1, mSizeY - 1); 
  76.     } 
  77.  
  78.  
  79.  
  80.     public void setData(List<Integer> data) { 
  81.         for (int i = 0; i < mChildSize; i++) { 
  82.             CubeView view = (CubeView) getComponentAt(i); 
  83.             view.setNumber(data.get(i)); 
  84.         } 
  85.     } 
  86.  
  87.     //測量監(jiān)聽方法 
  88.     @Override 
  89.     public boolean onEstimateSize(int widthEstimatedConfig, int heightEstimatedConfig) { 
  90.         invalidateValues(); 
  91.         //測量子組件的大小 
  92.         measureChildren( widthEstimatedConfig,  heightEstimatedConfig); 
  93.        //關(guān)聯(lián)子組件的索引與其布局?jǐn)?shù)據(jù) 
  94.         for (int idx = 0; idx < getChildCount(); idx++) { 
  95.             CubeView childView = (CubeView) getComponentAt(idx); 
  96.             addChild(childView, idx, EstimateSpec.getSize(widthEstimatedConfig)); 
  97.         } 
  98.         //測量本身大小 
  99.         setEstimatedSize( widthEstimatedConfig,  heightEstimatedConfig); 
  100.  
  101.  
  102.         return true
  103.     } 
  104.  
  105.     private void measureChildren(int widthEstimatedConfig, int heightEstimatedConfig) { 
  106.         for (int idx = 0; idx < getChildCount(); idx++) { 
  107.             CubeView childView = (CubeView) getComponentAt(idx); 
  108.             if (childView != null) { 
  109.                 LayoutConfig lc = childView.getLayoutConfig(); 
  110.                 int childWidthMeasureSpec; 
  111.                 int childHeightMeasureSpec; 
  112.                 if (lc.width == LayoutConfig.MATCH_CONTENT) { 
  113.                     childWidthMeasureSpec = EstimateSpec.getSizeWithMode(lc.width, EstimateSpec.NOT_EXCEED); 
  114.                 } else if (lc.width == LayoutConfig.MATCH_PARENT) { 
  115.                     int parentWidth = EstimateSpec.getSize(widthEstimatedConfig); 
  116.                     int childWidth = parentWidth - childView.getMarginLeft() - childView.getMarginRight(); 
  117.                     childWidthMeasureSpec = EstimateSpec.getSizeWithMode(childWidth, EstimateSpec.PRECISE); 
  118.                 } else { 
  119.                     childWidthMeasureSpec = EstimateSpec.getSizeWithMode(lc.width, EstimateSpec.PRECISE); 
  120.                 } 
  121.  
  122.                 if (lc.height == LayoutConfig.MATCH_CONTENT) { 
  123.                     childHeightMeasureSpec = EstimateSpec.getSizeWithMode(lc.height, EstimateSpec.NOT_EXCEED); 
  124.                 } else if (lc.height == LayoutConfig.MATCH_PARENT) { 
  125.                     int parentHeight = EstimateSpec.getSize(heightEstimatedConfig); 
  126.                     int childHeight = parentHeight - childView.getMarginTop() - childView.getMarginBottom(); 
  127.                     childHeightMeasureSpec = EstimateSpec.getSizeWithMode(childHeight, EstimateSpec.PRECISE); 
  128.                 } else { 
  129.                     childHeightMeasureSpec = EstimateSpec.getSizeWithMode(lc.height, EstimateSpec.PRECISE); 
  130.                 } 
  131.                 childView.estimateSize(childWidthMeasureSpec, childHeightMeasureSpec); 
  132.             } 
  133.         } 
  134.     } 
  135.  
  136.  
  137.     private void measureSelf(int widthEstimatedConfig, int heightEstimatedConfig) { 
  138.         int widthSpce = EstimateSpec.getMode(widthEstimatedConfig); 
  139.         int heightSpce = EstimateSpec.getMode(heightEstimatedConfig); 
  140.         int widthConfig = 0; 
  141.         switch (widthSpce) { 
  142.             case EstimateSpec.UNCONSTRAINT: 
  143.             case EstimateSpec.PRECISE: 
  144.                 int width = EstimateSpec.getSize(widthEstimatedConfig); 
  145.                 widthConfig = EstimateSpec.getSizeWithMode(width, EstimateSpec.PRECISE); 
  146.                 break; 
  147.             case EstimateSpec.NOT_EXCEED: 
  148.                 widthConfig = EstimateSpec.getSizeWithMode(maxWidth, EstimateSpec.PRECISE); 
  149.                 break; 
  150.             default
  151.                 break; 
  152.         } 
  153.  
  154.         int heightConfig = 0; 
  155.         switch (heightSpce) { 
  156.             case EstimateSpec.UNCONSTRAINT: 
  157.             case EstimateSpec.PRECISE: 
  158.                 int height = EstimateSpec.getSize(heightEstimatedConfig); 
  159.                 heightConfig = EstimateSpec.getSizeWithMode(height, EstimateSpec.PRECISE); 
  160.                 break; 
  161.             case EstimateSpec.NOT_EXCEED: 
  162.                 heightConfig = EstimateSpec.getSizeWithMode(maxHeight, EstimateSpec.PRECISE); 
  163.                 break; 
  164.             default
  165.                 break; 
  166.         } 
  167.         setEstimatedSize(widthConfig, heightConfig); 
  168.     } 
  169.  
  170.  
  171.  
  172.     //每個棋子組件的位置及大小 
  173.     @Override 
  174.     public boolean onArrange(int l, int t, int r, int b) { 
  175.  
  176.         for (int idx = 0; idx < getChildCount(); idx++) { 
  177.             Component childView = getComponentAt(idx); 
  178.             Layout layout = axis.get(idx); 
  179.             if (layout != null) { 
  180.                 childView.arrange(layout.positionX, layout.positionY, layout.width, layout.height); 
  181.             } 
  182.         } 
  183.         return true
  184.     } 
  185.  
  186.  
  187.     private void addChild(CubeView component, int id, int layoutWidth) { 
  188.         Layout layout = new Layout(); 
  189.         layout.positionX = xx + component.getMarginLeft(); 
  190.         layout.positionY = yy + component.getMarginTop(); 
  191.         layout.width = component.getEstimatedWidth(); 
  192.         layout.height = component.getEstimatedHeight(); 
  193.         if ((xx + layout.width) > layoutWidth) { 
  194.             xx = 0; 
  195.             yy += lastHeight; 
  196.             lastHeight = 0; 
  197.             layout.positionX = xx + component.getMarginLeft(); 
  198.             layout.positionY = yy + component.getMarginTop(); 
  199.         } 
  200.         axis.put(id, layout); 
  201.         lastHeight = Math.max(lastHeight, layout.height + component.getMarginBottom()); 
  202.         xx += layout.width + component.getMarginRight(); 
  203.         maxWidth = Math.max(maxWidth, layout.positionX + layout.width + component.getMarginRight()); 
  204.         maxHeight = Math.max(maxHeight, layout.positionY + layout.height + component.getMarginBottom()); 
  205.     } 
  206.      
  207.     //點擊棋子后進行位置切換 
  208.     public void moveChildToBlank(@org.jetbrains.annotations.NotNull CubeView child) { 
  209.         Position childPos = child.getPosition(); 
  210.         Position dstPos = mBlankPos; 
  211.         if (childPos.x == dstPos.x && Math.abs(childPos.y - dstPos.y) == 1 || 
  212.                 childPos.y == dstPos.y && Math.abs(childPos.x - dstPos.x) == 1) { 
  213.             child.setPosition(dstPos); 
  214.             //component中沒有對組件進行物理平移的方法 
  215.             //setTranslationX(),setTranslationY()兩個方法沒有 
  216.             child.setTranslationX(dstPos.x * xx); 
  217.             child.setTranslationY(dstPos.y * yy); 
  218.  
  219.             mBlankPos = childPos; 
  220.             mStepCounter.add(); 
  221.         } 
  222.         checkPosition(); 
  223.     } 
  224.  
  225.     /** 
  226.      * 檢查所有格子位置是否正確 
  227.      */ 
  228.     private void checkPosition() { 
  229.         if (mBlankPos.x != mSizeX - 1 || mBlankPos.y != mSizeY - 1) { 
  230.             return
  231.         } 
  232.  
  233.         for (CubeView child : mChildren) { 
  234.             int num = child.getNumber(); 
  235.             int x = child.getPosition().x; 
  236.             int y = child.getPosition().y; 
  237.             if (y * mSizeX + x + 1 != num) { 
  238.                 return
  239.             } 
  240.         } 
  241.  
  242.         if (mFinishListener != null) { 
  243.             mFinishListener.onFinished(mStepCounter.step); 
  244.         } 
  245.         for (CubeView child : mChildren) { 
  246.             child.setClickable(false); 
  247.         } 
  248.     } 
  249.  
  250.     public void setOnFinishedListener(OnFinishListener l) { 
  251.         mFinishListener = l; 
  252.     } 
  253.  
  254.     public interface OnFinishListener { 
  255.         void onFinished(int step); 
  256.     } 
  257.  
  258.     public int getSizeX() { 
  259.         return mSizeX; 
  260.     } 
  261.  
  262.     public int getSizeY() { 
  263.         return mSizeY; 
  264.     } 
  265.  
  266.     /** 
  267.      * 步數(shù)統(tǒng)計 
  268.      */ 
  269.     class StepCounter { 
  270.         private int step = 0; 
  271.  
  272.         void add() { 
  273.             step++; 
  274.         } 
  275.  
  276.         void clear() { 
  277.             step = 0; 
  278.         } 
  279.     } 
  280.  
  281.     private StepCounter mStepCounter = new StepCounter(); 
  282.  

棋盤的自定義布局也完成了。棋盤的布局稍微復(fù)雜一點,因為需要根據(jù)棋盤的大小計算每一個棋子的大小,還需要對棋子進行綁定,尤其是需要對最后一個棋子做空白處理。

然后點擊棋子進行棋子的平移,平移后與其位置進行互換。

第二個坑

鴻蒙小游戲-數(shù)字華容道  自定義組件的踩坑記錄-鴻蒙HarmonyOS技術(shù)社區(qū)

點擊棋子進行位置平移,因為在API里面沒有找到component公共組件下的平移方法,setTranslationX()/setTranslationY()方法,沒有辦法做到組件的物理位置平移,導(dǎo)致大家看到開頭演示的效果,點擊后與空白位置坐了切換但是重新對其進行物理位置賦值的時候沒有辦法去賦值,這個問題困擾了我兩天。

現(xiàn)在還是沒有解決掉,試著想想是不是可以使用TouchEvent事件一個滑動處理,不做點擊事件做滑動事件。

最終現(xiàn)在項目的結(jié)構(gòu)如下:

總結(jié)

后面還會繼續(xù)去完善,以至于到整個功能可以正常去使用,踩坑還是要踩的,總會有收獲的時候…

想了解更多內(nèi)容,請訪問:

51CTO和華為官方合作共建的鴻蒙技術(shù)社區(qū)

https://harmonyos.51cto.com

 

責(zé)任編輯:jianghua 來源: 鴻蒙社區(qū)
相關(guān)推薦

2021-08-25 09:54:51

鴻蒙HarmonyOS應(yīng)用

2021-11-02 14:55:42

鴻蒙HarmonyOS應(yīng)用

2020-12-11 12:27:35

鴻蒙HarmonyOS

2020-12-22 11:20:36

鴻蒙HarmonyOS游戲

2021-10-09 14:49:50

鴻蒙HarmonyOS應(yīng)用

2022-10-17 14:39:12

自定義彈窗組件鴻蒙

2012-11-04 14:54:24

2013-10-15 09:48:03

C++Lambda函數(shù)式編程

2022-04-24 15:17:56

鴻蒙操作系統(tǒng)

2023-02-20 15:20:43

啟動頁組件鴻蒙

2017-09-25 16:55:35

2021-11-01 10:21:36

鴻蒙HarmonyOS應(yīng)用

2021-12-24 15:46:23

鴻蒙HarmonyOS應(yīng)用

2022-02-16 15:25:31

JS代碼Canvas鴻蒙

2022-10-25 15:12:24

自定義組件鴻蒙

2022-10-26 15:54:46

canvas組件鴻蒙

2021-09-15 10:19:15

鴻蒙HarmonyOS應(yīng)用

2022-06-30 14:02:07

鴻蒙開發(fā)消息彈窗組件

2022-07-15 16:45:35

slider滑塊組件鴻蒙

2022-06-20 15:43:45

switch開關(guān)鴻蒙
點贊
收藏

51CTO技術(shù)棧公眾號