Merge "Deprecate Activity.setTitleColor()"
This commit is contained in:
committed by
Android (Google) Code Review
commit
cac68c3f64
@@ -2938,7 +2938,7 @@ package android.app {
|
||||
method public final void setSecondaryProgress(int);
|
||||
method public void setTitle(java.lang.CharSequence);
|
||||
method public void setTitle(int);
|
||||
method public void setTitleColor(int);
|
||||
method public deprecated void setTitleColor(int);
|
||||
method public void setVisible(boolean);
|
||||
method public final void setVolumeControlStream(int);
|
||||
method public boolean shouldUpRecreateTask(android.content.Intent);
|
||||
@@ -29320,7 +29320,7 @@ package android.view {
|
||||
method public void setLogo(int);
|
||||
method public void setSoftInputMode(int);
|
||||
method public abstract void setTitle(java.lang.CharSequence);
|
||||
method public abstract void setTitleColor(int);
|
||||
method public abstract deprecated void setTitleColor(int);
|
||||
method public void setType(int);
|
||||
method public void setUiOptions(int);
|
||||
method public void setUiOptions(int, int);
|
||||
|
||||
@@ -4598,6 +4598,17 @@ public class Activity extends ContextThemeWrapper
|
||||
setTitle(getText(titleId));
|
||||
}
|
||||
|
||||
/**
|
||||
* Change the color of the title associated with this activity.
|
||||
* <p>
|
||||
* This method is deprecated starting in API Level 11 and replaced by action
|
||||
* bar styles. For information on styling the Action Bar, read the <a
|
||||
* href="{@docRoot} guide/topics/ui/actionbar.html">Action Bar</a> developer
|
||||
* guide.
|
||||
*
|
||||
* @deprecated Use action bar styles instead.
|
||||
*/
|
||||
@Deprecated
|
||||
public void setTitleColor(int textColor) {
|
||||
mTitleColor = textColor;
|
||||
onTitleChanged(mTitle, textColor);
|
||||
|
||||
@@ -996,6 +996,7 @@ public abstract class Window {
|
||||
|
||||
public abstract void setTitle(CharSequence title);
|
||||
|
||||
@Deprecated
|
||||
public abstract void setTitleColor(int textColor);
|
||||
|
||||
public abstract void openPanel(int featureId, KeyEvent event);
|
||||
|
||||
@@ -397,6 +397,7 @@ public class PhoneWindow extends Window implements MenuBuilder.Callback {
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
public void setTitleColor(int textColor) {
|
||||
if (mTitleView != null) {
|
||||
mTitleView.setTextColor(textColor);
|
||||
|
||||
Reference in New Issue
Block a user