title: Resetting CardView's Elevation to the default value (resting elavation)
body: <p>I want to change a <code>CardView</code>'s elevation and reset it later.</p>
  
  <p>Currently, I keep the default value of elevation (called <strong>resting elevation</strong>) as a field value in <code>onCreateView</code> of a <code>Fragment</code>. Later when I want to reset, set the value with <code>setCardElevation</code>.</p>
  
  <pre><code>private CardView cardView;
  private float restingElevation;
  private float pickedUpState = 50.0f;
  
  @Override
  public View onCreateView(LayoutInflater inflater, ViewGroup container,
                           Bundle savedInstanceState) {
  
      View view = inflater.inflate(R.layout.fragment, container, false);
  
      cardView = (CardView) view.findViewById(R.id.table_top);
      restingElevation = cardView.getCardElevation(); // keep the default
      Log.d("elevation", "resting: " + restingElevation);
  
      return view;
  }
  
  private void pickUp() {
      cardView.setCardElevation(pickedUpState);
  }
  
  private void rest() {
      cardView.setCardElevation(restingElevation);
  }
  </code></pre>
  
  <p>But, I wonder if there are any direct way to set a <code>CardView</code>'s elevation to its default value (resting elevation) without keeping the value which has not been changed yet in <code>onCreateView</code>. Is there a <strong>resource parameter</strong> (or <strong>style</strong>) for the <code>android.support.v7.cardview:cardElevation</code> of Material Design theme?</p>
  
  <p>(It seems that the resting elevation of <code>CardView</code> is about <strong>2.66</strong> with LogCat. Actually, in the official <a href="https://www.google.com/design/spec/what-is-material/elevation-shadows.html#elevation-shadows-elevation-android-" rel="nofollow">Material Design Guide</a>, the resting elevation of Card is indicated between 2dp and 3dp.)</p>