Merge "Deprecate Activity.setTitleColor()"

This commit is contained in:
Alan Viverette
2013-11-15 23:47:53 +00:00
committed by Android (Google) Code Review
4 changed files with 15 additions and 2 deletions

View File

@@ -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);

View File

@@ -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);

View File

@@ -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);

View File

@@ -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);