android-autofittextview
android-autofittextview copied to clipboard
SetTextSize on Runtime?
i found that change the AutoFitTextView font size, style on Runtime exist issue. Thanks
Could you elaborate a bit more what your bug report is with possible code samples and screenshots?
size is not fit to its width when use setText at runtime
actvCOD.setText("a long long long String);
<me.grantland.widget.AutofitLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<AutoCompleteTextView
android:id="@+id/actvCOD"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="10dp"
android:hint="@string/booking_edit_hint_cod"
android:drawableLeft="@drawable/ic_cod_grey"
android:drawableStart="@drawable/ic_cod_grey"
android:paddingLeft="@dimen/padding_default"
android:paddingRight="@dimen/padding_default"
android:textSize="@dimen/booking_edit_tv_cod_text_size"
android:singleLine="true"
android:focusable="false"
android:editable="false"
android:background="@color/app_white"
android:textColor="@color/app_black"
style="@style/Widget.AppCompat.AutoCompleteTextView"
/>
</me.grantland.widget.AutofitLayout>