I currently have a TextView sitting below a ListView and would like to theme the TextView so that it looks like an item in the list (e.g. with top and bottom gray border). What’s the best way to accomplish this?
Share
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.
Create a drawable xml file to create a shape with a gradient background.
textview_background.xml:
save in your drawable directory and refer to as
in your layout for a background of what you want to use. Text view, layout, button…
This should give you something close to what your looking for I think.
The colors used in the gradient are triple hex, i think you can use normal hex.