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

Add chips demo #23

Merged
merged 21 commits into from Aug 5, 2016
Merged

Add chips demo #23

merged 21 commits into from Aug 5, 2016

Conversation

xrigau
Copy link

@xrigau xrigau commented Aug 3, 2016

Adds a demo showing how to implement a 'chips' view using 2 libraries:

  • Chips library from EyeEm: Doesn't seem to be flexible enough for us so didn't do much on this one.
  • Splitwise TokenAutoComplete: Decided to see if I was able to implement what we need with this library (entry of tags but we need to show the hint if the user isn't typing something and also delete tag by tag but selecting it first - couldn't get this to work yet)
Main screen Eyeem Splitwise
main eyeem splitwise


@Override
public void afterTextChanged(Editable s) {

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

comment empty methods

@xrigau
Copy link
Author

xrigau commented Aug 4, 2016

Ready for a re-review 👀 @blundell @florianmski 🎉


repositories {
maven {
url 'http://dl.bintray.com/novoda/maven'
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

temporary - waiting for the lib to be accepted in jcenter

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

might be worth a code comment in case we forget 😄

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we've been accepted 🎉 will change

@Override
protected void onTextChanged(Editable text) {
String rawText = text.toString();
if (!textContainsHint(text) && (rawText.isEmpty() || containsSpansOnly(rawText))) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can be simplified at all? in name

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 done in the last commit (or at least tried!)

@blundell
Copy link
Contributor

blundell commented Aug 4, 2016

legit 👍

}

/**
* According to the documentation it's modifying the text from this method is an error so we don't need to worry.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Something seems wrong in the wording, same for above

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 will fix

@florianmski
Copy link
Contributor

Small nits otherwise LGTM 👍

@xrigau
Copy link
Author

xrigau commented Aug 5, 2016

Comments addressed! 🎉

@florianmski
Copy link
Contributor

@florianmski florianmski merged commit 6109f9b into master Aug 5, 2016
@florianmski florianmski deleted the add_chips_demo branch August 5, 2016 10:38
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.

None yet

4 participants