@@ -0,0 +1,2047 @@
+package com.pdumanager.slawek.pdumanager.arrayAdapters;%0A%0Aimport android.content.Context;%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.pdumanager.slawek.pdumanager.R;%0Aimport com.pdumanager.slawek.pdumanager.model.Group;%0Aimport com.pdumanager.slawek.pdumanager.model.Result;%0A%0A/**%0A * Created by slawek on 29.09.16.%0A */%0Apublic class PrivateGroupArrayAdapter extends ArrayAdapter%3CResult%3E %7B%0A    protected final LayoutInflater mInflater;%0A    protected final int mResourceId;%0A    public PrivateGroupArrayAdapter(Context context, int resource) %7B%0A        super(context, resource);%0A        mInflater = LayoutInflater.from(context);%0A        mResourceId = resource;%0A    %7D%0A%0A    public void setGroups(Result%5B%5D groups) %7B%0A        clear();%0A        for(Result group : groups)%7B%0A            add(group);%0A        %7D%0A        if(isEmpty())%7B%0A            notifyDataSetInvalidated();%0A        %7D else %7B%0A            notifyDataSetChanged();%0A        %7D%0A    %7D%0A%0A    public View getView(int position, View convertView, ViewGroup parent) %7B%0A        ViewHolder viewHolder;%0A        if(convertView == null)%7B%0A            viewHolder = new ViewHolder();%0A            convertView = mInflater.inflate(mResourceId, parent, false);%0A            viewHolder.mGroupNameTextView =(TextView) convertView.findViewById(R.id.private_group_name);%0A            viewHolder.mGroupContainerLinearLayout = (LinearLayout) convertView.findViewById(R.id.private_group_on_list);%0A            convertView.setTag(viewHolder);%0A        %7D else%7B%0A            viewHolder = (ViewHolder) convertView.getTag();%0A        %7D%0A        Result group = getItem(position);%0A        viewHolder.mGroupNameTextView.setText(group.group_name);%0A        viewHolder.mGroupContainerLinearLayout.setVisibility(View.VISIBLE);%0A        return convertView;%0A    %7D%0A%0A    private class ViewHolder %7B%0A        TextView mGroupNameTextView;%0A        LinearLayout mGroupContainerLinearLayout;%0A    %7D%0A%0A%7D%0A

add loses files