You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.
When I run the application on API 28 everything works fine
When I run the application on API 16 (Android 4.1) or 19 (Android 4.4), the application crashes
Error Binary XML file line #94: Error inflating class com.richpath.RichPathView
Could you help please
A lot of thanks!
The text was updated successfully, but these errors were encountered:
And for vector support for less then API 21, add the following to onCreate AppCompatDelegate.setCompatVectorFromResourcesEnabled(true);
It works, but the animation doesn't work as it should. I need the lines to be drawn one by one (I show how to draw the Japanese alphabet). Now the first line is being drawn and the rest lines just appear (no drawing)
Here is the animation code (for API 28 works as expected)
private void svgDrawLines() {
long delay = 500;
long speed = 1000;
String kanaPrefix = alphabetType == AlphabetModel.AlphabetType.hiragana ? "h" : "k";
svgView.setVectorDrawable(getResources().getIdentifier(kanaPrefix + "_" + AbcModel.latinRows.get(rowNumber).get(selectedItem), "drawable",
MyApplication.context.getPackageName()));
RichPath[] svgPath = svgView.findAllRichPaths();
for (RichPath path: svgPath) {
path.setStrokeColor(getResources().getColor(android.R.color.transparent));
// TODO: только первый раз работает изменение толщины линий, а последующие нет
// path.setWidth(5);
RichPathAnimator.animate(path)
.trimPathEnd(0,1)
.startDelay(delay)
.duration(speed)
.strokeColor(getResources().getColor(R.color.colorSilver))
.start();
delay = delay + speed;
}
}
My Gradle
...
implementation 'com.github.tarek360.RichPath:animator:0.1.1'
When I run the application on API 28 everything works fine
When I run the application on API 16 (Android 4.1) or 19 (Android 4.4), the application crashes
Error
Binary XML file line #94: Error inflating class com.richpath.RichPathView
Could you help please
A lot of thanks!
The text was updated successfully, but these errors were encountered: