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' -

Making Empty C++ Project: General exception (Exception from HRESULT:0x80131500) Visual Studio Community 2015 -

How to fix java warning for "The value of the local variable is not used " -