Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for managing number replays & removing childViews #3

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

kaweesi
Copy link

@kaweesi kaweesi commented Mar 14, 2021

No description provided.

@kaweesi kaweesi changed the title Added support for managing number of replays of cycles before stopping Added support for managing number replays & removing childViews Mar 14, 2021
@@ -76,6 +76,12 @@ for (int index = 0; index < 50; index++) {
tickerView.addChildView(tv);
}

// Call setReplays(replays) to set numper of times to loop/scroll entire messages

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

numper -> number

Comment on lines +40 to +41
private Integer replays;
private Integer loop = 1;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use primitive type for better memory usage?

Suggested change
private Integer replays;
private Integer loop = 1;
private int replays;
private int loop = 1;

Comment on lines +149 to +151
/**
*
*/

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove empty comment


private Integer replays;
private Integer loop = 1;
private boolean replaysCompleted = false;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can remove explicit assignment to false since it's already the default value

Suggested change
private boolean replaysCompleted = false;
private boolean replaysCompleted;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants