I have already developed a dialog box in android and I am using two buttons. But I don’t know how to call another XML layout when a button is clicked. Please help me.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
What you want to do is call an activity with an xml layout assigned to it. Take a look at this http://developer.android.com/guide/topics/ui/dialogs.html#ShowingADialog and you’ll want to put something like this in an onclick event.