Android-L CardView Visual Touch-Feedback
könnte mir jemand erklären, wie man einige der visuellen Touch-Rückmeldungen, die bei Google I / O 2014 gezeigt wurden, in einem CardView umsetzt.
Hier ist, wie ich die CardView in XML verwende, es fehlt wahrscheinlich etwas Kleines, also habe ich mich nur gefragt, ob mir jemand helfen könnte.
<!-- A CardView -->
<android.support.v7.widget.CardView
xmlns:card_view="http://schemas.android.com/apk/res-auto"
android:id="@+id/CardView_1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:layout_marginTop="10dp"
card_view:cardCornerRadius="4dp"
android:elevation="2dp">
<LinearLayout
android:id="@+id/LinearLayout_1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:onClick="RunSomeMethod"">
<!-- Main CardView Content In Here-->
</LinearLayout> </android.support.v7.widget.CardView>