I would like to have an activity which would consist of a close button i.e ‘x’ at the right top corner closing the activity. Any examples on this will be very much helpful.
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.
make an
Activitywith Transparent theme in manifest like this:and then define layout like this:
and define a background for your close
Buttonin drawable like this: