Is this a TableLayout? If it is, how to make this underline under first row and different color per row?

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Assuming it is derived from a
ViewGroup(object containing children, for exampleTableLayoutorListView), it is easy to access all of its children (rows) and do something with it. For example alternating backgrounds:Same goes for changing the first row, just use
myGroup.getChildAt(0)and modify that particular child.