Update icons
Before Width: | Height: | Size: 493 B After Width: | Height: | Size: 342 B |
Before Width: | Height: | Size: 515 B After Width: | Height: | Size: 355 B |
Before Width: | Height: | Size: 303 B After Width: | Height: | Size: 310 B |
Before Width: | Height: | Size: 567 B After Width: | Height: | Size: 393 B |
Before Width: | Height: | Size: 588 B After Width: | Height: | Size: 407 B |
Before Width: | Height: | Size: 454 B After Width: | Height: | Size: 459 B |
Before Width: | Height: | Size: 363 B After Width: | Height: | Size: 370 B |
Before Width: | Height: | Size: 588 B After Width: | Height: | Size: 408 B |
Before Width: | Height: | Size: 465 B After Width: | Height: | Size: 468 B |
Before Width: | Height: | Size: 344 B After Width: | Height: | Size: 350 B |
Before Width: | Height: | Size: 633 B After Width: | Height: | Size: 439 B |
Before Width: | Height: | Size: 515 B After Width: | Height: | Size: 517 B |
Before Width: | Height: | Size: 334 B After Width: | Height: | Size: 340 B |
Before Width: | Height: | Size: 341 B After Width: | Height: | Size: 351 B |
Before Width: | Height: | Size: 340 B After Width: | Height: | Size: 347 B |
Before Width: | Height: | Size: 443 B After Width: | Height: | Size: 340 B |
|
@ -198,7 +198,8 @@ public class StackWidgetView extends ViewGroup {
|
||||||
setMeasuredDimension(w, h);
|
setMeasuredDimension(w, h);
|
||||||
}
|
}
|
||||||
|
|
||||||
private final static int MAGIC_CONSTANT_STACK = 3;
|
// magic constant (should be removed when image will be recropped)
|
||||||
|
private final static int MAGIC_CONSTANT_STACK = 8;
|
||||||
private int shadowColor;
|
private int shadowColor;
|
||||||
@Override
|
@Override
|
||||||
protected void onLayout(boolean changed, int left, int top, int right, int bottom) {
|
protected void onLayout(boolean changed, int left, int top, int right, int bottom) {
|
||||||
|
@ -208,10 +209,8 @@ public class StackWidgetView extends ViewGroup {
|
||||||
if (c.getVisibility() != View.GONE) {
|
if (c.getVisibility() != View.GONE) {
|
||||||
if (y == 0) {
|
if (y == 0) {
|
||||||
y += c.getPaddingTop();
|
y += c.getPaddingTop();
|
||||||
} else {
|
|
||||||
// magic constant (should be removed when image will be recropped)
|
|
||||||
y -= MAGIC_CONSTANT_STACK;
|
|
||||||
}
|
}
|
||||||
|
y -= MAGIC_CONSTANT_STACK;
|
||||||
c.layout(0, y, cw, y + c.getMeasuredHeight());
|
c.layout(0, y, cw, y + c.getMeasuredHeight());
|
||||||
y += c.getMeasuredHeight();
|
y += c.getMeasuredHeight();
|
||||||
y -= c.getPaddingBottom();
|
y -= c.getPaddingBottom();
|
||||||
|
@ -223,10 +222,8 @@ public class StackWidgetView extends ViewGroup {
|
||||||
if (c.getVisibility() != View.GONE) {
|
if (c.getVisibility() != View.GONE) {
|
||||||
if (y == 0) {
|
if (y == 0) {
|
||||||
y += c.getPaddingTop();
|
y += c.getPaddingTop();
|
||||||
} else {
|
|
||||||
// magic constant (should be removed when image will be recropped)
|
|
||||||
y -= MAGIC_CONSTANT_STACK;
|
|
||||||
}
|
}
|
||||||
|
y -= MAGIC_CONSTANT_STACK;
|
||||||
c.layout(0, y, cw, y + c.getMeasuredHeight());
|
c.layout(0, y, cw, y + c.getMeasuredHeight());
|
||||||
y += c.getMeasuredHeight();
|
y += c.getMeasuredHeight();
|
||||||
y -= c.getPaddingBottom();
|
y -= c.getPaddingBottom();
|
||||||
|
@ -240,6 +237,7 @@ public class StackWidgetView extends ViewGroup {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isCollapsible) {
|
if (isCollapsible) {
|
||||||
|
y -= MAGIC_CONSTANT_STACK;
|
||||||
expandView.setVisibility(VISIBLE);
|
expandView.setVisibility(VISIBLE);
|
||||||
int w = expandView.getDrawable().getMinimumWidth();
|
int w = expandView.getDrawable().getMinimumWidth();
|
||||||
int h = expandView.getDrawable().getMinimumHeight();
|
int h = expandView.getDrawable().getMinimumHeight();
|
||||||
|
|