MrFuFuFu / ChildLayout

处理LinearLayout,两层绘制后,无法绘制的情况

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ChildLayout

描述

为了解决当我们使用 LinearLayout 布局的时候使用了 weight 属性后,再嵌套LinearLayout,又一次在子 LinearLayout 中使用 weight 属性,会导致实际的 View 无法被成功绘制的解决方案,具体实际的内容可以看我的博客

项目地址:LinearLayout设置 weight 无法绘制的问题

describe

In order to solve when we use when LinearLayout layout After using the weight attribute, then nested LinearLayout, again using the weight attribute in the child LinearLayout, and will lead to child View solution can not be drawn, in particular the actual content can read my blog

Preview

preview1 preview2

More about me

License

Copyright 2015 MrFu

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

 http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

About

处理LinearLayout,两层绘制后,无法绘制的情况


Languages

Language:Java 100.0%