Decrease QuoteView reveal animation duration to 150ms.
This commit is contained in:
parent
17c5b858b5
commit
3c5ad519dd
1 changed files with 4 additions and 2 deletions
|
@ -62,7 +62,8 @@ public class InputPanel extends LinearLayout
|
||||||
|
|
||||||
private static final String TAG = InputPanel.class.getSimpleName();
|
private static final String TAG = InputPanel.class.getSimpleName();
|
||||||
|
|
||||||
private static final int FADE_TIME = 150;
|
private static final long QUOTE_REVEAL_DURATION_MILLIS = 150;
|
||||||
|
private static final int FADE_TIME = 150;
|
||||||
|
|
||||||
private RecyclerView stickerSuggestion;
|
private RecyclerView stickerSuggestion;
|
||||||
private QuoteView quoteView;
|
private QuoteView quoteView;
|
||||||
|
@ -209,7 +210,8 @@ public class InputPanel extends LinearLayout
|
||||||
int finalHeight,
|
int finalHeight,
|
||||||
@Nullable AnimationCompleteListener onAnimationComplete)
|
@Nullable AnimationCompleteListener onAnimationComplete)
|
||||||
{
|
{
|
||||||
ValueAnimator animator = ValueAnimator.ofInt(originalHeight, finalHeight);
|
ValueAnimator animator = ValueAnimator.ofInt(originalHeight, finalHeight)
|
||||||
|
.setDuration(QUOTE_REVEAL_DURATION_MILLIS);
|
||||||
|
|
||||||
animator.addUpdateListener(animation -> {
|
animator.addUpdateListener(animation -> {
|
||||||
ViewGroup.LayoutParams params = view.getLayoutParams();
|
ViewGroup.LayoutParams params = view.getLayoutParams();
|
||||||
|
|
Loading…
Add table
Reference in a new issue