Now in a new xml drawable file add the following code that contains the AnimationList which will be responsible to change the background from one gradient to the other. For example, many window managers allow the screen background to be specified as a gradient. Creating an Android Gradient background in Android Studio is achieved by creating an ‘xml’ drawable resource file and setting the activity or widget background as that drawable file i.e, ‘ android:background: “@drawable/name_of_file” ‘. Creating an Android Gradient background in Android Studio is achieved by creating an ‘xml’ drawable resource file and setting the activity or widget background as that drawable file i.e. For example:-> gradient… Home Mobile Android Gradient Background in Android. Here we will use the gradient background for button: Here we will use the gradient background for TextView: Here we will use the gradient background for ImageView: Here we will use the gradient background for SeekBar: In just 3 simple steps we have integrated and shown you the basic example for creating a Gradient Drawable in your android app. android:centerColor: This color will come in the center of the screen. here we are going to create toolbar with gradient background that will match with status color. android:angle: It is a special angle and works only with the multiple of 45 including 0. Animated gradient background can be implemented in android app easily using XML and java code. Android Simple Button -->