Skip to content

Commit

Permalink
Merge pull request #9 from Dennis123789/master
Browse files Browse the repository at this point in the history
Workaround for view not being drawn Lollipop and higher
  • Loading branch information
tajchert committed Apr 21, 2016
2 parents e12f86b + b2b78e8 commit 0b844c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/src/main/java/pl/tajchert/sample/DotsTextView.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ private void init(Context context, AttributeSet attrs) {
dotTwo = new JumpingSpan();
dotThree = new JumpingSpan();

SpannableString spannable = new SpannableString("...");
SpannableString spannable = new SpannableString("...\u200B");
spannable.setSpan(dotOne, 0, 1, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
spannable.setSpan(dotTwo, 1, 2, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
spannable.setSpan(dotThree, 2, 3, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
Expand All @@ -89,7 +89,7 @@ public void onAnimationUpdate(ValueAnimator valueAnimator) {
period / 6), createDotJumpAnimator(dotThree, period * 2 / 6));

isPlaying = autoPlay;
if(autoPlay) {
if (autoPlay && !isInEditMode()) {
start();
}
}
Expand Down

0 comments on commit 0b844c1

Please sign in to comment.