Is it possible to extend an existing activity changing only its layout (eg. colors)?
Because i’m using a shared library and i shouldn’t modify the activity since others are using it.
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.
You would have to put that new Activity in the manifest and then make sure the intent resolution goes to your child class. Your not just going to be able to extend the activity and have it called without fixing this (at least I don’t think so).
You can also just set the background color in java or xml.