content: package com.yalantis.euclid.sample;
  
  import android.os.Bundle;
  import android.view.View;
  import android.widget.BaseAdapter;
  import android.widget.Toast;
  
  import com.jinlin.yalantis.R;
  import com.yalantis.euclid.library.EuclidListAdapter;
  
  import java.util.ArrayList;
  import java.util.HashMap;
  import java.util.List;
  import java.util.Map;
  
  /**
   * Created by Oleksii Shliama on 1/27/15.
   */
  public class EuclidActivity extends com.yalantis.euclid.library.EuclidActivity {
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
  
          mButtonProfile.setOnClickListener(new View.OnClickListener() {
              @Override
              public void onClick(View v) {
                  Toast.makeText(EuclidActivity.this, "Oh hi!", Toast.LENGTH_SHORT).show();
              }
          });
      }
  
      @Override
      protected BaseAdapter getAdapter() {
          Map<String, Object> profileMap;
          List<Map<String, Object>> profilesList = new ArrayList<>();
  
          int[] avatars = {
                  R.drawable.anastasia,
                  R.drawable.andriy,
                  R.drawable.dmitriy,
                  R.drawable.dmitry_96,
                  R.drawable.ed,
                  R.drawable.illya,
                  R.drawable.kirill,
                  R.drawable.konstantin,
                  R.drawable.oleksii,
                  R.drawable.pavel,
                  R.drawable.vadim};
          String[] names = getResources().getStringArray(R.array.array_names);
  
          for (int i = 0; i < avatars.length; i++) {
              profileMap = new HashMap<>();
              profileMap.put(EuclidListAdapter.KEY_AVATAR, avatars[i]);
              profileMap.put(EuclidListAdapter.KEY_NAME, names[i]);
              profileMap.put(EuclidListAdapter.KEY_DESCRIPTION_SHORT, getString(R.string.lorem_ipsum_short));
              profileMap.put(EuclidListAdapter.KEY_DESCRIPTION_FULL, getString(R.string.lorem_ipsum_long));
              profilesList.add(profileMap);
          }
  
          return new EuclidListAdapter(this, R.layout.list_item, profilesList);
      }
  
  }
  