1/* 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 */ 16package android.support.v7.widget; 17 18import android.content.Context; 19/** 20 * Interface for platform specific CardView implementations. 21 */ 22interface CardViewImpl { 23 void initialize(CardViewDelegate cardView, Context context, int backgroundColor, float radius, 24 float elevation, float maxElevation); 25 26 void setRadius(CardViewDelegate cardView, float radius); 27 28 float getRadius(CardViewDelegate cardView); 29 30 void setElevation(CardViewDelegate cardView, float elevation); 31 32 float getElevation(CardViewDelegate cardView); 33 34 void initStatic(); 35 36 void setMaxElevation(CardViewDelegate cardView, float maxElevation); 37 38 float getMaxElevation(CardViewDelegate cardView); 39 40 float getMinWidth(CardViewDelegate cardView); 41 42 float getMinHeight(CardViewDelegate cardView); 43 44 void updatePadding(CardViewDelegate cardView); 45 46 void onCompatPaddingChanged(CardViewDelegate cardView); 47 48 void onPreventCornerOverlapChanged(CardViewDelegate cardView); 49} 50