title: Displaying ListView (with all items visible) from the bottom of a screen when a condition is satisfied
body: <p>I want to display a <code>ListView</code> with some items when a URL response is received.  </p>
  
  <p>To display <code>ListView</code> from bottom what I have done is, I have put it at the end of LinearLayout(it's parent) with <code>visibility</code> set to <code>gone</code>. </p>
  
  <p>Layout file :</p>
  
  <pre><code>&lt;/LinearLayout&gt;
      .
      .
      .
      &lt;!-- ListView at bottom --&gt;
      &lt;ListView
          android:id="@+id/places_list"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:background="@color/gray"
          android:visibility="gone" &gt;
      &lt;/ListView&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>When I want to display <code>ListView</code>, I make it visible and translate it using animation as shown below :</p>
  
  <pre><code>// Show listView that displays a list of items
  private void showListView() {
  
      ObjectAnimator animator = null;
      placeListView.setVisibility(View.VISIBLE);
  
      // Display listView with animation 
      if (activeEditTextId == R.id.from_location) {
  
          animator = ObjectAnimator.ofFloat(placeListView, "y", fromLocation.getY() + fromLocation.getHeight() + 5);
  
      } else if (activeEditTextId == R.id.to_location) {
  
          animator = ObjectAnimator.ofFloat(placeListView, "y", toLocation.getY() + toLocation.getHeight() + 5);
      }
  
      animator.setDuration(2000);
      animator.start();
  
      listAdapter.notifyDataSetChanged();
  }
  </code></pre>
  
  <p><br>
  But the issue is that with this layout, <code>ListView</code> height is 37 only. I understand it is because  only that much height is available at the end for <code>ListView</code>.  </p>
  
  <p>But how to show <code>ListView</code> with it full size i.e. all items visible at once?</p>