# CustomViewGroup **Repository Path**: wugao88/CustomViewGroup ## Basic Information - **Project Name**: CustomViewGroup - **Description**: 自定义ViewGroup - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-30 - **Last Updated**: 2021-08-01 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # CustomViewGroup 自定义ViewGroup实践 ### 一、 浮动布局FlowLayout 根据子view的宽高,动态布局子view在控件中的位置 ![mahua](./images/FlowLayout.png) ### 二、 状态切换布局StateSwitchLayout: 可自由切换conten/error/loading/empty的布局文件或者view,该控件采用懒加载的模式,即只有调用showXXXX方法才会add到该控件中,完全不必担心加载卡顿的问题 #### 1.content ![mahua](./images/state_content.png) #### 2.error ![mahua](./images/state_error.png) #### 3.loading ![mahua](./images/state_loading.png) #### 4.empty ![mahua](./images/state_empty.png)