How can I take the element myButton from this layout xml
Need to ask R.id.mainLayout Linear Layout is in other xml file or the same ?
View view = LayoutInflater.from(context).inflate(R.layout.my_layout); Button button = (Button) view.findViewById(R.id.myButton); .... aGroupView.addView(button);