We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
implementation 'com.github.chenBingX:SuperTextView:v3.2.6.99'
<com.coorchice.library.SuperTextView android:id="@+id/tv_sort" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="2dp" android:ellipsize="end" android:maxLines="1" android:singleLine="true" android:textSize="12sp" android:gravity="center" android:textStyle="bold" android:layout_gravity="center" app:stv_text_stroke="true" app:stv_text_fill_color="#FFF8CB" app:stv_text_stroke_color="#222222" app:stv_text_stroke_width="1dp" android:text="添加新分类" />
我没有设置字体颜色,为什么他会是白色的
The text was updated successfully, but these errors were encountered:
在项目中预览又是正常的
Sorry, something went wrong.
targetSdk设置为29及以上,会导致下面的代码发生异常,导致失效
private void setTextColorNoInvalidate(int color) { Field textColorField; try { textColorField = TextView.class.getDeclaredField("mCurTextColor"); textColorField.setAccessible(true); textColorField.set(this, color); textColorField.setAccessible(false); } catch (Exception e) { e.printStackTrace(); } }
No branches or pull requests
implementation 'com.github.chenBingX:SuperTextView:v3.2.6.99'
<com.coorchice.library.SuperTextView
android:id="@+id/tv_sort"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="2dp"
android:ellipsize="end"
android:maxLines="1"
android:singleLine="true"
android:textSize="12sp"
android:gravity="center"
android:textStyle="bold"
android:layout_gravity="center"
app:stv_text_stroke="true"
app:stv_text_fill_color="#FFF8CB"
app:stv_text_stroke_color="#222222"
app:stv_text_stroke_width="1dp"
android:text="添加新分类" />
我没有设置字体颜色,为什么他会是白色的
The text was updated successfully, but these errors were encountered: