I want shadow effect only one two side ..i.e in right side and bottom of the cardview. Ngoài ra các cạnh tròn không được hiển thị đúng. ... You can write the control in the manner where you can set the shadow colors, opacity, on how many sides you want to apply the shadows. Đây là mã cho Chế độ xem … shadowOffset sets how far away from the view the shadow should be, to give a 3D offset effect. 0. Card view contains pre defined corner radius and shadow property. Setup your CardView to use the cardBackgroundColor attribute to remove color and cardElevation attribute to remove the drop shadow. Use these properties to customize the appearance of the CardView widget: To set the corner radius in your layouts, use the card_view:cardCornerRadius attribute. Well organized and easy to understand Web building tutorials with lots of examples of how to use HTML, CSS, JavaScript, SQL, PHP, Python, Bootstrap, Java and XML. Previous Post Multiple select list with search bar. This overlap doesn’t express the degree of elevation between the surfaces. Default is 0.9 */ open var shadowOpacity : Float = 0.9 /** Set shadow color of card view. For example: