GeorgeArgyrakis / Watermark

A simple way to add watermark on activities

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ScreenWatermark

A simple way to add watermarks on activities

Alt text

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();
    }
}
    

About

A simple way to add watermark on activities

License:Other


Languages

Language:Java 100.0%