Please help me for similar classes for 1. AppBarLayout, 2.Interpolator(with setInterpolator method), 3. BitmapFactory.decodeResource(res, id), 4. SpannableString, 5. ReplacementSpan in HarmonyOS.
Asked
Active
Viewed 124 times
1
-
I am also searching for `BitmapFactory.decodeResource(res, id)` nothing found so far..Bitmap = PixelMap btw.. – android_dev May 06 '21 at 10:58
2 Answers
0
- For Interpolator/setInterpolator try using Animator/AnimatorProperty setCurveType(curveType)
By default it is a linear interpolator but you can set other types as well. Please check -
- For BitmapFactory.decodeResource(res, id) : you can use ImageSource and createPixelmap. Something like-

Zinna
- 1,947
- 2
- 5
- 20
0
In addition to the BitMapFactory.decodeResource
and ImageSource.createPixelmap
method classes, No other class can find a similar type in Harmony OS by now.
For details about image decoding, see the following website development guide: https://developer.harmonyos.com/en/docs/documentation/doc-guides/media-image-decoding-0000000000031770?ha_source=hms1

zhangxaochen
- 32,744
- 15
- 77
- 108
-
What is the alternative for the `Handler.postDelayed()` method? @shirley – android_dev May 07 '21 at 10:22
-
1