I tried using autoSizeTextType
.
My minSdk is 24, all the tools are 26 and compat ist 26-beta2 as well.
Making them adjustable was tried through code:
dialogWeight.touchables.filterIsInstance<Button>().forEach {
TextViewCompat.setAutoSizeTextTypeWithDefaults(it,
TextViewCompat.AUTO_SIZE_TEXT_TYPE_UNIFORM) }
And xml:
<android.support.v7.widget.AppCompatTextView
android:layout_height="match_parent"
android:text="7"
android:autoSizeTextType="uniform"/>
Any ideas ? I'm starting to believe that it's currently bugged
app:autoSizeTextType="uniform"
line? And are you able to address theAppCompatTextView
as aTextView
programatically? – Tauto