1. so. The first thing you need to make sure, is that for the content you want to change color on has an ID where you can reference to your program. Something like a android:id=”@+id/name” so you can find it under resources.
2. LinearLayout ly = findViewById(R.id.name)