1
I got a welcome cardview. I would like after the first view the user pressed the Ok button, understood and the card left and no longer appears.
I already put onClick in XML:
<android.support.v7.widget.CardView xmlns: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>
Although the tips to use the sheredPreferences are great, I still prefer and find it simpler to use the local bank (Sqlite)
– Leonardo Dias
the problem in using the sqlite and that would be depleted, and would spend time doing this, and would lose efficiency, more and an option, and is to like...
– Renato Vieira Dantas