textview - Increasing text size adds extra padding to text in
By A Mystery Man Writer
Description
I am facing a simple problem. I am increasing textSize in xml. As I increase textSize there is some extra padding coming all around the text. I don't want that.
Here is my code:
<TextView
![textview - Increasing text size adds extra padding to text in](https://miro.medium.com/v2/resize:fit:648/1*IzUDe-gzmc96Ct5Pg-8v6A.png)
Android Autosizing TextViews, their pitfalls, and what to do about them, by Fred Porciúncula
![textview - Increasing text size adds extra padding to text in](https://georgegarside.com/blog/ios/swiftui-equal-scaling-text-size-to-fit/swift-equal-scaling-text-to-fit.png)
SwiftUI equal scaling text size to fit - George Garside
![textview - Increasing text size adds extra padding to text in](https://courses.cs.washington.edu/courses/cse340/20wi/slides/wk02/img/layout/design-view.png)
Layout
![textview - Increasing text size adds extra padding to text in](https://cdn.tutsplus.com/cdn-cgi/image/width=360/mobile/uploads/legacy/Android-SDK_Basic-Font-Sizes/Figure3.png)
Android User Interface Design: Basic Font Sizes
![textview - Increasing text size adds extra padding to text in](https://miro.medium.com/v2/resize:fit:1400/0*GYos0OJZ4gbtl1A9.png)
Android Improved Localization With Custom TextView Effects, by Anton Begeima
![textview - Increasing text size adds extra padding to text in](https://miro.medium.com/v2/resize:fit:2000/1*_ol5_PeStiN6baCVzWwtrA.jpeg)
Android Improved Localization With Custom TextView Effects, by Anton Begeima
Text fields - Material Design
![textview - Increasing text size adds extra padding to text in](https://user-images.githubusercontent.com/7459254/78574459-06543c80-77f8-11ea-984e-e7c7015bc11c.png)
Snackbar] Can't change top and bottom padding of snackbar's text view · Issue #1179 · material-components/material-components-android · GitHub
![textview - Increasing text size adds extra padding to text in](https://blog.codemagic.io/uploads/covers/codemagic-blog-designing-complex-ui-using-android-constraintlayout.png)
Designing complex UI using Android ConstraintLayout
![textview - Increasing text size adds extra padding to text in](https://strapi.dhiwise.com/uploads/618fa90c201104b94458e1fb_64f589c249e07c4a6f9c1355_Flutter_Text_OG_Imge_0507656acf.jpg)
What You Need to Know About the Flutter Text Widget
![textview - Increasing text size adds extra padding to text in](https://cdn-images-1.medium.com/max/1600/1*lo9oD-Ng2nt20zo-goKFTQ.gif)
SwiftUI TextField: a closer look
![textview - Increasing text size adds extra padding to text in](https://learn-attachment.microsoft.com/api/attachments/178247-image.png?platform=QnA)
Cant increase font size of textview - Microsoft Q&A
![textview - Increasing text size adds extra padding to text in](https://media.geeksforgeeks.org/wp-content/uploads/20201214163448/ss3.png)
How to Add a TextView with Rounded Corner in Android? - GeeksforGeeks
![textview - Increasing text size adds extra padding to text in](https://media.geeksforgeeks.org/wp-content/uploads/20210209204652/Padding.png)
Concept of Padding in Android - GeeksforGeeks
![textview - Increasing text size adds extra padding to text in](https://images987.s3-us-west-1.amazonaws.com/preview_blog_image_2022-10-256357e57216c92.png)
How to Put Text beside a Picture in Your Email Signature
from
per adult (price varies by group size)