Skip to content

AfterFX/FloatingTool

Repository files navigation

This is fork

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

Android floating app

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages