@@ -0,0 +1,1501 @@
+package com.example.android.androidsimulator.adapters;%0A%0A%0Aimport android.app.Activity;%0Aimport android.view.LayoutInflater;%0Aimport android.view.View;%0Aimport android.view.ViewGroup;%0Aimport android.widget.ArrayAdapter;%0Aimport android.widget.LinearLayout;%0Aimport android.widget.TextView;%0A%0Aimport com.example.android.androidsimulator.R;%0Aimport com.example.android.androidsimulator.data.Messages;%0A%0Aimport java.util.ArrayList;%0A%0Apublic class SelectedMessageAdapter extends ArrayAdapter%3CMessages%3E %7B%0A%0A    public SelectedMessageAdapter(Activity context, ArrayList%3CMessages%3E messages) %7B%0A        super(context, 0, messages);%0A    %7D%0A%0A    @Override%0A    public View getView(final int position, View convertView, ViewGroup parent) %7B%0A        View listItemView = convertView;%0A        if (listItemView == null) %7B%0A            listItemView = LayoutInflater.from(getContext()).inflate(%0A                    R.layout.list_selected_messages, parent, false);%0A        %7D%0A%0A        final Messages currentMessage = getItem(position);%0A%0A        LinearLayout linearLayout = (LinearLayout) listItemView.findViewById(R.id.list_selected_message);%0A        linearLayout.setVisibility(View.VISIBLE);%0A%0A        TextView messageTextView = (TextView) listItemView.findViewById(R.id.message_textView);%0A        TextView dateTextView = (TextView) listItemView.findViewById(R.id.date_textView);%0A%0A        messageTextView.setText(currentMessage.getMessage());%0A        dateTextView.setText(currentMessage.getDate());%0A%0A        return listItemView;%0A    %7D%0A%7D%0A

Add SelectedMessageAdapter.java