title: How to do setVisibility in CardView?
body: <p>How to do setVisibility in <strong>CardView</strong>? I would like to do setVisibility (GONE) for <strong>CardView</strong>. I don't want to do LinearLayout setVisibility (GONE). Programmatically. How to do this? </p>
  
  <pre><code>    &lt;android.support.v7.widget.CardView
                      android:id="@+id/cv_ingredient"
                      android:layout_width="match_parent"
                      android:layout_height="wrap_content"
                      android:layout_marginBottom="@dimen/cardMarginVertical"
                      android:layout_marginLeft="@dimen/cardMarginHorizontal"
                      android:layout_marginRight="@dimen/cardMarginHorizontal"
                      android:layout_marginTop="@dimen/cardMarginVertical"
                      app:cardBackgroundColor="@color/colorWhite"
                      app:cardCornerRadius="2dp"
                      app:cardElevation="5dp"
                      app:cardPreventCornerOverlap="false"
                      app:contentPadding="0dp"&gt;
  
                      &lt;LinearLayout
                          android:id="@+id/linear_ingredient"
                          android:layout_width="match_parent"
                          android:layout_height="wrap_content"
                          android:orientation="vertical"&gt;
  
                              &lt;TextView
                                  android:layout_width="wrap_content"
                                  android:layout_height="wrap_content"
                                  android:text="Ingredients"
                                  android:textAppearance="?android:attr/textAppearanceMedium" /&gt;
  
                              &lt;ListView
                                  android:id="@+id/list_ingredient"
                                  android:layout_width="match_parent"
                                  android:layout_height="wrap_content"/&gt;
  
                      &lt;/LinearLayout&gt;
  
  &lt;/android.support.v7.widget.CardView&gt;
  </code></pre>