@Override
  public View getDropDownView(int position, View convertView, ViewGroup parent) {
    Currency currency = getItem(position);

    if (convertView == null) {
      convertView =
          LayoutInflater.from(getContext()).inflate(R.layout.currency_drop_down_item, null);
    }

    ((TextView) (convertView.findViewById(R.id.textView1))).setText(currency.getStrSymbol());
    ((TextView) (convertView.findViewById(R.id.textView2))).setText(currency.getName());

    return convertView;
  }
  @Override
  public View getView(int position, View convertView, ViewGroup parent) {
    Currency currency = getItem(position);

    if (convertView == null) {
      convertView =
          LayoutInflater.from(getContext()).inflate(android.R.layout.simple_list_item_1, null);
    }

    TextView strSymbol = ((TextView) (convertView.findViewById(android.R.id.text1)));
    strSymbol.setText(currency.getStrSymbol());
    strSymbol.setTag(R.string.tag_currency_id, currency.getId());

    return convertView;
  }