137847549af8a990fec26accc45b771141ff9ddb5Kirill Grouchnikov/* 2fd1fbe39a104a96c3839be04e99bbea9ad6eb3c0Kirill Grouchnikov * Copyright 2018 The Android Open Source Project 337847549af8a990fec26accc45b771141ff9ddb5Kirill Grouchnikov * 437847549af8a990fec26accc45b771141ff9ddb5Kirill Grouchnikov * Licensed under the Apache License, Version 2.0 (the "License"); 537847549af8a990fec26accc45b771141ff9ddb5Kirill Grouchnikov * you may not use this file except in compliance with the License. 637847549af8a990fec26accc45b771141ff9ddb5Kirill Grouchnikov * You may obtain a copy of the License at 737847549af8a990fec26accc45b771141ff9ddb5Kirill Grouchnikov * 837847549af8a990fec26accc45b771141ff9ddb5Kirill Grouchnikov * http://www.apache.org/licenses/LICENSE-2.0 937847549af8a990fec26accc45b771141ff9ddb5Kirill Grouchnikov * 1037847549af8a990fec26accc45b771141ff9ddb5Kirill Grouchnikov * Unless required by applicable law or agreed to in writing, software 1137847549af8a990fec26accc45b771141ff9ddb5Kirill Grouchnikov * distributed under the License is distributed on an "AS IS" BASIS, 1237847549af8a990fec26accc45b771141ff9ddb5Kirill Grouchnikov * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1337847549af8a990fec26accc45b771141ff9ddb5Kirill Grouchnikov * See the License for the specific language governing permissions and 1437847549af8a990fec26accc45b771141ff9ddb5Kirill Grouchnikov * limitations under the License. 1537847549af8a990fec26accc45b771141ff9ddb5Kirill Grouchnikov */ 16ac5fe7c617c66850fff75a9fce9979c6e5674b0fAurimas Liutikaspackage androidx.coordinatorlayout.custom; 1737847549af8a990fec26accc45b771141ff9ddb5Kirill Grouchnikov 1837847549af8a990fec26accc45b771141ff9ddb5Kirill Grouchnikovimport android.content.Context; 1937847549af8a990fec26accc45b771141ff9ddb5Kirill Grouchnikovimport android.util.AttributeSet; 20fd1fbe39a104a96c3839be04e99bbea9ad6eb3c0Kirill Grouchnikovimport android.widget.TextView; 2137847549af8a990fec26accc45b771141ff9ddb5Kirill Grouchnikov 224464b955661a7c40f1dd16543f01ccef06fe011bAurimas Liutikasimport androidx.coordinatorlayout.widget.CoordinatorLayout; 234464b955661a7c40f1dd16543f01ccef06fe011bAurimas Liutikas 2437847549af8a990fec26accc45b771141ff9ddb5Kirill Grouchnikov@CoordinatorLayout.DefaultBehavior(TestFloatingBehavior.class) 25fd1fbe39a104a96c3839be04e99bbea9ad6eb3c0Kirill Grouchnikovpublic class CustomTextView extends TextView { 2637847549af8a990fec26accc45b771141ff9ddb5Kirill Grouchnikov public CustomTextView(Context context) { 2737847549af8a990fec26accc45b771141ff9ddb5Kirill Grouchnikov super(context); 2837847549af8a990fec26accc45b771141ff9ddb5Kirill Grouchnikov } 2937847549af8a990fec26accc45b771141ff9ddb5Kirill Grouchnikov 3037847549af8a990fec26accc45b771141ff9ddb5Kirill Grouchnikov public CustomTextView(Context context, AttributeSet attrs) { 3137847549af8a990fec26accc45b771141ff9ddb5Kirill Grouchnikov super(context, attrs); 3237847549af8a990fec26accc45b771141ff9ddb5Kirill Grouchnikov } 3337847549af8a990fec26accc45b771141ff9ddb5Kirill Grouchnikov 3437847549af8a990fec26accc45b771141ff9ddb5Kirill Grouchnikov public CustomTextView(Context context, AttributeSet attrs, int defStyleAttr) { 3537847549af8a990fec26accc45b771141ff9ddb5Kirill Grouchnikov super(context, attrs, defStyleAttr); 3637847549af8a990fec26accc45b771141ff9ddb5Kirill Grouchnikov } 3737847549af8a990fec26accc45b771141ff9ddb5Kirill Grouchnikov} 38