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

Color Overlay View #10

Closed
danieldesouzadev opened this issue Jun 8, 2017 · 10 comments
Closed

Color Overlay View #10

danieldesouzadev opened this issue Jun 8, 2017 · 10 comments

Comments

@danieldesouzadev
Copy link

Hi, is there any way to customize the background color when the menu is open? That is, that white with alpha?

Congratulations on the lib... tks!

@markormesher
Copy link
Owner

At the moment there isn't, but that wouldn't be too hard to add. I'll take a look at implementing it shortly. Thanks for the suggestion!

@danieldesouzadev
Copy link
Author

Tks to your respond, I really need this implementation ...

@danieldesouzadev
Copy link
Author

danieldesouzadev commented Jun 8, 2017

Uwoooo... only:

In: FloatingActionButton:

public void setBackgroundCover(int colour) { savedBgCover = colour; coverView.setBackgroundColor(colour); }

`
private int savedBgCover = 0x99ffffff;

@Override
protected Parcelable onSaveInstanceState() {
	Bundle bundle = new Bundle();
	bundle.putBoolean("shown", shown);
	bundle.putInt("savedIconResId", savedIconResId);
	bundle.putInt("savedBgColour", savedBgColour);
	bundle.putInt("savedBgCover", savedBgCover);
	bundle.putParcelable("SUPER", super.onSaveInstanceState());
	return bundle;
}`

@danieldesouzadev
Copy link
Author

Thanks ... one question, if I synchronize the gradle in my project, do I get this update?

@markormesher
Copy link
Owner

You'll need to wait for me to do a release first, then update the version number. I'll comment here when it's done.

@danieldesouzadev
Copy link
Author

danieldesouzadev commented Jun 8, 2017

I'm waiting ... congratulations ...

@danieldesouzadev
Copy link
Author

If anyone needs it right away:

fab.findViewById(uk.co.markormesher.android_fab.fab.R.id.cover).setBackgroundColor(0x99000000);

@markormesher
Copy link
Owner

^ That won't work properly. It will change the colour, but you'll lose the radial expansion effect and get a square block of colour. You need to change the colour of the background drawable, which is a shape.

The new version has already been released. Change your Gradle dependency to version 1.3.2 and you'll get the new feature.

@danieldesouzadev
Copy link
Author

It's perfect ... thank you ...

@markormesher
Copy link
Owner

No problem

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