Leo Technology Stack Leo Technology Stack
首页
  • Android
  • Web
  • SpringBoot
  • 数据库
  • Docker
  • Netty
  • KubeSphere
  • Linux
  • Android Framework
  • 开源库
思维
  • 面试
  • 投资理财
  • 杂事记录
  • 索引

    • 分类
    • 标签
    • 归档
  • 开源项目

    • Advance Markdown
    • AnLibrary (opens new window)

Leo

不知名的架构师
首页
  • Android
  • Web
  • SpringBoot
  • 数据库
  • Docker
  • Netty
  • KubeSphere
  • Linux
  • Android Framework
  • 开源库
思维
  • 面试
  • 投资理财
  • 杂事记录
  • 索引

    • 分类
    • 标签
    • 归档
  • 开源项目

    • Advance Markdown
    • AnLibrary (opens new window)
  • Android布局详解

    • View
      • ViewGroup
        • LinearLayout
          • RelativeLayout
            • FrameLayout
              • TableLayout
                • AbsoluteLayout
                  • GridLayout
                    • ConstraintLayout
                      • CoordinatorLayout
                        • MotionLayout
                        • notes
                        • 前端
                        • Android
                        Leo
                        2021-04-22

                        Android布局详解

                        Android 提供了多种布局,如下

                        • LinearLayout
                        • RelativeLayout
                        • FrameLayout
                        • TableLayout
                        • AbsoluteLayout
                        • GridLayout
                        • ConstraintLayout 重要
                        • MotionLayout
                        • CoordinatorLayout 重要

                        这些布局均继承 ViewGroup,而 ViewGroup 继承自 View,如下图

                        graph TD; View-->ViewGroup; ViewGroup-->LinearLayout; ViewGroup-->RelativeLayout; ViewGroup-->FrameLayout; ViewGroup-->AbsoluteLayout; ViewGroup-->GridLayout; ViewGroup-->ConstraintLayout; ConstraintLayout-->MotionLayout; LinearLayout-->TableLayout; ViewGroup-->CoordinatorLayout;
                        stateDiagram-v2 state Activity { state Window{ state DecorView{ [*] --> NumLockOff3 } } }

                        # View

                        # ViewGroup

                        # LinearLayout

                        # RelativeLayout

                        # FrameLayout

                        # TableLayout

                        # AbsoluteLayout

                        # GridLayout

                        # ConstraintLayout 重要

                        # CoordinatorLayout 重要

                        # MotionLayout

                        编辑此页 (opens new window)
                        #Android
                        上次更新: 2022-04-27, 19:56:11
                        Theme by Leo | Copyright © 2016-2022 Leo | MIT License
                        • 跟随系统
                        • 浅色模式
                        • 深色模式
                        • 阅读模式