![Android studio update as user enters text edittext](https://cdn3.cdnme.se/5447227/9-3/1_64e61dfaddf2b33c615a3cd3.png)
![android studio update as user enters text edittext android studio update as user enters text edittext](https://venturebeat.com/wp-content/uploads/2018/04/2018042818564600-bd0eb87287646f662eb9875856fe05ab.jpg)
![android studio update as user enters text edittext android studio update as user enters text edittext](https://www.pauljadam.com/androida11y/img/android-studio.png)
Again the color should be defined in hex encoding or as a reference to another resource. background: sets the background color of the edit text.
![android studio update as user enters text edittext android studio update as user enters text edittext](https://i.stack.imgur.com/SQtFZ.jpg)
Another way to do this, is to set the attribute inputType into textPassword.Īs we mentioned we can use the components of TextView, where some of them are defined to our example:
![android studio update as user enters text edittext android studio update as user enters text edittext](https://koenig-media.raywenderlich.com/uploads/2014/08/android-studio-listview-emulator.png)
It is worth to mention that there are the respective functions too, where we can call in the activity source code in order to change the characteristics of the view. Now lets explain the code above and the specific attributes that we defined in the XML file. Open res/layout/main_activity.xml, go to the respective xml tab and paste the following. Also we will create two buttons in order to show how we can transfer the values of EditText in other activities or display them on the screen. In this example we are going to add some EditTexts where each one includes different attributes.
![Android studio update as user enters text edittext](https://cdn3.cdnme.se/5447227/9-3/1_64e61dfaddf2b33c615a3cd3.png)