【发布时间】:2016-06-23 09:35:48
【问题描述】:
在xml中,我经常这样做是为了模仿onClick效果:
<android.support.v7.widget.CardView
android:id="@+id/cardView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:foreground="?selectableItemBackground">
...
</android.support.v7.widget.CardView>
有没有办法在java中访问?selectableItemBackground?
【问题讨论】:
标签: android xml android-layout android-cardview