I can change background color, but how can I change the text color of Gridview content?
Asked
Active
Viewed 6,051 times
1
-
https://stackoverflow.com/questions/22944674/text-color-by-programmatically-created-grid-view-content – Samir Alakbarov Nov 13 '18 at 21:08
-
[Look at this question's answer](https://stackoverflow.com/questions/22944674/text-color-by-programmatically-created-grid-view-content) – Samir Alakbarov Nov 13 '18 at 21:09
1 Answers
5
GridView is just a layout control. You want to change the color of the component that you are putting inside of the GridView - probably a TextView. Try TextView.setTextColor().

Peter
- 669
- 5
- 14
-
10x. I'm using "ArrayAdapter
adapter" and now i'm changing his text color layout – David Jul 31 '12 at 00:45 -
Do the android:textColor="" inside your layout xml file for the adapter. Hope this will help – Karesh A Jul 31 '12 at 01:14