Giter VIP home page Giter VIP logo

Comments (3)

chinalwb avatar chinalwb commented on August 15, 2024

@yovenny 我最近在做Toolbar和ToolItem的重构,等完成的时候 这些类结构和继承关系可能会稍微改变下,但我会在使用文档中写明各模块之间的关系。

这里我可以大致说一下,供你参考。

1.AREditor (RelativeLayout) 包含了AREditText (EditText) 和ARE_Toolbar (LinearLayout)
2. AREditText 里面有一个 TextWatcher, 当用户输入文字 或删除文字的时候回触发这里的回调方法,目前主要起作用的是 afterTextChanged 方法
3. ARE_Toolbar 里面是一个个的ImageView, 比如粗体,斜体,插入图片等各个样式的图标,在ARE里面叫IARE_Style (styles 那个package里面的类是各个样式的实现)
4. 输入框中文字改变的时候 afterTextChanged 方法会依次调用所有注册的IARE_StyleapplyStyle方法
5. 各个样式的applyStyle方法需要设定合适的span(spans package里有各个实现类)参数

不止您一位提出这个关于文档不清晰的问题了,我在改进 (无奈最近工作一直较忙,近一个月多来更新慢了 不过不会对已有功能停止维护)

如有问题继续沟通,欢迎fork 然后一起开发。

谢谢。

from android-rich-text-editor.

chinalwb avatar chinalwb commented on August 15, 2024

我更新了readme, 有问题可以再提出来哈。谢谢。

from android-rich-text-editor.

yovenny avatar yovenny commented on August 15, 2024

谢谢大佬,加油

from android-rich-text-editor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.