Update conversation style.

1) No more blue/green for outgoing messages. Just lock or no lock.

2) Use 9-patches instead of shapes for better bubble performance.

3) Use tinting rather than different colored assets.

4) Change outgoing status indicators so that they don't change
   width of the bubble as they update.

5) Switch to using ..., check, double-check for pending, sent,
   delivered rather than using bubble tone to indicate pending.

// FREEBIE
This commit is contained in:
Moxie Marlinspike
2015-06-29 08:49:32 -07:00
parent 296796eb54
commit db9656c70c
49 changed files with 475 additions and 908 deletions

View File

@@ -14,11 +14,14 @@ import android.support.annotation.Nullable;
import android.util.AttributeSet;
import android.util.Log;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewParent;
import com.bumptech.glide.GenericRequestBuilder;
import com.bumptech.glide.Glide;
import com.bumptech.glide.request.RequestListener;
import com.bumptech.glide.request.target.Target;
import com.makeramen.roundedimageview.RoundedImageView;
import org.thoughtcrime.securesms.R;
import org.thoughtcrime.securesms.crypto.MasterSecret;
@@ -32,7 +35,7 @@ import org.thoughtcrime.securesms.util.Util;
import ws.com.google.android.mms.pdu.PduPart;
public class ThumbnailView extends ForegroundImageView {
public class ThumbnailView extends RoundedImageView {
private ListenableFutureTask<SlideDeck> slideDeckFuture = null;
private SlideDeckListener slideDeckListener = null;
@@ -96,6 +99,13 @@ public class ThumbnailView extends ForegroundImageView {
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) ||
@@ -238,4 +248,5 @@ public class ThumbnailView extends ForegroundImageView {
return false;
}
}
}