0

I have a custom layout with a border for a receipt to be printed on A5 paper. I m able to get it to work but i m facing one strange issue for the text view which has borders only on the left and bottom side. As everybody uses, i have also used layer drawable as a background. On-screen it is displaying correctly i.e. have a border in the bottom and left. But in print out, i m getting a thin line on the top and right side of the view as well.

Adding screenshots for on-screen view and printed pdf.

enter image description here enter image description here

How to set the text view border so i do not get thin lines on other sides where i have not set the border?

Rajen Raiyarela
  • 5,526
  • 4
  • 21
  • 41
  • Check this our: [Is there an easy way to add a border to the top and bottom of an Android View?][1] With Love ❤️ D ❤️ [1]:https://stackoverflow.com/questions/1598119/is-there-an-easy-way-to-add-a-border-to-the-top-and-bottom-of-an-android-view – DiLDoST Aug 25 '20 at 21:15
  • Check this out : [Is there an easy way to add a border to the top and bottom of an Android View?][1]. With Love ❤️ D ❤️ [1]:https://stackoverflow.com/questions/1598119/is-there-an-easy-way-to-add-a-border-to-the-top-and-bottom-of-an-android-view – DiLDoST Aug 25 '20 at 21:17
  • Check this out : https://stackoverflow.com/questions/1598119/is-there-an-easy-way-to-add-a-border-to-the-top-and-bottom-of-an-android-view With Love ❤️ D ❤️ – DiLDoST Aug 25 '20 at 21:18
  • @WahagWadela issue is not about adding the border. The issue is in the printed output, it is also showing a thin border on the sides, the border is not added to – Rajen Raiyarela Aug 26 '20 at 04:48

0 Answers0