title: CRASHES & ANRS report
body: <p>I am new with android and I just put out my first app.I got the following error and I having difficulty understanding where in the code something went wrong at which line in the code it crashed (I am used to the Log.d(,"")) Thanks in advance for any help or explanation.</p>
  
  <pre><code>java.lang.ClassCastException: android.graphics.drawable.ColorDrawable cannot be cast to android.support.v7.widget.RoundRectDrawableWithShadow
  at android.support.v7.widget.CardViewEclairMr1.getShadowBackground(CardViewEclairMr1.java:159)
  at android.support.v7.widget.CardViewEclairMr1.getMinWidth(CardViewEclairMr1.java:150)
  at android.support.v7.widget.CardView.onMeasure(CardView.java:181)
  at android.view.View.measure(View.java:17327)
  at android.support.v7.widget.RecyclerView$LayoutManager.measureChildWithMargins(RecyclerView.java:6874)
  at android.support.v7.widget.LinearLayoutManager.layoutChunk(LinearLayoutManager.java:1396)
  at android.support.v7.widget.LinearLayoutManager.fill(LinearLayoutManager.java:1333)
  at android.support.v7.widget.LinearLayoutManager.onLayoutChildren(LinearLayoutManager.java:562)
  at android.support.v7.widget.RecyclerView.dispatchLayout(RecyclerView.java:2900)
  at android.support.v7.widget.RecyclerView.onLayout(RecyclerView.java:3071)
  at android.view.View.layout(View.java:15594)
  at android.view.ViewGroup.layout(ViewGroup.java:4867)
  at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1677)
  at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1531)
  at android.widget.LinearLayout.onLayout(LinearLayout.java:1440)
  at android.view.View.layout(View.java:15594)
  at android.view.ViewGroup.layout(ViewGroup.java:4867)
  at android.widget.FrameLayout.layoutChildren(FrameLayout.java:453)
  at android.widget.FrameLayout.onLayout(FrameLayout.java:388)
  at android.view.View.layout(View.java:15594)
  at android.view.ViewGroup.layout(ViewGroup.java:4867)
  at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1677)
  at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1531)
  at android.widget.LinearLayout.onLayout(LinearLayout.java:1440)
  at android.view.View.layout(View.java:15594)
  at android.view.ViewGroup.layout(ViewGroup.java:4867)
  at android.widget.FrameLayout.layoutChildren(FrameLayout.java:453)
  at android.widget.FrameLayout.onLayout(FrameLayout.java:388)
  at android.support.v4.widget.NestedScrollView.onLayout(NestedScrollView.java:1617)
  at android.view.View.layout(View.java:15594)
  at android.view.ViewGroup.layout(ViewGroup.java:4867)
  at android.support.design.widget.CoordinatorLayout.layoutChild(CoordinatorLayout.java:1037)
  at android.support.design.widget.CoordinatorLayout.onLayoutChild(CoordinatorLayout.java:747)
  at android.support.design.widget.ViewOffsetBehavior.onLayoutChild(ViewOffsetBehavior.java:42)
  at android.support.design.widget.AppBarLayout$ScrollingViewBehavior.onLayoutChild(AppBarLayout.java:1156)
  at android.support.design.widget.CoordinatorLayout.onLayout(CoordinatorLayout.java:760)
  at android.view.View.layout(View.java:15594)
  at android.view.ViewGroup.layout(ViewGroup.java:4867)
  at android.widget.FrameLayout.layoutChildren(FrameLayout.java:453)
  at android.widget.FrameLayout.onLayout(FrameLayout.java:388)
  at android.view.View.layout(View.java:15594)
  at android.view.ViewGroup.layout(ViewGroup.java:4867)
  at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1677)
  at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1531)
  at android.widget.LinearLayout.onLayout(LinearLayout.java:1440)
  at android.view.View.layout(View.java:15594)
  at android.view.ViewGroup.layout(ViewGroup.java:4867)
  at android.widget.FrameLayout.layoutChildren(FrameLayout.java:453)
  at android.widget.FrameLayout.onLayout(FrameLayout.java:388)
  at android.view.View.layout(View.java:15594)
  at android.view.ViewGroup.layout(ViewGroup.java:4867)
  at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1677)
  at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1531)
  at android.widget.LinearLayout.onLayout(LinearLayout.java:1440)
  at android.view.View.layout(View.java:15594)
  at android.view.ViewGroup.layout(ViewGroup.java:4867)
  at android.widget.FrameLayout.layoutChildren(FrameLayout.java:453)
  at android.widget.FrameLayout.onLayout(FrameLayout.java:388)
  at android.view.View.layout(View.java:15594)
  at android.view.ViewGroup.layout(ViewGroup.java:4867)
  at android.view.ViewRootImpl.performLayout(ViewRootImpl.java:2348)
  at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2061)
  at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1249)
  at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6529)
  at android.view.Choreographer$CallbackRecord.run(Choreographer.java:812)
  at android.view.Choreographer.doCallbacks(Choreographer.java:612)
  at android.view.Choreographer.doFrame(Choreographer.java:582)
  at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:798)
  at android.os.Handler.handleCallback(Handler.java:733)
  at android.os.Handler.dispatchMessage(Handler.java:95)
  at android.os.Looper.loop(Looper.java:146)
  at android.app.ActivityThread.main(ActivityThread.java:5602)
  at java.lang.reflect.Method.invokeNative(Native Method)
  at java.lang.reflect.Method.invoke(Method.java:515)
  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1283)
  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1099)
  at dalvik.system.NativeStart.main(Native Method)
  </code></pre>
  
  <p>Edit:</p>
  
  <p>I am adding the xml that I suspect:
  I think when this gets called it crashes I am not sure whats wrong
       
      </p>
  
  <pre><code>&lt;android.support.design.widget.AppBarLayout
      android:id="@+id/appbar"
      android:layout_width="match_parent"
      android:layout_height="@dimen/detail_backdrop_height"
      android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
      android:fitsSystemWindows="true"&gt;
  
      &lt;android.support.design.widget.CollapsingToolbarLayout
          android:id="@+id/collapsing_toolbar"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          app:layout_scrollFlags="scroll|exitUntilCollapsed"
          android:fitsSystemWindows="true"
          app:contentScrim="?attr/colorPrimary"
          app:expandedTitleMarginStart="48dp"
          app:expandedTitleMarginEnd="64dp"&gt;
  
          &lt;ImageView
              android:id="@+id/backdrop"
              android:layout_width="match_parent"
              android:layout_height="match_parent"
              android:scaleType="centerCrop"
              android:fitsSystemWindows="true"
              app:layout_collapseMode="parallax"
              android:transitionName="square"/&gt;
  
          &lt;android.support.v7.widget.Toolbar
              android:id="@+id/toolbar"
              android:layout_width="match_parent"
              android:layout_height="?attr/actionBarSize"
              app:popupTheme="@style/ThemeOverlay.AppCompat.Light"
              app:layout_collapseMode="pin" /&gt;
  
      &lt;/android.support.design.widget.CollapsingToolbarLayout&gt;
  
  &lt;/android.support.design.widget.AppBarLayout&gt;
  
  &lt;android.support.v4.widget.NestedScrollView
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      app:layout_behavior="@string/appbar_scrolling_view_behavior"&gt;
  
      &lt;LinearLayout
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:orientation="vertical"
          android:paddingTop="24dp"&gt;
  
  
  
          &lt;android.support.v7.widget.CardView
              android:id="@+id/info_card"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:layout_margin="@dimen/card_margin"
              cardUseCompatPadding="true"
              cardCornerRadius="20dp"
              cardElevation="20dp"&gt;
  
              &lt;LinearLayout
                  style="@style/Widget.CardContent"
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"&gt;
  
                  &lt;TextView
                      android:layout_width="match_parent"
                      android:layout_height="wrap_content"
                      android:text="@string/favorite_title"
                      android:textAppearance="@style/TextAppearance.AppCompat.Title" /&gt;
  
                  &lt;TextView
                      android:layout_width="match_parent"
                      android:layout_height="wrap_content"
                      android:textAppearance="@style/TextAppearance.AppCompat.Body1"
                      android:text="@string/favorites_content" /&gt;
  
                  &lt;android.support.v7.widget.RecyclerView
                      android:id="@+id/dialog_pick_county_recycler_view"
                      android:layout_width="match_parent"
                      android:layout_height="475dp"
                      android:layout_margin="0dp"
                      android:transitionName="square2"/&gt;
              &lt;/LinearLayout&gt;
  
          &lt;/android.support.v7.widget.CardView&gt;
  
      &lt;/LinearLayout&gt;
  
  &lt;/android.support.v4.widget.NestedScrollView&gt;
  </code></pre>
  
  <p></p>