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

Transparent search panel #4

Closed
FunnyDevs opened this issue Apr 23, 2016 · 5 comments
Closed

Transparent search panel #4

FunnyDevs opened this issue Apr 23, 2016 · 5 comments
Assignees
Milestone

Comments

@FunnyDevs
Copy link

Hi! Is possibile to have an option to render transparent searchable panel??? thanks

@Mauker1
Copy link
Owner

Mauker1 commented Apr 23, 2016

Yes, it is! I'll look into that.

@Mauker1 Mauker1 self-assigned this Apr 23, 2016
@Mauker1 Mauker1 added this to the 1.1.0 milestone Apr 23, 2016
@FunnyDevs
Copy link
Author

Ok, thanks a lot!

Mauker1 added a commit that referenced this issue Apr 25, 2016
Testing for the presence of a physical keyboard.
Content Provider will be abandoned because of issue #7.
@Mauker1
Copy link
Owner

Mauker1 commented Apr 25, 2016

Solved with the last commit. To adjust the transparency, you can either use:

// From 0.0 to 1.0 (0% to 100%).
searchView.adjustTintAlpha(float factor);

or

// From 0 to 255.
searchView.setTintAlpha(200)

This will be available on the next release.

@Mauker1 Mauker1 closed this as completed Apr 25, 2016
@hishambakr
Copy link

I used a better approach than using alpha by putting this color inside my app :)

<color name="search_layover_bg">@color/black_50</color>

@Mauker1
Copy link
Owner

Mauker1 commented Apr 25, 2016

Well, that's definitely another good option! 👍

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

No branches or pull requests

3 participants