Use fallback linespacing in ChartSweepView and ChartGridView

Bug: 28963299
Test: none
Change-Id: I249a3795fcbfbef14eac11b72220bb92f9690de6
This commit is contained in:
Roozbeh Pournader
2017-08-22 16:54:27 -07:00
parent 897f396b16
commit a7f6bb54c8
2 changed files with 9 additions and 5 deletions

View File

@@ -265,8 +265,11 @@ public class ChartSweepView extends View {
paint.setColor(mLabelColor);
mLabelTemplate = new SpannableStringBuilder(template);
mLabelLayout = new DynamicLayout(
mLabelTemplate, paint, LARGE_WIDTH, Alignment.ALIGN_RIGHT, 1f, 0f, false);
mLabelLayout = DynamicLayout.Builder.obtain(mLabelTemplate, paint, LARGE_WIDTH)
.setAlignment(Alignment.ALIGN_RIGHT)
.setIncludePad(false)
.setUseLineSpacingFromFallbacks(true)
.build();
invalidateLabel();
} else {