/**@class android.content.res.GradientColor @extends android.content.res.ComplexColor Lets you define a gradient color, which is used inside {@link android.graphics.drawable.VectorDrawable}. {@link android.content.res.GradientColor}s are created from XML resource files defined in the "color" subdirectory directory of an application's resource directory. The XML file contains a single "gradient" element with a number of attributes and elements inside. For example: <pre> <gradient xmlns:android="http://schemas.android.com/apk/res/android"> <android:startColor="?android:attr/colorPrimary"/> <android:endColor="?android:attr/colorControlActivated"/> <.../> <android:type="linear"/> </gradient> </pre> This can describe either a {@link android.graphics.LinearGradient}, {@link android.graphics.RadialGradient}, or {@link android.graphics.SweepGradient}. Note that different attributes are relevant for different types of gradient. For example, android:gradientRadius is only applied to RadialGradient. android:centerX and android:centerY are only applied to SweepGradient or RadialGradient. android:startX, android:startY, android:endX and android:endY are only applied to LinearGradient. Also note if any color "item" element is defined, then startColor, centerColor and endColor will be ignored. @hide */ var GradientColor = { /**The shader information will be applied to the native VectorDrawable's path. @hide */ getShader : function( ) {}, /**A public method to create GradientColor from a XML resource. */ createFromXml : function( ) {}, /**For Gradient color, the default color is not very useful, since the gradient will override the color information anyway. */ getDefaultColor : function( ) {}, /**Similar to ColorStateList, setup constant state and its factory. @hide only for resource preloading */ getConstantState : function( ) {}, /**Returns an appropriately themed gradient color. @param {Object {Resources.Theme}} t the theme to apply @return {Object {android.content.res.GradientColor}} a copy of the gradient color the theme applied, or the gradient itself if there were no unresolved theme attributes @hide only for resource preloading */ obtainForTheme : function( ) {}, /**Returns a mask of the configuration parameters for which this gradient may change, requiring that it be re-created. @return {Number} a mask of the changing configuration parameters, as defined by {@link android.content.pm.ActivityInfo} @see android.content.pm.ActivityInfo */ getChangingConfigurations : function( ) {}, /**Returns whether a theme can be applied to this gradient color, which usually indicates that the gradient color has unresolved theme attributes. @return {Boolean} whether a theme can be applied to this gradient color. @hide only for resource preloading */ canApplyTheme : function( ) {}, };