* commit '16b4e7515d49c52df9f049f40f324d714e745459': Remove View.getBackgroundColor()
This commit is contained in:
@@ -17174,21 +17174,6 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* If the view has a ColorDrawable background, returns the color of that
|
|
||||||
* drawable.
|
|
||||||
*
|
|
||||||
* @return The color of the ColorDrawable background, if set, otherwise 0.
|
|
||||||
* @hide
|
|
||||||
*/
|
|
||||||
@ColorInt
|
|
||||||
public int getBackgroundColor() {
|
|
||||||
if (mBackground instanceof ColorDrawable) {
|
|
||||||
return ((ColorDrawable) mBackground).getColor();
|
|
||||||
}
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the background to a given resource. The resource should refer to
|
* Set the background to a given resource. The resource should refer to
|
||||||
* a Drawable object or 0 to remove the background.
|
* a Drawable object or 0 to remove the background.
|
||||||
|
|||||||
Reference in New Issue
Block a user