MobileUI LogoMobileUI
/

CardView


A CardView is a FrameLayout with a rounded corner background and shadow.

Usage

A yellow card with image and text
<CardView width="180dp" cornerRadius="4dp" cardBackgroundColor="yellow">
    <ImageView href="#{itemImage}" width="fill_parent" height="80dp"/>
    <TextView text="#{itemText}" width="fill_parent" height="fill_parent" ellipsize="end"/>
</CardView>

Children

Views and/or Layouts

Attributes

NameTypeDefaultBindingDescription

Inherits all attributes from FrameLayout and adds the following:

cornerRadius

sizeType

Corner radius for CardView.

cardBackgroundColor

colorType

Background color for CardView.

touchEffectColor

colorType

white

Color of the ripple on Android and the touch overlay on iOS.


Parts of this documentation are a derivate of the Android Developer Documentation by Google used under CC-BY-2.5.