Skip to content

A useful class that makes it easier to create floating windows

Notifications You must be signed in to change notification settings

realskyrin/FloatWindowUtils

Repository files navigation

A useful class that makes it easier to create floating windows

How to use

View contentView = LayoutInflater.from(context).inflate(R.layout.fv_test,null);
    
FloatWindow floatWindow = new FloatWindow.With(this, layout)
            .setModality(false)
            .setMoveAble(true)
            .setAutoAlign(true)
            .setAlpha(0.5f)
            .setWidth(WindowManager.LayoutParams.WRAP_CONTENT)
            .setHeight(WindowManager.LayoutParams.MATCH_PARENT)
            .create();
// Displayed on the screen
floatWindow.show();
// Remove from the screen
floatWindow.remove();

Example

About

A useful class that makes it easier to create floating windows

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages