Bug? Padding has changed on Text Edit fields in Lollipop

Discussion in 'Bugs & wishlist' started by RVP, Jun 1, 2015.

  1. RVP

    RVP Active Member Licensed User

    Client I did a custom app for called as they had some of their users update their phones (Samsung Galaxy Note 3) to Lollipop. This caused a number of issues, one of them being that it appears the padding around the text has increased. This is causing the text to get cut-off at either the top, or bottom, depending on the alignment. I had to reduce the font size significantly in some cases to get the text to display properly again. This isn't really long term solution as I need the larger size for readability. Is there anyway to change the padding? I have added
    SetApplicationAttribute(android:theme, "@android:style/Theme.Holo")
    to the manifest, but that didn't seem to make any difference.
  2. klaus

    klaus Expert Licensed User

    To set the padding, have a look at ViewUtils in Code Snippets.
    'Sets the padding of a view
    'v = view
    'Left, Top, Right, Bottom padding values in pixels
    Sub setPadding(v As View, Left As Int, Top As Int, Right As Int, Bottom As Int)
    Dim jo = v As JavaObject
    "setPadding"Array As Object(Left, Top, Right, Bottom))
    End Sub
    Peter Simpson and RandomCoder like this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice