Closed rtz333 closed 3 years ago
usage: new TextStyleBuilder() .withTextColor(123) .withTextSize(12f) .withGravity(3) .withTextFont(Typeface.DEFAULT) .withBackgroundColor(321) .withTextAppearance(144) .withTextStyle(....) .withTextFlag(...) .withTextShadow(...); .applyStyle(textView);
Can you please add some description to the issue or explain the usecase ?
I just added a few features to this project. Use case:
TextStyleBuilder textStyleBuilder=new TextStyleBuilder();
TextShadow textShadow=new TextShadow(2,2,2,ContextCompat.getColor(EditImageActivity.this,R.color.red_orange_color_picker)); textStyleBuilder.withTextShadow(textShadow); textStyleBuilder.withTextFlag(Paint.STRIKE_THRU_TEXT_FLAG|); // text strike line
//text underline :Paint.UNDERLINE_TEXT_FLAG
Please raise a PR for this with test. Will review it.
Very good. Hope it gets to main. Much better than the simple PR that I posted with only the Shadow modification.