CardView

A FrameLayout with a rounded corner background and shadow.

Examples

An image with text on a CardView
<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

Name Type Default Binding Description

Inherits all attributes from FrameLayout and adds the following:

cornerRadius

sizeType

Corner radius for CardView.

cardBackgroundColor

colorType

Background color for CardView.


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

results matching ""

    No results matching ""