Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
RazorSai opened this issue Apr 28, 2017 · 2 comments

Comments

@RazorSai
Copy link

RazorSai commented Apr 28, 2017

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

@Cesarsk
Copy link

Cesarsk commented Apr 28, 2017

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

@RazorSai
Copy link
Author

RazorSai commented May 8, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants