title: Android Visibility from GONE to VISIBLE doesn't work first time
body: <p>Hello I have a problem with an animation I try to make.</p>
  
  <p>I use this library <a href="https://github.com/daimajia/AndroidViewAnimations" rel="nofollow">AndroidViewAnimations</a>.</p>
  
  <p>Here is my layout xml code:</p>
  
  <pre><code>    &lt;Button
           android:id="@+id/buttonDetails"
           style="@style/Button_Details"/&gt;
  
      &lt;LinearLayout
          android:id="@+id/linearLayoutDetails"
          android:visibility="gone"
          style="@style/LinearLayout_Details"&gt;
  
          &lt;CheckBox
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:text="@string/checkbox_clmn_text"
              android:checked="true"/&gt;
          &lt;CheckBox
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:text="@string/checkbox_clme_text"
              android:checked="true"/&gt;
          &lt;CheckBox
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:text="@string/checkbox_clmn_text"
              android:checked="true"/&gt;
          &lt;CheckBox
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:text="@string/checkbox_clmn_text"
              android:checked="true"/&gt;
          &lt;CheckBox
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:text="@string/checkbox_clmn_text"
              android:checked="true"/&gt;
          &lt;CheckBox
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:text="@string/checkbox_clmn_text"
              android:checked="true"/&gt;
  
      &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>And here my java code:</p>
  
  <pre><code>// Declare Variables
  @ViewById
  LinearLayout linearLayoutDetails;
  
  @Click
  void buttonDetails() {
      // Checks Linear Layout Visibility
      if (linearLayoutDetails.getVisibility() == View.GONE) {
          // Sets linearLayoutDetails Visibility to VISIBLE
          linearLayoutDetails.setVisibility(View.VISIBLE);
          // Makes Appear Animation
          YoYo.with(Techniques.SlideInDown)
                  .duration(700)
                  .playOn(linearLayoutDetails);
      } else {
          linearLayoutDetails.setVisibility(View.GONE);
      }
  }
  </code></pre>
  
  <p>Now the problem is that the first time I press the Button the animation is not working, but after that every other time works.</p>
  
  <p>I did some research and i found that the problem is that i have the visibility set to gone and if I set it to invisible it works fine from the first time. Thing is that I dont want the visibility to invisible but to gone because I dont want the Linear Layout to takes up the space when its hidden.</p>
  
  <p>Any ideas?</p>