0

I have a view and I have two Material Textfields in it. The problem is when I have to show detail Message or when the I click on text field the placeholder moves up. So if the space between fields is less then the animated placeholder text gets overlapped with above text field.

So far I have kept enough space between fields to rid of this issue but it does not look good moreover, in Android when the user clicks on the textfield and its animated text shows the textfield automatically moves some points down or up to cater the inner spacing issue.

Default View with without detail message and placeholder

placeholder and error message

9
  • You can adjust placeholderVerticalOffset on the texfields Commented Jul 27, 2018 at 11:05
  • I know that but I want it to animate. placeholderVerticalOffset will have an impact on the distance between placeholder and TextField when animated Commented Jul 27, 2018 at 11:35
  • You want to move the textField down with animation when it is first responder or has text? Commented Jul 27, 2018 at 11:39
  • @OrkhanAlikhanov when it becomes first responder. Main purpose is to accommodate the "animated PlaceHolder". Otherwise it overlaps with other text fields Commented Jul 27, 2018 at 11:40
  • How do you layout the textFields? Probably using autolayout? Can you share code? Commented Jul 27, 2018 at 11:41

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.