Skip to content

Fix broken picker layout on small screens #711

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

Merged
merged 14 commits into from
Jul 25, 2017
Merged

Fix broken picker layout on small screens #711

merged 14 commits into from
Jul 25, 2017

Conversation

SUPERCILEX
Copy link
Collaborator

@samtstern With the addition of the GitHub provider, the main auth picker layout looked really bad. This PR fixes that with ConstraintLayout. Yay!!! 😄 🚀 🎉

I also wrapped the auth buttons in a ScrollView so they are guaranteed to be usable.

Old New
screenshot_20170513-110820 screenshot_20170513-111209
screenshot_20170513-110935 screenshot_20170513-111223
screenshot_20170513-110939 screenshot_20170513-111235
screenshot_20170513-110945 screenshot_20170513-111242

New layout edge cases

No logo Minimum providers
screenshot_20170513-112353 screenshot_20170513-112422

@SUPERCILEX SUPERCILEX mentioned this pull request May 13, 2017
@samtstern
Copy link
Contributor

@SUPERCILEX thank you for this! I want to hold this until after 2.0, this is clearly an improvement but I am wondering if we can do even better (esp for the scrolling buttons part). Once 2.0 goes out I will have some UX people take a look and we can put this into 2.1 (or whatever the next version is)

@SUPERCILEX
Copy link
Collaborator Author

@samtstern yeah, it would be nice to have designers look at this (I don't know about you, but UX isn't my strong suit 😂).

@SUPERCILEX SUPERCILEX changed the base branch from version-2.0.0-dev to version-2.1.0-dev June 13, 2017 01:02
@SUPERCILEX SUPERCILEX changed the base branch from version-2.1.0-dev to version-2.0.0-dev June 13, 2017 01:05
@SUPERCILEX SUPERCILEX changed the base branch from version-2.0.0-dev to version-2.1.0-dev June 13, 2017 01:05
…-layout

# Conflicts:
#	auth/src/main/res/layout-land/auth_method_picker_layout.xml
#	auth/src/main/res/layout/auth_method_picker_layout.xml
#	auth/src/main/res/layout/include_auth_method_picker_logo.xml
…-layout

# Conflicts:
#	.travis.yml
#	gradle/wrapper/gradle-wrapper.jar
#	gradle/wrapper/gradle-wrapper.properties
@SUPERCILEX
Copy link
Collaborator Author

SUPERCILEX commented Jun 15, 2017

@samtstern I know you said you wanted designers to take a look at this, but in the meantime I feel like any improvement is better than none... Especially since you can now have 5 providers with phone auth which looks like 💩 and is completely unusable in landscape mode. Oops! 😀

@SUPERCILEX
Copy link
Collaborator Author

@samtstern lol now that I'm trying to break the picker, I've found more 💩😂. If we enable accessibility settings to boost the text size, the following happens both with and without this PR:
screenshot_20170615-151139

I'll try to submit a PR fixing that at some point soon.

…-layout

# Conflicts:
#	auth/src/main/java/com/firebase/ui/auth/ui/idp/AuthMethodPickerActivity.java
@SUPERCILEX
Copy link
Collaborator Author

@samtstern Merged! 😄 Dunno if you read my previous comment, but this PR should really be merged to make the picker layout look nice when using all the providers. The screenshot with GitHub oauth is how it looks with phone auth since we now have 5 providers.

…-layout

# Conflicts:
#	auth/src/main/res/layout-land/auth_method_picker_layout.xml
@SUPERCILEX
Copy link
Collaborator Author

@samtstern gentle bump

@samtstern
Copy link
Contributor

@SUPERCILEX thanks for bumping this, will take a look soon. Good candidate for 2.1.1.

@samtstern samtstern added this to the 2.1.1 milestone Jul 18, 2017
@SUPERCILEX SUPERCILEX changed the base branch from version-2.1.0-dev to master July 18, 2017 18:20
@SUPERCILEX SUPERCILEX changed the base branch from master to version-2.1.1-dev July 21, 2017 01:15
…-layout

# Conflicts:
#	auth/src/main/res/layout-land/fui_auth_method_picker_layout.xml
#	auth/src/main/res/layout/fui_auth_method_picker_layout.xml
#	auth/src/main/res/layout/fui_include_auth_method_picker_logo.xml
#	auth/src/main/res/values-sw360dp/dimens.xml
#	auth/src/main/res/values/dimens.xml
#	auth/src/main/res/values/styles.xml
Signed-off-by: Alex Saveau <[email protected]>
Signed-off-by: Alex Saveau <[email protected]>
@SUPERCILEX
Copy link
Collaborator Author

@samtstern Merged! 😄

I also fixed the word wrapping while I was at it:

Old New
image image

@samtstern
Copy link
Contributor

Thanks for merging everything into this. We will still need some follow up improvements (ScrollView is not ideal) but it's certainly better than what we have.

This is the worst I could do to it. Nexus 4, split screen, landscape:
image

@samtstern samtstern merged commit 8a4bb24 into firebase:version-2.1.1-dev Jul 25, 2017
@SUPERCILEX SUPERCILEX deleted the picker-layout branch July 25, 2017 15:45
@SUPERCILEX
Copy link
Collaborator Author

@samtstern Yeah, we need designers cuz I can't think of anything better than ScrollView 😢😆.

For your case, I think we can set a minWidth and wrap the buttons in a ScrollView (again 😢).

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

Successfully merging this pull request may close these issues.

2 participants