MaterialIntroView icon indicating copy to clipboard operation
MaterialIntroView copied to clipboard

Overlay circle not focusing on FloatingActionButton (getbase floating action button library)

Open RazorSai opened this issue 8 years ago • 2 comments

Hi,

The issue i am facing is that the overlay circle does not focus on the floatingactionmenu I've attached screenshot for the same.

This is the following code that i have used:-

`private void loadIntroScreen(View view, String message, String usage_id, int delay, ShapeType shapeType){

    new MaterialIntroView.Builder(getActivity())
            .setConfiguration(AppConstant.defaultConfig())
            .enableIcon(false)
            .setDelayMillis(delay)
            .setInfoText(message)
            .setShape(shapeType)
            .setTarget(view)
            .setUsageId(usage_id)
            .setListener(this)
            .show();
}

@Override
public void onUserClicked(String s) {

    switch (s){
        case "timeline":
            loadIntroScreen(editlecture, "Click on the icon to show","edit_lecture", AppConstant.INTRO_DELAY, ShapeType.CIRCLE);
            break;
    }

}

public static MaterialIntroConfiguration defaultConfig(){

    MaterialIntroConfiguration materialIntroConfiguration = new MaterialIntroConfiguration();
    materialIntroConfiguration.setMaskColor(R.color.backcolor_transparent);
    materialIntroConfiguration.setFocusGravity(FocusGravity.CENTER);
    materialIntroConfiguration.setFocusType(Focus.MINIMUM);
    materialIntroConfiguration.setDismissOnTouch(true);
    materialIntroConfiguration.setFadeAnimationEnabled(true);
    materialIntroConfiguration.setDotViewEnabled(false);
    return materialIntroConfiguration;
}

`

this is the library i am using for fab menu :- https://github.com/futuresimple/android-floating-action-button.

Thank you in advance!

screenshot_1493380154

RazorSai avatar Apr 28 '17 11:04 RazorSai

That happens to me too when I try to focus a Floating Button, hope to solve it ASAP

Cesarsk avatar Apr 28 '17 14:04 Cesarsk

I tried a workaround for this. First I showed my intro view on the floating action button and after user clicks on the intro and moves to other one, at that time i add all my menu items to the fab.It is working fine now. Hope it helps you and the issue is fixed.

RazorSai avatar May 08 '17 06:05 RazorSai