private void showCustomerInfo(boolean show) {
   if (show) {
     mSearchCustomerBtn.setVisibility(View.VISIBLE);
     mCustomerInfoLayout.setVisibility(View.VISIBLE);
   } else {
     mSearchCustomerBtn.setVisibility(View.GONE);
     mCustomerInfoLayout.setVisibility(View.GONE);
   }
 }
 private ArrayList<String> getTags() {
   ArrayList<String> tags = new ArrayList<String>();
   int numTags = mTagGrid.getChildCount();
   for (int i = 0; i < numTags; i++) {
     TextView tv =
         (TextView) mTagGrid.getChildAt(i).findViewById(R.id.tv_tag); // unsafe cast, wutever
     String tag = tv.getText().toString();
     tags.add(tag);
   }
   return tags;
 }
  private void addTagChip(String tag) {
    // create a view and add it to the gridview
    final View x = LayoutInflater.from(getActivity()).inflate(R.layout.tag_layout, mTagGrid, false);
    if (Build.VERSION.SDK_INT >= 16) {
      x.findViewById(R.id.tag_wrapper).setBackground(createTagDrawable());
    } else {
      x.findViewById(R.id.tag_wrapper).setBackgroundDrawable(createTagDrawable());
    }

    ((TextView) x.findViewById(R.id.tv_tag)).setText(tag);
    ((TextView) x.findViewById(R.id.tv_tag)).setTextColor(Color.WHITE);
    (x.findViewById(R.id.ib_cancel))
        .setOnClickListener(
            new View.OnClickListener() {
              @Override
              public void onClick(View v) {
                mTagGrid.removeView(x);
              }
            });

    mTagGrid.addView(x, 0);
    ((TextView) mTagEditor.findViewById(R.id.et_tag)).setText("");
  }