
Note that we are going to implement this project using the Kotlin language.Note: This tutorial assumes you’re familiar with the basics of Flutter. A sample GIF is given below to get an idea about what we are going to do in this article.

The default color should be the last element which is used when color for a specific state is not defined. The root element of the color state list is a selector and the item element is defined for each state that you want to define the color by using color and alpha attributes.

The color state list is defined in XML and saved under the res/color folder. One should remember the color state list can be used anywhere, where color is used. For Example, There are many states of Buttons like (pressed, focussed, or none of them ) and other widgets states like enable, checkable, checked, etc, Using Color State List is a nice way to change the color of the button without using shape drawables or custom images. Android Projects - From Basic to Advanced LevelĬolorStateList is an object which can define in an XML file that can be used to apply different colors on widgets (such as Buttons, etc) depending on the state of Widgets to which it is being applied.How to Send Data From One Activity to Second Activity in Android?.MVVM (Model View ViewModel) Architecture Pattern in Android.Replace a substring with another string in Julia – replace() Method.Counting number of elements in an array in Julia – count() Method.Find maximum element along with its index in Julia – findmax() Method.Getting the maximum value from a list in Julia – max() Method.Concatenation of arrays in Julia – cat(), vcat(), hcat() and hvcat() Methods.Will Julia Become the Empress of the Artificial Intelligence World?.


GATE CS Original Papers and Official Keys.
