mez.pahlan
mez.pahlan

Reputation: 1093

What do the red and green dots mean on the property symbol in Structure view in Android Studio

What do the red and green dots in the lower left of the symbol indicate?

Red and green dots on symbols

The documentation for symbols in IntelliJ / Android Studio does not mention their meaning.

Upvotes: 3

Views: 514

Answers (1)

David Amey
David Amey

Reputation: 1411

Green = getter, red = setter.

If I have

private boolean mBacon = false;

public boolean getBacon() {
    return mBacon;
}

public void setBacon(boolean b) {
    mBacon = b;
}

I get

mmm bacon

Upvotes: 6

Related Questions