title: Listview to cardview in android
body: <p>now I just got listview in android layout now i want to add cardview to this to show list of cardview. </p>
  
  <pre><code>     &lt;?xml version="1.0" encoding="utf-8"?&gt;
          &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
              android:orientation="vertical" android:layout_width="match_parent"
              android:layout_height="match_parent"&gt;
              &lt;ListView
                  android:layout_width="match_parent"
                  android:layout_height="match_parent"
                  android:id="@+id/clistview"&gt;
              &lt;/ListView&gt;
  
          &lt;/LinearLayout&gt;
  
      //java code 
  
          final ArrayAdapter&lt;String&gt; adapter = new ArrayAdapter&lt;String&gt;(ActivityCourseListView.this, android.R.layout.simple_list_item_1,adapterlist);
                  clistview.setAdapter(adapter);
                  Log.e("Course ListView","Courses"+adapterlist);
  </code></pre>