android - TextInputLayout error text padding -


i using textinputlayout appcompatedittext having custom xml shape based background appcompatedittext. whenever set error , error line starts beginning of layout. there way give padding error line.

enter image description here

you can reference error textview using:

textview textview = (textview) inputlayout.findviewbyid(android.support.design.r.id             .textinput_error); 

then can layout params work with.


Comments

Popular posts from this blog

android - Why am I getting the message 'Youractivity.java is not an activity subclass or alias' -

python - How do I create a list index that loops through integers in another list -

c# - “System.Security.Cryptography.CryptographicException: Keyset does not exist” when reading private key from remote machine -