1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 ~ Copyright (C) 2016 The Android Open Source Project 4 ~ 5 ~ Licensed under the Apache License, Version 2.0 (the "License"); 6 ~ you may not use this file except in compliance with the License. 7 ~ You may obtain a copy of the License at 8 ~ 9 ~ http://www.apache.org/licenses/LICENSE-2.0 10 ~ 11 ~ Unless required by applicable law or agreed to in writing, software 12 ~ distributed under the License is distributed on an "AS IS" BASIS, 13 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 ~ See the License for the specific language governing permissions and 15 ~ limitations under the License 16 --> 17<resources> 18 <declare-styleable name="AutoResizeTextView"> 19 <!-- 20 The unit to use when computing step increments for the resize operation. That is, the 21 resized text will be guaranteed to be a whole number (integer) value in the unit 22 specified. For example, if the unit is scaled pixels (sp), then the font size might be 23 13sp or 14sp, but not 13.5sp. 24 25 The enum values must match the values from android.util.TypedValue. 26 --> 27 <attr name="autoResizeText_resizeStepUnit" format="enum"> 28 <!-- Must match TypedValue.COMPLEX_UNIT_PX. --> 29 <enum name="unitPx" value="0" /> 30 <!-- Must match TypedValue.COMPLEX_UNIT_DIP. --> 31 <enum name="unitDip" value="1" /> 32 <!-- Must match TypedValue.COMPLEX_UNIT_SP. --> 33 <enum name="unitSp" value="2" /> 34 <!-- Must match TypedValue.COMPLEX_UNIT_PT. --> 35 <enum name="unitPt" value="3" /> 36 <!-- Must match TypedValue.COMPLEX_UNIT_IN. --> 37 <enum name="unitIn" value="4" /> 38 <!-- Must match TypedValue.COMPLEX_UNIT_MM. --> 39 <enum name="unitMm" value="5" /> 40 </attr> 41 <!-- 42 The minimum text size to use in this view. Text size will be scale down to fit the text 43 in this view, but no smaller than the minimum size specified in this attribute. 44 --> 45 <attr name="autoResizeText_minTextSize" format="dimension" /> 46 </declare-styleable> 47</resources> 48