title: Android scale view and re-layout
body: <p>Sorry for the vague title. I really cannot present this question is few words. OK, let me describe what I want to achieve.</p>
  
  <p>First, I have a vertical LinearLayout including two views. View A is visible and as big as possible(match parent). For View BI set it VIEW.GONE be default.</p>
  
  <p>Then, triggered by something, View A will be scaled into half of its size. And View B will be shown by setting VIEW.VISIBLE. In order to make View A and View B have the same height, I assigned equal weight to them in xml. The following figures illustrate what I want to implement.</p>
  
  <p><a href="http://postimg.org/image/ei932labd/" rel="nofollow">figure</a></p>
  
  <p>To scale View A, I make use of View.ScaleX(0.5f) and View.ScaleY(0.5f). Actually I implement the scale function in the animation way and set View B visibility in EndAnimation Callback.</p>
  
  <p>But View A and View B cannot be shown properly. Half of each view is masked by unknown 'white block'.</p>
  
  <p>And I also check the height-width of View A, before and after scaling, it does not change at all.</p>
  
  <p>So is it possible to implement such feature? </p>
  
  <p>Thanks so much.</p>