Is this possible to create a new Activity( Let’s call it “ImageActivity” ) with an ImageView element and in situation when i need to show the same image in many places( Activities ), just inherit this image from “ImageActivity” ?
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.
You can use the same layout snippet to create the ImageView with identical settings in all of your Activities and pass the data pointing to the image in the Bundles that start each Activity.
Simply add the snippet to each Activity with
<merge>or a LayoutInflater, and use anR.drawable.*, a local file, a URL, etc to load the same image into this layout.