Closed
Bug 1042189
Opened 10 years ago
Closed 10 years ago
Implement interaction designs for selecting a suggestion/history item
Categories
(Firefox for Android Graveyard :: Search Activity, defect, P1)
Tracking
(firefox35 verified)
VERIFIED
FIXED
Firefox 34
Tracking | Status | |
---|---|---|
firefox35 | --- | verified |
People
(Reporter: antlam, Assigned: Margaret)
References
Details
Attachments
(3 files, 2 obsolete files)
Opening up this bug to track the interactive design and animations work for the suggestions step in the search flow. In particular, how interactions park will work when a user selects a suggestion/history item. Then, they'd be presented with the results page (web view for now).
Reporter | ||
Updated•10 years ago
|
Blocks: fennec-search-activity
Assignee | ||
Updated•10 years ago
|
Assignee: nobody → margaret.leibovic
Assignee | ||
Comment 2•10 years ago
|
||
Lucas, any suggestions about this best way to approach this?
Flags: needinfo?(lucasr.at.mozilla)
Comment 3•10 years ago
|
||
(In reply to :Margaret Leibovic from comment #2) > Lucas, any suggestions about this best way to approach this? I'd probably keep a top level TextView that could get positioned to overlap with the TextView in the clicked search suggestion row and then animated to the final position in the input entry. Then hide the animated TextView and set the input entry's text with the new content. Give this a try to see how the code would look like.
Flags: needinfo?(lucasr.at.mozilla)
Assignee | ||
Updated•10 years ago
|
Priority: -- → P1
Reporter | ||
Comment 4•10 years ago
|
||
Margaret made a great catch, the starting y position was way below the actual label so this video has that updated.
Attachment #8460369 -
Attachment is obsolete: true
Assignee | ||
Comment 5•10 years ago
|
||
Here's a WIP PR: https://github.com/ericedens/FirefoxSearch/pull/32 And here's a build to try: http://people.mozilla.org/~mleibovic/search-anim.apk Adding these transitions challenge our current modular fragment design, since this transition could be initiated from different fragments. I just stuck the logic in MainActivity for now, but I had to hack some public APIs into SearchFragment, so we should think about how we might want to update the interfaces between these different fragments.
Assignee | ||
Comment 6•10 years ago
|
||
Things to address in other bugs: * Fine-tuning interpolator * Search bar animation (we can do this in bug 1043027) * Reverse animation when hitting back button (I'm not sure if we can even do this as indicated in the mock-up, since we would have to store where the original suggestion was, and we have to count on that suggestion still being in that same spot) * Refactoring interfaces to make transition logic less fragile Once we land this patch, we can divide and conquer on the follow-up issues.
Attachment #8464133 -
Flags: review?(eric.edens)
Comment 7•10 years ago
|
||
Comment on attachment 8464133 [details] [diff] [review] Animation for selecting a suggestion/history item Review of attachment 8464133 [details] [diff] [review]: ----------------------------------------------------------------- This looks great! We talked about this on IRC, but for bugzilla: I tried this on Gingerbread S2, and the animations look nice. At the end of the animation, though, the webview is hidden -- perhaps the animationText and/or the animationCard are still visible? So we should probably figure that out before landing. (Whether disabling animations in Gingerbread, or working around whatever is causing the issue) ::: mobile/android/search/java/org/mozilla/search/AcceptsSearchQuery.java @@ +28,5 @@ > + /** > + * Interface to specify search suggestion animation details. > + */ > + public interface SuggestionAnimation { > + public Rect getStartBounds(); I like this SuggestionAnimation interface :) ::: mobile/android/search/java/org/mozilla/search/MainActivity.java @@ +170,5 @@ > + } > + }); > + > + set.setDuration(SUGGESTION_TRANSITION_MS); > + set.setInterpolator(new AccelerateDecelerateInterpolator()); Can AccelerateDecelerateInterpolator be cached in a static final?
Attachment #8464133 -
Flags: review?(eric.edens) → feedback+
Assignee | ||
Comment 8•10 years ago
|
||
This fixes the gingerbread issues. I built this on top of my patch for bug 1045819.
Attachment #8464133 -
Attachment is obsolete: true
Attachment #8464253 -
Flags: review?(eric.edens)
Comment 9•10 years ago
|
||
Comment on attachment 8464253 [details] [diff] [review] (v2) Animation for selecting a suggestion/history item Review of attachment 8464253 [details] [diff] [review]: ----------------------------------------------------------------- Looks good!
Attachment #8464253 -
Flags: review?(eric.edens) → review+
Assignee | ||
Comment 10•10 years ago
|
||
https://hg.mozilla.org/integration/fx-team/rev/beb0aaf0804b PR here is up to date: https://github.com/ericedens/FirefoxSearch/pull/32
Assignee | ||
Comment 11•10 years ago
|
||
I have the power! https://github.com/ericedens/FirefoxSearch/commit/b6e86ccad0a42061ec970e9fcd7b063eec85150e
Comment 12•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/beb0aaf0804b
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 34
Comment 13•10 years ago
|
||
Verified as fixed in build 35.0a1 (2014-09-08); Devices: Google Nexus 7 (Android 4.4.4); Samsung Galaxy R (Android 2.3.4).
Status: RESOLVED → VERIFIED
status-firefox35:
--- → verified
Updated•7 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•