Saturday, November 14, 2015

forms - Android Material Design: Should text field and button have same size?


I'm making a login view using material design guidelines, which makes me confused whether the text field should be and the login button must have the same size?


Login screen



Answer



In Material Design Guidelines you can find the answer for this. You can set the width in two ways:




  • Set a button’s width to be the size of the text label, with 16dp padding on the left and right

  • Set the button’s relative position to the responsive layout grid




enter image description here enter image description here


No comments:

Post a Comment

technique - How credible is wikipedia?

I understand that this question relates more to wikipedia than it does writing but... If I was going to use wikipedia for a source for a res...