tools:ignore="Suspicious0dp"

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/csdn_loveQingQing/article/details/83151193

                       

           tools:ignore="Suspicious0dp"

           当你来查找这行代码是什么意思的时候,我想您应该跟我犯了一样的错误

           您在写xml布局的时候,当前LinearLayout的父类布局横定向还是书定向相冲突了!

解释:

            1 父类LinearLayout   定向为竖向,而您非要横向等分父类的高:

   <LinearLayout
            android:layout_width="0dp"
            android:layout_height="match_parent"
            android:layout_weight="1.7"
            android:orientation="horizontal"
            android:gravity="center_vertical"
            android:layout_marginLeft="@dimen/twenty"
            >


            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="0dp"
                android:layout_weight="1"
                tools:ignore="Suspicious0dp">



            </LinearLayout>
            
        </LinearLayout>

               发现了就悄悄的改吧……

               为什么要悄悄的,心里还没点B数么

猜你喜欢

转载自blog.csdn.net/csdn_loveQingQing/article/details/83151193