how to change text color on android phone

Best answer


To set the color to the TextView widget,callsetTextColor () methodon the TextView widget reference with specific color passed as argument. setTextColor () method takes int as argument. Use android.graphics.Color class to get an integer for a given color.

People also ask


  • How to change font color of textview in Android?

  • This example demonstrates how do I change font color of TextView in android. Step 1 鈭?Create a new project in Android Studio, go to File 鈬?New Project and fill all required details to create a new project. Step 2 鈭?Add the following code to res/layout/activity_main.xml Step 3 鈭?Add the following code to src/MainActivity.java

  • How to change the text color of the menu item in Android?

  • How to change the text color of Menu item in Android? This example demonstrates how do I change the text color of the menu item in android. Step 1 鈭?Create a new project in Android Studio, go to File 鈬?New Project and fill all required details to create a new project. Step 2 鈭?Add the following code to res/layout/activity_main.xml.

  • How do I change the color of my accent on Android?

  • Go back to the main Settings menu once again. Then, tap on the System selection. Then, tap on the Advanced option on the menu. Then, scroll down and tap on the Accent color part of the menu.

  • How do I change the colour of text messages background?

  • How do I change the colour of text messages background of white and blue for the actual messages. 07-08-2018 09:26 PM in You can change the background of the Messaging app by opening the app tapping the 3 dots in the top right Settings Background.

    Leave a Reply

    Your email address will not be published.