Last active
August 6, 2020 16:38
-
-
Save surajsau/3b624a02e814e0347fbf01ba006f397b to your computer and use it in GitHub Desktop.
Toolbar.setTitleTextAppearance implementation in AOSP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Sets the text color, size, style, hint color, and highlight color | |
* from the specified TextAppearance resource. | |
*/ | |
public void setTitleTextAppearance(Context context, @StyleRes int resId) { | |
mTitleTextAppearance = resId; | |
if (mTitleTextView != null) { | |
mTitleTextView.setTextAppearance(context, resId); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment