Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change color of selection in Android Studio editor?

How can I change the color of a selected text in the Android Studio Editor?
I want to change only the color highlight of the selected line(s) in Android Studio and not the overall background.
How can I do that?

like image 532
Jim Avatar asked Sep 27 '15 11:09

Jim


People also ask

How do I change the color of my android studio?

Add the colors to your app In Android Studio, open colors. xml (app > res > values > colors. xml). After the existing colors, define a color resource named green using the value selected above, #1B5E20 .

Can I change image color android studio?

We can change the color of an image programmatically in Android using the following setColorFilter method through the ImageView reference object.

How do you change the color of the tool bar on android?

Just go to res/values/styles.edit the xml file to change the color of action bar.


Video Answer


2 Answers

For Android Studio Version 3.2

This is the same answer as the earlier accepted answer, but updated because of recent changes to Android Studio (ok, Android is a moving target, but here's the latest as of November 2018).

Preferences -> Editor -> Color Scheme -> General -> Editor -> Selection Background

Then click on the hexadecimal block to the right of "Background" to pull up a color chooser.

like image 152
SMBiggs Avatar answered Sep 22 '22 08:09

SMBiggs


Go to Preferences -> Editor -> Colors and Fonts -> General, then change the "Selection Background" setting. See below:

Image showing preferences panel

Make sure you apply your changes; then you should see them reflected both in the preferences window and in your live code:

Image showing applied background color

like image 32
stkent Avatar answered Sep 23 '22 08:09

stkent