title: Cannot inflating MaterialCardView
body: <p>I get the following error :</p>
  
  <pre><code>    E/AndroidRuntime: FATAL EXCEPTION: main
      Process: com.example.mainapp, PID: 21456
      android.view.InflateException: Binary XML file line #11: Binary XML file line #11: Error inflating class &lt;unknown&gt;
      Caused by: android.view.InflateException: Binary XML file line #11: Error inflating class &lt;unknown&gt;
      Caused by: java.lang.reflect.InvocationTargetException
          at java.lang.reflect.Constructor.newInstance0(Native Method)
          at java.lang.reflect.Constructor.newInstance(Constructor.java:343)
          at android.view.LayoutInflater.createView(LayoutInflater.java:658)
          at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:827)
          at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:750)
          at android.view.LayoutInflater.rInflate(LayoutInflater.java:900)
          at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:861)
          at android.view.LayoutInflater.inflate(LayoutInflater.java:515)
          at android.view.LayoutInflater.inflate(LayoutInflater.java:423)
          at com.example.mainapp.ListCategories$MyAdapter.getView(ListCategories.java:99)
          at android.widget.AbsListView.obtainView(AbsListView.java:2413)
          at android.widget.ListView.makeAndAddView(ListView.java:2074)
          at android.widget.ListView.fillDown(ListView.java:801)
          at android.widget.ListView.fillFromTop(ListView.java:862)
          at android.widget.ListView.layoutChildren(ListView.java:1841)
          at android.widget.AbsListView.onLayout(AbsListView.java:2212)
          at android.view.View.layout(View.java:21112)
          at android.view.ViewGroup.layout(ViewGroup.java:6400)
          at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1828)
          at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1656)
          at android.widget.LinearLayout.onLayout(LinearLayout.java:1565)
          at android.view.View.layout(View.java:21112)
          at android.view.ViewGroup.layout(ViewGroup.java:6400)
          at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)
          at android.widget.FrameLayout.onLayout(FrameLayout.java:261)
          at android.view.View.layout(View.java:21112)
          at android.view.ViewGroup.layout(ViewGroup.java:6400)
          at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1828)
          at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1656)
          at android.widget.LinearLayout.onLayout(LinearLayout.java:1565)
          at android.view.View.layout(View.java:21112)
          at android.view.ViewGroup.layout(ViewGroup.java:6400)
          at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)
          at android.widget.FrameLayout.onLayout(FrameLayout.java:261)
          at android.view.View.layout(View.java:21112)
          at android.view.ViewGroup.layout(ViewGroup.java:6400)
          at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1828)
          at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1656)
          at android.widget.LinearLayout.onLayout(LinearLayout.java:1565)
          at android.view.View.layout(View.java:21112)
          at android.view.ViewGroup.layout(ViewGroup.java:6400)
          at android.widget.FrameLayout.layoutChildren(FrameLayout.java:323)
          at android.widget.FrameLayout.onLayout(FrameLayout.java:261)
          at com.android.internal.policy.DecorView.onLayout(DecorView.java:883)
          at android.view.View.layout(View.java:21112)
          at android.view.ViewGroup.layout(ViewGroup.java:6400)
          at android.view.ViewRootImpl.performLayout(ViewRootImpl.java:3508)
          at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2931)
          at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1931)
          at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:8368)
          at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1088)
          at android.view.Choreographer.doCallbacks(Choreographer.java:900)
          at android.view.Choreographer.doFrame(Choreographer.java:824)
          at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:1074)
          at android.os.Handler.handleCallback(Handler.java:873)
          at android.os.Handler.dispatchMessage(Handler.java:99)
          at android.os.Looper.loop(Looper.java:226)
          at android.app.ActivityThread.main(ActivityThread.java:7210)
  E/AndroidRuntime:     at java.lang.reflect.Method.invoke(Native Method)
          at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:499)
          at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:961)
       Caused by: java.lang.IllegalArgumentException: The style on this component requires your app theme to be Theme.MaterialComponents (or a descendant).
          at com.google.android.material.internal.ThemeEnforcement.checkTheme(ThemeEnforcement.java:248)
          at com.google.android.material.internal.ThemeEnforcement.checkMaterialTheme(ThemeEnforcement.java:222)
          at com.google.android.material.internal.ThemeEnforcement.checkCompatibleTheme(ThemeEnforcement.java:150)
          at com.google.android.material.internal.ThemeEnforcement.obtainStyledAttributes(ThemeEnforcement.java:81)
          at com.google.android.material.card.MaterialCardView.&lt;init&gt;(MaterialCardView.java:124)
          at com.google.android.material.card.MaterialCardView.&lt;init&gt;(MaterialCardView.java:114)
              ... 61 more
  </code></pre>
  
  <p>My xml layout line 11 </p>
  
  <pre><code>&lt;com.google.android.material.card.MaterialCardView
  </code></pre>
  
  <p>Used gradle version :</p>
  
  <pre><code>implementation 'com.google.android.material:material:1.1.0'
  </code></pre>
  
  <p>Manifest App theme</p>
  
  <pre><code>android:theme="@style/AppTheme.MaterialComponents"
  </code></pre>
  
  <p>Style App theme</p>
  
  <pre><code>&lt;style name="NoActionBarHome" parent="Theme.MaterialComponents.Light.DarkActionBar"&gt;
          &lt;item name="colorPrimary"&gt;@color/colorPrimary&lt;/item&gt;
          &lt;item name="colorPrimaryDark"&gt;@color/colorPrimaryDark&lt;/item&gt;
          &lt;item name="colorAccent"&gt;@color/colorAccent&lt;/item&gt;
  
      &lt;/style&gt;
      &lt;!-- Base application theme. --&gt;
      &lt;style name="AppTheme.MaterialComponents" parent="Theme.MaterialComponents.Light.DarkActionBar"&gt;
          &lt;!-- Customize your theme here. --&gt;
          &lt;item name="colorPrimary"&gt;@color/colorPrimary&lt;/item&gt;
          &lt;item name="colorPrimaryDark"&gt;@color/colorPrimaryDark&lt;/item&gt;
          &lt;item name="colorAccent"&gt;@color/colorAccent&lt;/item&gt;
          &lt;item name="windowNoTitle"&gt;true&lt;/item&gt;
          &lt;item name="windowActionBar"&gt;false&lt;/item&gt;
          &lt;item name="android:windowFullscreen"&gt;true&lt;/item&gt;
          &lt;item name="android:windowContentOverlay"&gt;@null&lt;/item&gt;
      &lt;/style&gt;
  </code></pre>
  
  <p>Code that i use to call my layout file</p>
  
  <p>layout file name : R.layout.row</p>
  
  <pre><code> @Override
          public View getView(int position, View convertView,  ViewGroup parent) {
              layoutInflater = (LayoutInflater) getApplicationContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE);
              row = layoutInflater.inflate(R.layout.row, parent, false);
              images = row.findViewById(R.id.image);
              myTitle = row.findViewById(R.id.textView1);
              myDescription = row.findViewById(R.id.textView2);
              // now set our resources on views
              Bitmap bmImg = BitmapFactory.decodeFile(rImgs[position]);
              images.setImageBitmap(bmImg);
              myTitle.setText(rTitle[position]);
              myDescription.setText(rDescription[position]);
  
              return row;
          }
  </code></pre>
  
  <p>If you need any more information, please let me know, thank you</p>