2017-12-16 3 views
0

私は制約レイアウトに設定されたガイドラインに適合するようにテキストを拡大しようとしています。現在、ビューが水平のときはテキストビューも画面の下部にボタンが重なります大。 android:autoSizeTextType = "uniform"これは新しい携帯電話API 26以上で修正されていますが、その下のAPIでこれを行う方法がわかりません。APIの下でテキストビューのテキストをスケーリングする

android:id="@+id/destinationTextView" 
android:layout_width="360dp" 
android:layout_height="wrap_content" 
android:text="@string/T1" 
android:textAlignment="center" 
android:autoSizeTextType="uniform" 
app:layout_constraintBottom_toBottomOf="parent" 
app:layout_constraintLeft_toLeftOf="parent" 
app:layout_constraintRight_toRightOf="parent" 
app:layout_constraintTop_toBottomOf="@+id/headingImage" 
app:layout_constraintVertical_bias="0.0" /> 

任意の助けをいただければ幸いです。それが今立っているよう

これは私のコードです。

答えて

0

ちょうど変更

android:autoSizeTextType = "uniform";

~

app:autoSizeTextType = "uniform";

+0

26以上のAPIでのみ動作しますか? –

関連する問題