I have a welcome cardview. I would like to after the first preview the user pressed the Ok button, understood and the card quit and no longer appears.
I'vealreadyputXMLonClick:
<android.support.v7.widget.CardViewxmlns:card_view="http://schemas.android.com/apk/res-auto"
android:id="@+id/cardView"
style="@style/Material_Card_View"
card_view:cardBackgroundColor="@color/colorPrimary"
card_view:cardCornerRadius="@dimen/card_corner_radius"
card_view:cardElevation="@dimen/card_elevation">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:id="@+id/cardbemvindo">
<include layout="@layout/headline_16dp" />
<include layout="@layout/supporting_text_24dp" />
<include layout="@layout/divider" />
<TextView
android:id="@+id/ok_button"
style="@style/Material_Action"
android:layout_marginLeft="8dp"
android:layout_marginRight="8dp"
android:drawableLeft="@drawable/ic_check"
android:drawablePadding="@dimen/big_padding"
android:text="@string/card_ok"
android:textColor="@color/white"
android:onClick="clickOK"/>
</LinearLayout>
</android.support.v7.widget.CardView>