Add drop shadows and roundier corners to new bubbles.

// FREEBIE
This commit is contained in:
Jake McGinty
2015-06-29 14:38:52 -07:00
committed by Moxie Marlinspike
parent db9656c70c
commit 99c9c73c9d
13 changed files with 14 additions and 27 deletions

View File

@@ -191,7 +191,7 @@ public class ConversationItem extends LinearLayout {
int[] attributes = new int[]{R.attr.conversation_item_bubble_background};
TypedArray colors = context.obtainStyledAttributes(attributes);
bodyBubble.getBackground().setColorFilter(colors.getColor(0, 0xFFFFFF), PorterDuff.Mode.SRC_ATOP);
bodyBubble.getBackground().setColorFilter(colors.getColor(0, 0xFFFFFFFF), PorterDuff.Mode.MULTIPLY);
colors.recycle();
}

View File

@@ -99,13 +99,6 @@ public class ThumbnailView extends RoundedImageView {
if (isContextValid()) Glide.clear(this);
}
@Override
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
View dv = ((Activity) this.getContext()).getWindow().getDecorView();
int size = Math.min(dv.getWidth(), dv.getHeight()) * 55 / 100;
setMeasuredDimension(size, size);
}
@TargetApi(VERSION_CODES.JELLY_BEAN_MR1)
private boolean isContextValid() {
return !(getContext() instanceof Activity) ||