ChadCSong / ChadCSong/ShineButton

In fragment don't work the explosion in the icon

Open
#24 1 comment 0 reactions 0 assignees View on GitHub
help wanted
Dominant language
Kotlin
Stars
4.2k
Forks
540
PR merge metrics
No merged PRs in 30d

Description

Hi,

I'm trying to implement the library. The icon change the color and do the effect of the moviment, but is not working inside a fragment. If I copy the same code in an activity, it is working fine.

Have the library a problem working in a fragment?

Fragment code:
@Override
public void onActivityCreated(Bundle savedInstanceState) {
super.onActivityCreated(savedInstanceState);

shineButton = (ShineButton) getView().findViewById(R.id.po_image0);
shineButton.init((HomeActivity)getActivity());

shineButton.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
}
});

}

XML code:

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.