realskyrin / FloatWindowUtils

A useful class that makes it easier to create floating windows

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

READ MORE

About

A useful class that makes it easier to create floating windows


Languages

Language:Java 100.0%