Set Background Color of Android View Programmatically
While you are generating or displaying content through list views, it is sometimes you need to make a zebra-styled rows or coloring the view of row background into a custom color depending on row’s content. This snippets is applicable to any android view which is inheriting View class. So to change or modify view’s background color, it is as easy as the following code on your activity class: View v Continue reading Set Background Color of Android View Programmatically