Merge "Fix b/242252080: Add padding space on the top of the battery chart"
This commit is contained in:
committed by
Android (Google) Code Review
commit
aef0cde406
@@ -529,7 +529,8 @@ public class BatteryChartView extends AppCompatImageView implements View.OnClick
|
|||||||
final float trapezoidBottom =
|
final float trapezoidBottom =
|
||||||
getHeight() - mIndent.bottom - mDividerHeight - mDividerWidth
|
getHeight() - mIndent.bottom - mDividerHeight - mDividerWidth
|
||||||
- mTrapezoidVOffset;
|
- mTrapezoidVOffset;
|
||||||
final float availableSpace = trapezoidBottom - mDividerWidth * .5f - mIndent.top;
|
final float availableSpace =
|
||||||
|
trapezoidBottom - mDividerWidth * .5f - mIndent.top - mTrapezoidVOffset;
|
||||||
final float unitHeight = availableSpace / 100f;
|
final float unitHeight = availableSpace / 100f;
|
||||||
// Draws all trapezoid shapes into the canvas.
|
// Draws all trapezoid shapes into the canvas.
|
||||||
final Path trapezoidPath = new Path();
|
final Path trapezoidPath = new Path();
|
||||||
|
Reference in New Issue
Block a user