mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-03 17:36:49 +00:00
Scale icons from search to make app icons big like AA -> workspace
when dragging from search. To scale the icon during dragging (instead of long press) I created a scale variable within DragOptions so that right before dragStart gets called in DragController.java (in callOnDragStart()) the dragview scales before dragging.. * note: the scale from search is 1.687 and the scale from allApps is 1.107 - included searchResult and smallSearchResult - Added animation for scaling icon (used Interpolators.EMPHASIZED 500ms as suggested by motion designer) - Cancel animation when drag finishes bug: 222666176 test: Manual - after: https://drive.google.com/file/d/1ZZHnXlzdTxlM-RUIdJ6EOYkPPg6tCUxC/view?usp=sharing before: https://drive.google.com/file/d/1NpBz3kT_slHXtpXObr_G8K6SZYG9_bLX/view?usp=sharing Change-Id: I01309a3be928987ba00422ad947b80a3df865973
This commit is contained in:
@@ -942,6 +942,11 @@ public class BubbleTextView extends TextView implements ItemInfoUpdateReceiver,
|
||||
return mIconSize;
|
||||
}
|
||||
|
||||
public boolean isDisplaySearchResult() {
|
||||
return mDisplay == DISPLAY_SEARCH_RESULT ||
|
||||
mDisplay == DISPLAY_SEARCH_RESULT_SMALL;
|
||||
}
|
||||
|
||||
private void updateTranslation() {
|
||||
super.setTranslationX(mTranslationForReorderBounce.x + mTranslationForReorderPreview.x
|
||||
+ mTranslationForMoveFromCenterAnimation.x
|
||||
|
||||
Reference in New Issue
Block a user