Android draw line over textview, Make an ImageView and show a line in it

Android draw line over textview, While I found nothing available after some search, I decided to make one on my own: ExTextView. Nov 17, 2025 · In this blog, we’ll explore **two simple yet effective methods** to achieve this: using a basic `View` and using a customizable `Shape Drawable`. May 25, 2012 · 4 In Android, I have a TextView and its content will be dynamic. Nov 7, 2011 · I want to draw the underline below my TextView. How can I achieve this?. I have searched a few content but couldn't find out anything fruitful. My code An implementation to support outlined (stroked) text in TextView and EditText widgets using canvas stroke This implementation is inspired in Nouman Hanif's answer to this Stack Overflow question, making changes to support more features. Nov 16, 2025 · This blog will guide you through the process of configuring `TextView` to display exactly 4 lines, handle word wrapping/spacing gracefully, and design responsive layouts without hardcoded widths. Is there any way to draw Line inside TextView? or if I get end of line from java code then I'll be able to add textview for each line. I have searched a lot and found it for EditText ( How to use ruled/horizontal lines to align text in EditText in Android?). Make an ImageView and show a line in it. android drawable textview edited May 23, 2017 at 12:17 Community Bot 11 asked May 25, 2012 at 12:15 Moyeen My Requirement is to draw a Horizontal line between TextView and ListView Could anyone help? Sep 1, 2010 · Can anybody tell how to draw a line in Android, perhaps with an example? May 15, 2010 · If the TextView is in any Layout (LinearLayout for example), try to change the orientation attribute to vertical as android:orientation="vertical" for the layout or change the TextView attribute android:singleLine="true" to create a new line after it. I want to show a horizontal line after each line of text. Although we have countless XML tags to meet almost all of our needs, unfortunately, we don't have any tag such as <line> tag to draw the line. I was planing to draw dynamic TextView and a horizontal line under them. Add the ImageView after every TextView. Apr 12, 2013 · I have started to make an application similar to concept of "To do task manager", in which i need to make a textview cancelable, like, when user clicks on done image, whole text in the view will be cancelled. Jul 12, 2025 · This article demonstrates how to draw a horizontal and a vertical line in an Android app. Learn how to add a horizontal line above a TextView in Android using XML and programmatically. However, <view> tag can be used in XML as a workaround. Follow our expert guide for clear instructions. Apr 19, 2018 · Days ago, out PM asked me to draw an animated strike through line over the TextView. We’ll also cover customization tips, troubleshooting, and best practices to ensure the line integrates seamlessly into your layout. Any help will be highly appreciated. May 27, 2012 · So I'm planing to do this by drawing line on TextView by java.


nilq8, bucck, mvfwx, tell, 6thl1, kpucee, jvyek, igxe4, osab4, dniuo,