public void updateResources() { mIconSize = mContext .getResources() .getDimensionPixelSize(com.android.internal.R.dimen.status_bar_icon_size); mIconHPadding = mContext.getResources().getDimensionPixelSize(R.dimen.status_bar_icon_padding); mClockController.updateFontSize(); }
private void applyIconTint() { for (int i = 0; i < mStatusIcons.getChildCount(); i++) { StatusBarIconView v = (StatusBarIconView) mStatusIcons.getChildAt(i); v.setImageTintList(ColorStateList.valueOf(mIconTint)); } mSignalCluster.setIconTint(mIconTint, mDarkIntensity); mMoreIcon.setImageTintList(ColorStateList.valueOf(mIconTint)); mBatteryMeterView.setDarkIntensity(mDarkIntensity); mClockController.setTextColor(mIconTint); mCarrier.setTextColor(mIconTint); mNetworkTraffic.setDarkIntensity(mDarkIntensity); applyNotificationIconsTint(); }
public void setClockVisibility(boolean visible) { mClockController.setVisibility(visible); }