Click here to Skip to main content
15,901,205 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I know to add image to any activity. But is there any possibility to add a Watermark of my logo to each screen/activity ?

What I have tried:

XML
<ImageView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:src="@drawable/silver"
        android:layout_marginTop="120dp"
        />


I could insert an Image to my activity but is it possible to make this image my Watermark logo at the background of all activity ?
Posted
Updated 16-Nov-16 21:30pm

1 solution

You need to create a canvas object then draw on top of that. Canvas would be of size of the screen and so you can then measure the size for watermark bitmap. Then render it as a background image in the activity.

How might I add a watermark effect to an image in Android? - Stack Overflow[^]
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900