How can I painlessly change my app Title text color?

418
August 06, 2017, at 3:48 PM

Application UI

How do I painlessly change the text color from white to gray for my application Title? I am using Android Studio 2.3.3 and have poured through the XML files for style, color, and my activity XML files making attempts at changing the Title text color from white to gray and have not been successful doing such a simple task - it is not intuitive how to do this. Please help, thanks.

Answer 1

In your XML file, for the TextView element, add the android:textColor attribute, with the choice of your color as its value.

<TextView
 android:id..
 android:layout_width..
 android:layout_height..
 android:text=..
 android:textColor="#D3D3D3"
/>
Answer 2

For this, you need to find the AnroidManifest.xml file.

Using your IDE navigate to app -> src -> main -> AnroidManifest.xml

Option 1: If you're in android studio go inside AndroidManifest.xml and double click on android:label="@string/app_name" and it will take you to where you can change the value to whatever you want

Option2: Directly go to app -> src -> main -> res -> values -> strings.xml and change the name to whatever you want.

NOTE: Please note that it is not recommended to hard code the value of the app name like android:label="HARDCODED name" as this will break the app in case you want to include features like a translation.

Rent Charter Buses Company
READ ALSO
Different facebook login dialogs

Different facebook login dialogs

When using the facebook javascript sdk, how can I get this screen dialog:

278
TextView in ListView does not trigger onItemClick when it has OnLongClickListener set

TextView in ListView does not trigger onItemClick when it has OnLongClickListener set

I have a ListView where row items have some TextViewsOne TextView should be long clickable so I put a listener (OnLongClickListner) on it inside custom Adapter

236
Apache Cordova cannot show default splash screen images

Apache Cordova cannot show default splash screen images

I am want to show the default splash screen image when the app loadsFollowing is my config

296
Android Studio - Import Project From Gradle Error

Android Studio - Import Project From Gradle Error

My Android Studio and Gradle was working fine for me a few days ago, i don't know what changed, but now when i am trying to import a project with Gradle, i get the message:

387