package dk.silverbullet.telemed.questionnaire.element; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.widget.LinearLayout; import dk.silverbullet.telemed.questionnaire.R; import dk.silverbullet.telemed.questionnaire.node.IONode; import dk.silverbullet.telemed.rest.bean.message.MessageItem; import dk.silverbullet.telemed.utils.Util; public class ClinicMessageBubbleElement extends MessageBubble { static final String TAG = Util.getTag(ClinicMessageBubbleElement.class); public ClinicMessageBubbleElement(IONode node, MessageItem messageItem) { super(node, messageItem); } @Override public View getView() { Context context = getQuestionnaire().getContext(); LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); LinearLayout messageBubbleLayout = (LinearLayout) inflater.inflate(R.layout.clinic_message_bubble, null); formatMessageBubble(messageBubbleLayout, R.drawable.clinic_bubble_unread, Util.getString(R.string.message_unread_new, context), R.drawable.clinic_bubble_read, "", Util.getString(R.string.message_received, getQuestionnaire())); return messageBubbleLayout; } }