| <?xml version="1.0" encoding="utf-8"?> |
| <!-- Copyright (C) 2014 The Android Open Source Project |
| |
| Licensed under the Apache License, Version 2.0 (the "License"); |
| you may not use this file except in compliance with the License. |
| You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| |
| <resources> |
| <!-- Default CardView style --> |
| <attr name="cardViewStyle" format="reference" /> |
| |
| <declare-styleable name="CardView"> |
| <!-- Background color for CardView. --> |
| <attr name="cardBackgroundColor" format="color" /> |
| <!-- Corner radius for CardView. --> |
| <attr name="cardCornerRadius" format="dimension" /> |
| <!-- Elevation for CardView. --> |
| <attr name="cardElevation" format="dimension" /> |
| <!-- Maximum Elevation for CardView. --> |
| <attr name="cardMaxElevation" format="dimension" /> |
| <!-- Add padding in API v21+ as well to have the same measurements with previous versions. --> |
| <attr name="cardUseCompatPadding" format="boolean" /> |
| <!-- Add padding to CardView on v20 and before to prevent intersections between the Card content and rounded corners. --> |
| <attr name="cardPreventCornerOverlap" format="boolean" /> |
| <!-- Inner padding between the edges of the Card and children of the CardView. --> |
| <attr name="contentPadding" format="dimension" /> |
| <!-- Inner padding between the left edge of the Card and children of the CardView. --> |
| <attr name="contentPaddingLeft" format="dimension" /> |
| <!-- Inner padding between the right edge of the Card and children of the CardView. --> |
| <attr name="contentPaddingRight" format="dimension" /> |
| <!-- Inner padding between the top edge of the Card and children of the CardView. --> |
| <attr name="contentPaddingTop" format="dimension" /> |
| <!-- Inner padding between the bottom edge of the Card and children of the CardView. --> |
| <attr name="contentPaddingBottom" format="dimension" /> |
| <!-- Workaround to read user defined minimum width --> |
| <attr name="android:minWidth"/> |
| <!-- Workaround to read user defined minimum height --> |
| <attr name="android:minHeight"/> |
| </declare-styleable> |
| </resources> |