Android-Rich-text-Editor icon indicating copy to clipboard operation
Android-Rich-text-Editor copied to clipboard

cannot change icon toolbar? i need custom icon bold or italic with mine

Open abimanyu07 opened this issue 6 years ago • 6 comments

abimanyu07 avatar Mar 22 '19 07:03 abimanyu07

I want a custom bold icon or something else

abimanyu07 avatar Mar 22 '19 07:03 abimanyu07

Take a look at this class:

https://github.com/chinalwb/Android-Rich-text-Editor/blob/2ad7c2ab8e12a32d4dc1af2b43fd260caf444f5d/ARE/are/src/main/java/com/chinalwb/are/styles/toolitems/ARE_ToolItem_Bold.java

You may want to change: imageView.setImageResource(R.drawable.bold); Or create a new class extends this one and override the getView.

Sorry.. Appologize for the poor document..

chinalwb avatar Mar 22 '19 09:03 chinalwb

sorry , do yo have example change icon?

abimanyu07 avatar Mar 22 '19 09:03 abimanyu07

If you are using are by implementation project(':are'), just replace the ARE/are/src/main/res/drawable-hdpi/bold.png.

Or else if you are using the library from jcenter, you'll need to customization as above.

chinalwb avatar Mar 22 '19 10:03 chinalwb

okeee thanks a lot :)

abimanyu07 avatar Mar 25 '19 09:03 abimanyu07

okee,terima kasih banyak

abimanyu07 avatar Mar 25 '19 09:03 abimanyu07