use 1 as default gradient end position on Android
This commit is contained in:
parent
0fd376a004
commit
b63f00ab0b
|
@ -65,7 +65,7 @@ public class LinearGradientView extends View {
|
|||
mEndPos= new float[]{(float) endPos.getDouble(0), (float) endPos.getDouble(1)};
|
||||
} catch (Exception e) {
|
||||
//default to full height.
|
||||
mEndPos = new float[]{0, getMeasuredHeight()};
|
||||
mEndPos = new float[]{0, 1};
|
||||
}
|
||||
mSize = new int[]{0, 0};
|
||||
drawGradient();
|
||||
|
|
Loading…
Reference in New Issue