title: TextView setVisibility(View.GONE) does not remove my CustomTextView
body: <p>I am using a custom textview and i am trying to hide it under some circumstances... However i get a strange behaviour on some devices(Nexus 4) when i am using the method setVisibility(View.GONE), the view is not hidden as it should be but instead it's loaded with data from another previous textview.</p>
  
  <p>Here's my code:</p>
  
  <pre><code>&lt;ro.gebs.captoom.utils.fonts.CustomFontTextView
                          android:id="@+id/delete_btn"
                          android:layout_width="match_parent"
                          android:layout_height="wrap_content"
                          android:layout_marginBottom="@dimen/layout_padding"
                          android:background="@drawable/rounded"
                          android:drawablePadding="10dp"
                          android:drawableRight="@drawable/input_delete_red"
                          android:padding="@dimen/layout_padding"
                          android:paddingLeft="10dp"
                          android:text="@string/delete"
                          android:textColor="@color/redish"
                          android:textSize="18sp"
                          custom:fontName="SemiBold"
                          android:visibility="gone"/&gt;
  </code></pre>
  
  <p>The CustomFontTextView class:</p>
  
  <pre><code>package ro.gebs.captoom.utils.fonts;
  
  import android.content.Context;
  import android.content.res.TypedArray;
  import android.graphics.Typeface;
  import android.util.AttributeSet;
  import android.widget.TextView;
  
  import ro.gebs.captoom.R;
  
  public class CustomFontTextView extends TextView {
  
      public CustomFontTextView(Context context, AttributeSet attrs, int defStyle) {
          super(context, attrs, defStyle);
          if (!isInEditMode()) {
              TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.CustomFontTextView,
                      defStyle, 0);
  
              assert a != null;
              int fontId = a.getInteger(R.styleable.CustomFontTextView_fontName, -1);
              if (fontId == -1) {
                  throw new IllegalArgumentException("The font_name attribute is required and must refer "
                          + "to a valid child.");
              }
              a.recycle();
              initialize(fontId);
          }
  
      }
  
      public CustomFontTextView(Context context, AttributeSet attrs) {
          this(context, attrs, 0);
      }
  
      public CustomFontTextView(Context context) {
          super(context);
      }
  
      @SuppressWarnings("ConstantConditions")
      public void initialize(int fontId) {
  
          Typeface tf = null;
          switch (fontId) {
              case -1:
              case 0:
                  tf = Typeface.createFromAsset(getContext().getAssets(), "fonts/OpenSans-Regular.ttf");
                  break;
              case 1:
                  tf = Typeface.createFromAsset(getContext().getAssets(), "fonts/OpenSans-Bold.ttf");
                  break;
              case 2:
                  tf = Typeface.createFromAsset(getContext().getAssets(), "fonts/OpenSans-Semibold.ttf");
                  break;
              case 3:
                  tf = Typeface.createFromAsset(getContext().getAssets(), "fonts/OpenSans-ExtraBold.ttf");
                  break;
  
          }
  
          setTypeface(tf);
      }
  }
  </code></pre>
  
  <p>My Activity code:</p>
  
  <pre><code>@Override
      protected void onResume() {
          super.onResume();
  
          if (deleteBtnVisible) {
              delete_btn.setVisibility(View.VISIBLE);
          } else {
              delete_btn.setVisibility(View.GONE);
          }
  
  
          Bundle extras = getIntent().getExtras();
          if (extras != null) {
              final int statusFolder = extras.getInt(Constants.STATUS, Constants.STATUS_NEW);
              if (statusFolder == Constants.STATUS_EDIT) {
                  if (folder.getTitle().equals("Inbox")) {
                      delete_btn.setVisibility(View.GONE);
                  } else {
                      delete_btn.setVisibility(View.VISIBLE);
                      delete_btn.setEnabled(true);
                  }
              }
          }
      }
  </code></pre>
  
  <p>Any hints that could solve this strange issue?</p>