1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- Copyright (C) 2014 The Android Open Source Project 3 4 Licensed under the Apache License, Version 2.0 (the "License"); 5 you may not use this file except in compliance with the License. 6 You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License. 15 --> 16 17 <resources> 18 <declare-styleable name="CardView"> 19 <!-- Background color for CardView. --> 20 <attr name="cardBackgroundColor" format="color" /> 21 <!-- Corner radius for CardView. --> 22 <attr name="cardCornerRadius" format="dimension" /> 23 <!-- Elevation for CardView. --> 24 <attr name="cardElevation" format="dimension" /> 25 <!-- Maximum Elevation for CardView. --> 26 <attr name="cardMaxElevation" format="dimension" /> 27 <!-- Add padding in API v21+ as well to have the same measurements with previous versions. --> 28 <attr name="cardUseCompatPadding" format="boolean" /> 29 <!-- Add padding to CardView on v20 and before to prevent intersections between the Card content and rounded corners. --> 30 <attr name="cardPreventCornerOverlap" format="boolean" /> 31 <!-- Inner padding between the edges of the Card and children of the CardView. --> 32 <attr name="contentPadding" format="dimension" /> 33 <!-- Inner padding between the left edge of the Card and children of the CardView. --> 34 <attr name="contentPaddingLeft" format="dimension" /> 35 <!-- Inner padding between the right edge of the Card and children of the CardView. --> 36 <attr name="contentPaddingRight" format="dimension" /> 37 <!-- Inner padding between the top edge of the Card and children of the CardView. --> 38 <attr name="contentPaddingTop" format="dimension" /> 39 <!-- Inner padding between the bottom edge of the Card and children of the CardView. --> 40 <attr name="contentPaddingBottom" format="dimension" /> 41 <!-- Workaround to read user defined minimum width --> 42 <attr name="android:minWidth"/> 43 <!-- Workaround to read user defined minimum height --> 44 <attr name="android:minHeight"/> 45 </declare-styleable> 46 </resources>