TextView autoSizeTextType not working in Compat

前端 未结 4 702
一整个雨季
一整个雨季 2021-01-11 12:26

I tried using autoSizeTextType. My minSdk is 24, all the tools are 26 and compat ist 26-beta2 as well.

4条回答
  •  别那么骄傲
    2021-01-11 13:21

    The key thing to understand is to use app:autoSizeTextType, as opposed to android:autoSizeTextType

    Per the documentation:

    To define the default setting in XML through the support library, use the app namespace and set the autoSizeTextType attribute to none or uniform.

    
    
    
      
    
    
    

提交回复
热议问题