title: Changing visibility with LinearLayout and weight
body: <p>So I have a <code>LinearLayout</code> with two view and I am setting weight to each views. </p>
  
  <pre><code>  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
                      android:id="@+id/main_layout1"
                      android:layout_width="match_parent"
                      android:layout_height="match_parent"
                      android:animateLayoutChanges="true"
                      android:gravity="center"
  
                      android:orientation="horizontal"&gt;
  
                      &lt;com.sorted.view.SorteddTextView
                          android:id="@+id/percent1"
                          android:layout_width="0dp"
                          android:layout_height="wrap_content"
                          android:layout_gravity="center"
                          android:layout_marginLeft="@dimen/normal"
                          android:layout_marginRight="@dimen/small"
                          android:layout_weight="2"
                          android:background="@color/sky_blue"
                          android:gravity="center"
  
                          android:text="0%"
                          android:textColor="@color/font_color"
                          android:textSize="@dimen/font_size_large"
                          android:visibility="invisible" /&gt;
  
                      &lt;FrameLayout
                          android:id="@+id/frame1"
                          android:layout_width="0dp"
                          android:layout_height="wrap_content"
                          android:layout_weight="8"&gt;
                          ......
                          ......
                         &lt;/FrameLayout&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>Now at first I set the visibility to <code>GONE</code> from activity. Then on some button press I set the visibility to <code>VISIBLE</code> but I am not able to see the view. 
  However when visibility is <code>INVISIBLE</code> and then if I change it to <code>VISIBLE</code> its working fine.</p>
  
  <p>What I think is <code>LinearLayout</code> is unable to  adjust its view(well I have no idea).</p>