AOD/LS - Large clock animations

Match latest specs for large/small clock transitions, including a fade
and y-axis shift.

Bug: 172360102
Test: manual, show/hide all notifications
Change-Id: I8d756bfbc524481d7b8835946acf05aa4893a1d5
This commit is contained in:
Matt Pietal
2020-12-16 15:39:32 -05:00
parent 2d0c5b8abe
commit 17a635e514
3 changed files with 56 additions and 24 deletions

View File

@@ -21,7 +21,6 @@ import android.content.ContentResolver;
import android.content.res.Resources;
import android.provider.Settings;
import android.text.format.DateFormat;
import android.util.TypedValue;
import android.view.View;
import android.view.ViewGroup;
import android.widget.FrameLayout;
@@ -146,11 +145,10 @@ public class KeyguardClockSwitchController extends ViewController<KeyguardClockS
}
/**
* Updates clock's text
* Apply dp changes on font/scale change
*/
public void onDensityOrFontScaleChanged() {
mView.setTextSize(TypedValue.COMPLEX_UNIT_PX,
mResources.getDimensionPixelSize(R.dimen.widget_big_font_size));
mView.onDensityOrFontScaleChanged();
}
/**