183b8526436ba2e564dff99ec4c6cf46fabfdf22eYigit Boyar/* 2ac5fe7c617c66850fff75a9fce9979c6e5674b0fAurimas Liutikas * Copyright 2018 The Android Open Source Project 383b8526436ba2e564dff99ec4c6cf46fabfdf22eYigit Boyar * 483b8526436ba2e564dff99ec4c6cf46fabfdf22eYigit Boyar * Licensed under the Apache License, Version 2.0 (the "License"); 583b8526436ba2e564dff99ec4c6cf46fabfdf22eYigit Boyar * you may not use this file except in compliance with the License. 683b8526436ba2e564dff99ec4c6cf46fabfdf22eYigit Boyar * You may obtain a copy of the License at 783b8526436ba2e564dff99ec4c6cf46fabfdf22eYigit Boyar * 883b8526436ba2e564dff99ec4c6cf46fabfdf22eYigit Boyar * http://www.apache.org/licenses/LICENSE-2.0 983b8526436ba2e564dff99ec4c6cf46fabfdf22eYigit Boyar * 1083b8526436ba2e564dff99ec4c6cf46fabfdf22eYigit Boyar * Unless required by applicable law or agreed to in writing, software 1183b8526436ba2e564dff99ec4c6cf46fabfdf22eYigit Boyar * distributed under the License is distributed on an "AS IS" BASIS, 1283b8526436ba2e564dff99ec4c6cf46fabfdf22eYigit Boyar * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1383b8526436ba2e564dff99ec4c6cf46fabfdf22eYigit Boyar * See the License for the specific language governing permissions and 1483b8526436ba2e564dff99ec4c6cf46fabfdf22eYigit Boyar * limitations under the License. 1583b8526436ba2e564dff99ec4c6cf46fabfdf22eYigit Boyar */ 16ac5fe7c617c66850fff75a9fce9979c6e5674b0fAurimas Liutikaspackage androidx.cardview.widget; 1783b8526436ba2e564dff99ec4c6cf46fabfdf22eYigit Boyar 1883b8526436ba2e564dff99ec4c6cf46fabfdf22eYigit Boyarimport android.graphics.Canvas; 1983b8526436ba2e564dff99ec4c6cf46fabfdf22eYigit Boyarimport android.graphics.Paint; 2083b8526436ba2e564dff99ec4c6cf46fabfdf22eYigit Boyarimport android.graphics.RectF; 21ae960aad7ec1eb87e1b6836afb25d27435d19884Aurimas Liutikas 22ac5fe7c617c66850fff75a9fce9979c6e5674b0fAurimas Liutikasimport androidx.annotation.RequiresApi; 2383b8526436ba2e564dff99ec4c6cf46fabfdf22eYigit Boyar 248f886fe8c7e23fe6ccb8734167c960c2ed3429c3Alan Viverette@RequiresApi(17) 25b7adf5d2ae19bc616c2d040a667ac1de3769f423Aurimas Liutikasclass CardViewApi17Impl extends CardViewBaseImpl { 2683b8526436ba2e564dff99ec4c6cf46fabfdf22eYigit Boyar 2783b8526436ba2e564dff99ec4c6cf46fabfdf22eYigit Boyar @Override 2883b8526436ba2e564dff99ec4c6cf46fabfdf22eYigit Boyar public void initStatic() { 29b7adf5d2ae19bc616c2d040a667ac1de3769f423Aurimas Liutikas RoundRectDrawableWithShadow.sRoundRectHelper = 30b7adf5d2ae19bc616c2d040a667ac1de3769f423Aurimas Liutikas new RoundRectDrawableWithShadow.RoundRectHelper() { 31b7adf5d2ae19bc616c2d040a667ac1de3769f423Aurimas Liutikas @Override 32b7adf5d2ae19bc616c2d040a667ac1de3769f423Aurimas Liutikas public void drawRoundRect(Canvas canvas, RectF bounds, float cornerRadius, 33b7adf5d2ae19bc616c2d040a667ac1de3769f423Aurimas Liutikas Paint paint) { 34b7adf5d2ae19bc616c2d040a667ac1de3769f423Aurimas Liutikas canvas.drawRoundRect(bounds, cornerRadius, cornerRadius, paint); 35b7adf5d2ae19bc616c2d040a667ac1de3769f423Aurimas Liutikas } 36b7adf5d2ae19bc616c2d040a667ac1de3769f423Aurimas Liutikas }; 3783b8526436ba2e564dff99ec4c6cf46fabfdf22eYigit Boyar } 38b7adf5d2ae19bc616c2d040a667ac1de3769f423Aurimas Liutikas} 39