In Android for Matrix few enums are predefined such as MSCALE_X, MSCALE_Y, MTRANS_X, MTRANS_Y, MSCEW_X, MSCEW_Y. Do we have any such alternatives in Harmony OS?
Asked
Active
Viewed 38 times
0

zhangxaochen
- 32,744
- 15
- 77
- 108
-
Is HarmonyOS just a rename of constants, enumerations, and functions? – AIMIN PAN Jul 30 '21 at 09:13
1 Answers
0
As Harmony OS rewrites some functionalities/API's in a completely new way from Scratch, you may not have exact API's available in Android. For those functionalities , try extending Harmony API's and write custom behavior of required API.
For your Case extend ohos.agp.utils.Matrix API substitute those predefined Enum's.

Gowtham GS
- 478
- 2
- 5