encapsulated delivery icon to separate from lock

and as a bonus some tweaked text sizes and colors
// FREEBIE
This commit is contained in:
Jake McGinty
2014-11-19 12:46:59 -08:00
parent 8fa2f92a91
commit eaf89735b8
28 changed files with 12777 additions and 6285 deletions

View File

@@ -100,7 +100,7 @@ public class ConversationItem extends LinearLayout {
private ImageView secureImage;
private ImageView failedImage;
private ImageView contactPhoto;
private ImageView deliveredImage;
private ImageView deliveryImage;
private View triangleTick;
private ImageView pendingIndicator;
@@ -144,7 +144,7 @@ public class ConversationItem extends LinearLayout {
this.mmsDownloadButton = (Button) findViewById(R.id.mms_download_button);
this.mmsDownloadingLabel = (TextView) findViewById(R.id.mms_label_downloading);
this.contactPhoto = (ImageView)findViewById(R.id.contact_photo);
this.deliveredImage = (ImageView)findViewById(R.id.delivered_indicator);
this.deliveryImage = (ImageView)findViewById(R.id.delivered_indicator);
this.conversationParent = findViewById(R.id.conversation_item_parent);
this.triangleTick = findViewById(R.id.triangle_tick);
this.pendingIndicator = (ImageView)findViewById(R.id.pending_approval_indicator);
@@ -250,7 +250,7 @@ public class ConversationItem extends LinearLayout {
}
secureImage.setVisibility(messageRecord.isSecure() ? View.VISIBLE : View.GONE);
bodyText.setCompoundDrawablesWithIntrinsicBounds(0, 0, messageRecord.isKeyExchange() ? R.drawable.ic_menu_login : 0, 0);
deliveredImage.setVisibility(!messageRecord.isKeyExchange() && messageRecord.isDelivered() ? View.VISIBLE : View.GONE);
deliveryImage.setVisibility(!messageRecord.isKeyExchange() && messageRecord.isDelivered() ? View.VISIBLE : View.GONE);
mmsThumbnail.setVisibility(View.GONE);
mmsDownloadButton.setVisibility(View.GONE);