Android,linearlayout中的button控件点击无效

初学者,在一个support.v4.widget.DrawerLayout中放了个linearlayout,又在里面放了两个button,发现按钮的点击事件触发不了,(我用的android:onclick="click"),请问有方法吗
android:id="@+id/drawer_layout"
android:layout_width="match_parent"
android:layout_height="match_parent">
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@null"
android:orientation="vertical">

                <Button
                    android:id="@+id/button4"
                    android:layout_width="70dp"
                    android:layout_height="70dp"
                    android:onClick="open_door"
                    android:background="@null"
                    android:drawableTop="@drawable/home_icon"
                    android:text="门禁"
                    android:textSize="15dp" />

                <Button
                    android:id="@+id/button8"
                    android:layout_width="70dp"
                    android:layout_height="70dp"
                    android:onClick="pay_tax"
                    android:background="@null"
                    android:drawableTop="@drawable/telephone_bill_icon"
                    android:text="话费"
                    android:textSize="15dp" />

            </LinearLayout>
                            </android.support.v4.widget.DrawerLayout>

是不是存在控件的嵌套或者没有注册事件处理程序

比如类似这个 https://blog.csdn.net/u012037685/article/details/42520819

你为每个按钮调用了setOnClickListener方法设置OnClickListener了吗?最好把这部分代码发上来。只把layout布局发上来不好判断问题原因。

1、该onButtonClick事件在activity中的访问修饰符是否为public
2、API的level是否是4以上的