Skip to content

携程: View.GONE和View.INVISIBLE 有啥本质区别? #113

Open

Description

@MicroKibaco
No description provided.

Activity

  1. MicroKibaco commented on Nov 12, 2020

    @MicroKibaco
    OwnerAuthor

    如果在GONE和INVISIBLE两者都可以完成你的效果,那么你应该选择INVISIBLE。因为从源码中来看GONE需要重新的布局和通知上级View去刷新,有缓存还要清空缓存; 从视图变更开销的来说INVISIBLE要更加的划算一些,因为不需要重新刷新layout

  2. changed the title [-]View.GONE和View.INVISIBLE 有啥本质区别?[/-] [+]携程: View.GONE和View.INVISIBLE 有啥本质区别?[/+] on Nov 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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