Skip to content

计算方法过于复杂,容易导致绘制的时候创建过多的layout对象 #4

Description

@7heaven

可以考虑使用DynamicLayout + 动态添加Span的方式来做,在需要给子控件让出空间的位置使用宽度可定但是不可见的Span来给Layout创建文字内部的间隔,这个整个布局内容复杂也不会导致计算和绘制时间的大幅度增加。甚至可以实现拖动子控件的动态排版。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions