Reputation: 19
I'm looking for an optimal way to resize wrapping text in a TextView so that it will fit within Width.
I am referring to this Thread: Here is official Android Dev page
The problem I have app:attributes does not work even though i added implementation in gradle file. Error: "Namespace 'app' is not bound"
Here are is XML code fragment
app:autoSizeMaxTextSize="50sp"
app:autoSizeMinTextSize="12sp"
app:autoSizeStepGranularity="2sp"
app:autoSizeTextType="uniform"
And here is my gradle file
implementation 'com.android.support:support-compat:28.0.0'
Upvotes: 0
Views: 501
Reputation: 6919
You have to provide xmlns:app="http://schemas.android.com/apk/res-auto"
in the Parent Layout. Then you can use the app:attributes
. Refer this answer and first comment on the answer and Gradle file error shows clearly your using androidx and trying to import android version 28 library
Upvotes: 2