阅读背景:

为什么我在Android中的setContentView()之后无法获得自定义视图引用?

来源:互联网 

activity_main.xml:

<LinearLayout xmlns:android="https://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
    android:id="@+id/root_view"
   >
     <com.study.jy.views.ButtonGridView
         android:id="@+id/btn_grid"
         android:layout_width="match_parent"
         android:layout_height="match_parent"
        >
     </com.study.jy.views.ButtonGridView>

</LinearLayout>
<LinearLayout xmlns:androi



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: