Not able to access ViewStub'child
问题 I am trying to use VIEWSTUB inside the merge tag.and its working well.I'm able to catch onclicklistenr of ViewStub's parent button.But i want to access the button that is inside the viewstub. 1.Main xml: <merge> <LinearLayout> <Button></Button> <ViewStub></ViewStub> </LinearLayout> </merge> 2.view stub layout <Button android:id="@+id/button_cancel" android:layout_width="wrap_content" android:layout_height="wrap_content" android:minWidth="100dip" android:text="Next" /> <ImageView android