harjot-oberai / harjot-oberai/VectorMaster

API 16 not visible VectorMasterView, VectorMasterDrawable

Open
#10 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
1.6k
Forks
165
PR merge metrics
No merged PRs in 30d

Description

hello.
your VectorMaster is very good.
but It is not visible in API 16.

first of all, Successfully registered VectorMasterView on XML.
Then, animation was made in Java source using PathModel.

However, when the app was running, no images were visible.

So i registered ImageView to the XML and did setImageDrawable to ImageView as VectorMasterDrawable from java source.

but not visible too.

Let me show you my XML and Java source parts.

[xml]

```

```
[java]

```
headerMenuView = (ImageView) activity.findViewById(R.id.header_menu);
headerMenuVMView = new VectorMasterDrawable(mContext, R.drawable.ic_menu);
headerMenuView.setImageDrawable(headerMenuVMView);

VectorMasterDrawable menuView = headerMenuVMView;
final GroupModel menuGroupModel = menuView.getGroupModelByName("menu_group");
final PathModel menuPathModel1 = menuView.getPathModelByName("menu1");

menuGroupModel.setRotation(MathUtil.lerp(0, (float) 360, offset));
menuPathModel1.setTrimPathEnd(1 - offset);
```

why not show image?

------------

You can check VectorMaster Demos when operating the API 16.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the XML and Java setup with VectorMasterView and VectorMasterDrawable on API 16, then compare it with the VectorMaster Demos mentioned in the report. Trace why the drawable or animated PathModel is not rendered on that API level; done means the vector image is visible and the relevant demo behavior works on API 16.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.