ScreenWatermark

Additional

Language
Java
Version
N/A
Created
Aug 20, 2018
Updated
Oct 30, 2018
Owner
George Argyrakis (GeorgeArgyrakis)
Contributor
George Argyrakis (GeorgeArgyrakis)
1
Activity
Badge
Generate
Download
Source code
APK file

Show card

ScreenWatermark

A simple way to add watermarks on activities

Usage Example

@Override
protected void onCreate(Bundle savedInstanceState) {
...
    Watermark = new ScreenWatermark(this)
                     .backgroundColor(Color.argb(100,0,0,255))
                     .textColor(Color.argb(150,255,186,102))
                     .textSize(22)
                     .gravity(Gravity.TOP | Gravity.RIGHT)
                     .message("Watermark")
                     .show();'
...
}

@Override
protected void onDestroy() {
    super.onDestroy();
    // Always call this on destroy of activity to avoid memory leaks
    if (Watermark != null) {
         Watermark.dispose();
    }
}