New issue
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
how dynamic string can be use to generate image drawable. #18
Comments
What font you use? |
holder.image.setImageDrawable(new PrintDrawable.Builder(mActivity.getApplicationContext()) font file is in assets folder |
UPDATE:- xmlns:app="http://schemas.android.com/apk/res-auto" i was missing correct shcema import, first now it is fixed working fine. please ignore this issue it keeps giving warning in logging The iconic font is not set. |
CharSequence charseq = "";
holder.image.setImageDrawable(new PrintDrawable.Builder(mActivity.getApplicationContext())
.iconText(charseq)
.iconColorRes(R.color.bl_accent)
.iconSizeRes(R.dimen.big_margin)
.build());
in above code, if i am trying to set char sequence dynamically in icontext, it does not generating icon but only text, only work if i define icon in string xml as resource. how can put icon code like this to work. please help.
thanks.
The text was updated successfully, but these errors were encountered: