Available Methods
- getColor ( )
- key_actionBarDefaultIcon ( )
- key_listSelector ( )
- ThemeInfo ( )
- key_windowBackgroundWhite ( )
- key_actionBarDefault ( )
- key_actionBarDefaultTitle ( )
- key_windowBackgroundGray ( )
- key_windowBackgroundWhiteGrayText2 ( )
- key_avatar_backgroundViolet ( )
- dividerPaint ( )
- key_actionBarDefaultSelector ( )
- key_windowBackgroundWhiteBlackText ( )
- avatar_savedDrawable ( )
- key_divider ( )
- key_windowBackgroundWhiteGrayText3 ( )
- key_windowBackgroundGrayShadow ( )
- getCurrentTheme ( )
- key_avatar_backgroundGreen ( )
- key_avatar_backgroundOrange ( )
- key_avatar_backgroundRed ( )
- key_avatar_backgroundPink ( )
- key_windowBackgroundWhiteBlueHeader ( )
- key_windowBackgroundWhiteValueText ( )
- getCurrentNightTheme ( )
- key_windowBackgroundWhiteGrayText4 ( )
- avatar_photoDrawable ( )
- key_avatar_backgroundCyan ( )
- key_switchThumb ( )
- key_emptyListPlaceholder ( )
- key_progressCircle ( )
- key_windowBackgroundWhiteHintText ( )
- hasThemeKey ( )
- key_radioBackgroundChecked ( )
- avatar_broadcastDrawable ( )
- key_avatar_text ( )
- setDrawableColor ( )
- key_windowBackgroundWhiteRedText5 ( )
- key_windowBackgroundWhiteInputFieldActivated ( )
- setSelectorDrawableColor ( )
- key_windowBackgroundWhiteRedText4 ( )
- key_windowBackgroundWhiteBlueText ( )
- key_switchTrackChecked ( )
- key_actionBarDefaultSubmenuBackground ( )
- key_fastScrollText ( )
- key_graySectionText ( )
- hasWallpaperFromTheme ( )
- isCustomTheme ( )
- key_groupcreate_sectionShadow ( )
- key_graySection ( )
- key_radioBackground ( )
- setRippleDrawableForceSoftware ( )
- autoNightSunriseTime ( )
- ThemeAccent ( )
- key_switchTrack ( )
- createDialogsResources ( )
- changeColorAccent ( )
- key_windowBackgroundWhiteGrayIcon ( )
- key_windowBackgroundWhiteInputField ( )
- createRoundRectDrawable ( )
- key_login_progressOuter ( )
- key_windowBackgroundWhiteLinkText ( )
- key_avatar_backgroundBlue ( )
- autoNightScheduleByLocation ( )
- key_avatar_backgroundInProfileBlue ( )
- key_switchThumbChecked ( )
- getEventType ( )
- key_checkboxSquareBackground ( )
- key_windowBackgroundWhiteRedText2 ( )
- MessageDrawable ( )
- key_actionBarDefaultSearchPlaceholder ( )
- key_contextProgressOuter2 ( )
- key_switch2Check ( )
- key_avatar_actionBarSelectorBlue ( )
- key_windowBackgroundWhiteGrayText ( )
- key_chat_attachAudioIcon ( )
- dialogs_botDrawable ( )
- key_windowBackgroundWhiteGrayLine ( )
- key_chats_actionBackground ( )
- key_chats_menuTopBackground ( )
- key_fastScrollActive ( )
- key_groupcreate_checkbox ( )
- chat_fileStatesDrawable ( )
- key_stickers_menu ( )
- key_avatar_backgroundActionBarBlue ( )
- OverrideWallpaperInfo ( )
- key_chat_attachGalleryIcon ( )
- key_actionBarDefaultSearch ( )
- key_chats_menuTopBackgroundCats ( )
- key_chats_verifiedBackground ( )
- isWallpaperMotion ( )
- chat_roundVideoShadow ( )
- createCircleDrawableWithIcon ( )
- selectedAutoNightType ( )
- key_contextProgressInner2 ( )
- key_groupcreate_spanText ( )
- key_groupcreate_sectionText ( )
- setCombinedDrawableColor ( )
- dialogs_searchNameEncryptedPaint ( )
- setCurrentNightTheme ( )
- AUTO_NIGHT_TYPE_SYSTEM
- refreshThemeColors ( )
- dialogs_verifiedDrawable ( )
- key_featuredStickers_addedIcon ( )
Related Classes
- android.content.Context
- android.view.View
- android.widget.TextView
- android.content.Intent
- android.view.ViewGroup
- android.os.Build
- android.widget.ImageView
- android.graphics.Canvas
- android.text.TextUtils
- android.graphics.Paint
- android.view.MotionEvent
- android.graphics.drawable.Drawable
- android.widget.LinearLayout
- android.content.SharedPreferences
- android.widget.FrameLayout
- android.view.Gravity
- android.util.TypedValue
- android.graphics.PorterDuff
- android.animation.ObjectAnimator
- android.view.inputmethod.EditorInfo
- androidx.recyclerview.widget.RecyclerView
- androidx.recyclerview.widget.LinearLayoutManager
- android.graphics.PorterDuffColorFilter
- org.telegram.messenger.MessagesController
- org.telegram.messenger.SharedConfig
Java Code Examples for org.telegram.ui.ActionBar.Theme#isWallpaperMotion()
The following examples show how to use
org.telegram.ui.ActionBar.Theme#isWallpaperMotion() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ThemePreviewActivity.java From Telegram-FOSS with GNU General Public License v2.0 | 5 votes |
@Override public boolean onFragmentCreate() { NotificationCenter.getGlobalInstance().addObserver(this, NotificationCenter.emojiDidLoad); if (screenType == SCREEN_TYPE_ACCENT_COLOR) { NotificationCenter.getGlobalInstance().addObserver(this, NotificationCenter.didSetNewWallpapper); } if (screenType != SCREEN_TYPE_PREVIEW || accent != null) { if (SharedConfig.getDevicePerfomanceClass() == SharedConfig.PERFORMANCE_CLASS_LOW) { int w = Math.min(AndroidUtilities.displaySize.x, AndroidUtilities.displaySize.y); int h = Math.max(AndroidUtilities.displaySize.x, AndroidUtilities.displaySize.y); imageFilter = (int) (w / AndroidUtilities.density) + "_" + (int) (h / AndroidUtilities.density) + "_f"; } else { imageFilter = (int) (1080 / AndroidUtilities.density) + "_" + (int) (1920 / AndroidUtilities.density) + "_f"; } maxWallpaperSize = Math.min(1920, Math.max(AndroidUtilities.displaySize.x, AndroidUtilities.displaySize.y)); NotificationCenter.getGlobalInstance().addObserver(this, NotificationCenter.wallpapersNeedReload); NotificationCenter.getGlobalInstance().addObserver(this, NotificationCenter.wallpapersDidLoad); TAG = DownloadController.getInstance(currentAccount).generateObserverTag(); if (patterns == null) { patterns = new ArrayList<>(); MessagesStorage.getInstance(currentAccount).getWallpapers(); } } else { isMotion = Theme.isWallpaperMotion(); } return super.onFragmentCreate(); }
Example 2
Source File: ThemePreviewActivity.java From Telegram with GNU General Public License v2.0 | 5 votes |
@Override public boolean onFragmentCreate() { NotificationCenter.getGlobalInstance().addObserver(this, NotificationCenter.emojiDidLoad); if (screenType == SCREEN_TYPE_ACCENT_COLOR) { NotificationCenter.getGlobalInstance().addObserver(this, NotificationCenter.didSetNewWallpapper); } if (screenType != SCREEN_TYPE_PREVIEW || accent != null) { if (SharedConfig.getDevicePerfomanceClass() == SharedConfig.PERFORMANCE_CLASS_LOW) { int w = Math.min(AndroidUtilities.displaySize.x, AndroidUtilities.displaySize.y); int h = Math.max(AndroidUtilities.displaySize.x, AndroidUtilities.displaySize.y); imageFilter = (int) (w / AndroidUtilities.density) + "_" + (int) (h / AndroidUtilities.density) + "_f"; } else { imageFilter = (int) (1080 / AndroidUtilities.density) + "_" + (int) (1920 / AndroidUtilities.density) + "_f"; } maxWallpaperSize = Math.min(1920, Math.max(AndroidUtilities.displaySize.x, AndroidUtilities.displaySize.y)); NotificationCenter.getGlobalInstance().addObserver(this, NotificationCenter.wallpapersNeedReload); NotificationCenter.getGlobalInstance().addObserver(this, NotificationCenter.wallpapersDidLoad); TAG = DownloadController.getInstance(currentAccount).generateObserverTag(); if (patterns == null) { patterns = new ArrayList<>(); MessagesStorage.getInstance(currentAccount).getWallpapers(); } } else { isMotion = Theme.isWallpaperMotion(); } return super.onFragmentCreate(); }