Я пытаюсь получить эффект ряби в виде карты, я внедрил его, добавив атрибут android: background, как описано на странице разработчиков Android https://developer.android.com/training/material/animations.html, но я не получил эффект пульсации , то я изменил атрибут андроида: передний план, как указано в https://stackoverflow.com/a/26975714/6866139 еще я не получаю мультипликационный эффект здесь мой XML-кодНе получаю эффект пульсации на Android Lollipop CardView
<?xml version="1.0" encoding="utf-8"?>
<android.support.v7.widget.CardView
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:card_view="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="wrap_content"
card_view:cardBackgroundColor="@color/cardview_light_background"
card_view:cardElevation="3dp"
android:focusable="true"
android:focusableInTouchMode="true"
android:id="@+id/card_view"
android:clickable="true"
android:background="?android:attr/selectableItemBackground"
android:layout_margin="@dimen/password_list_item_card_view_layout_margin">
<LinearLayout
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="70dp">
<TextView
android:layout_width="48dp"
android:layout_height="48dp"
android:id="@+id/logo_text_holder"
android:layout_marginTop="12dp"
android:layout_marginStart="12dp"
android:textColor="@color/colorPrimaryDark"
android:background="@drawable/circle"
android:paddingTop="8dp"
android:textSize="24sp"
android:textAlignment="center" />
<LinearLayout
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginStart="16dp"
android:layout_marginTop="8dp">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/name_holder"
android:textColor="@color/colorPrimaryDark"
android:textSize="24sp" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/email_holder"
android:textColor="@color/colorPrimaryDark"
android:textSize="14sp"/>
</LinearLayout>
</LinearLayout>
</android.support.v7.widget.CardView>
есть ли способ осуществить это, пожалуйста, помогите мне заранее спасибо
Вместо андроида: background = "? Android: attr/selectableItemBackground" использовать этот android: foreground = "? Android: attr/selectableItemBackground". –
Я пробовал использовать android: foreground and android: фоновые атрибуты, но все еще не работает – RikudouSennin