How can I define middle-lined(strikethrough) text in an Android layout xml file?
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.
To strike through, you can use a background image to create the strikethrough effect:
Where strike_through drawable is a 9-patch image that keeps a line through the middle. This is the easiest way to implement it.
or you can do it programatically as this.