android-autofittextview icon indicating copy to clipboard operation
android-autofittextview copied to clipboard

SetTextSize on Runtime?

Open KingWu opened this issue 9 years ago • 2 comments

i found that change the AutoFitTextView font size, style on Runtime exist issue. Thanks

KingWu avatar Jun 23 '15 06:06 KingWu

Could you elaborate a bit more what your bug report is with possible code samples and screenshots?

grantland avatar Jul 09 '15 05:07 grantland

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>

sattha avatar Dec 25 '15 08:12 sattha