Transient Taskbar's Background animation

Added fold/unfold animation to the background of transient taskbar.
Note: The animation has only been added to transient taskbar

Test: manual
Fixes: 273929852
Change-Id: I2f35b6a1157341744d9c7b8306d7dbd8490702dc
This commit is contained in:
dshivangi
2023-03-22 18:26:12 +00:00
committed by Shivangi Dubey
parent b828ba1386
commit 4c38fada4f
4 changed files with 36 additions and 0 deletions

View File

@@ -200,4 +200,13 @@ public class TaskbarDragLayer extends BaseDragLayer<TaskbarActivityContext> {
}
return super.dispatchKeyEvent(event);
}
/**
* Sets the width percentage to inset the transient taskbar's background from the left and from
* the right.
*/
public void setBackgroundHorizontalInsets(float insetPercentage) {
mBackgroundRenderer.setBackgroundHorizontalInsets(insetPercentage);
invalidate();
}
}