butterKnife出现ArrayIndexOutOfBoundsException

    xiaoxiao2021-03-25  141

     

    <LinearLayout android:id="@+id/top_left__ll" android:layout_width="wrap_content" android:layout_height="match_parent" android:gravity="center" android:orientation="horizontal"> <ImageView android:id="@+id/top_left_img" android:layout_width="@dimen/space_25" android:layout_height="@dimen/space_25" android:layout_marginLeft="@dimen/space_10" android:layout_marginRight="@dimen/space_10" android:contentDescription="@string/app_name" android:src="@mipmap/ic_launcher" />

    一般是因为布局文件的命名中出现两个下划线导致。比如上面的top_left__ll。

    转载请注明原文地址: https://ju.6miu.com/read-8570.html

    最新回复(0)