Either common redshank or spotted redshank. Would need better photo (especially of bill) to be sure. Check your full-size photo.If there's only red at the base of the lower mandible, it's spotted. I can't tell from this photo.
It's probably common redshank though, since the spotted is very rare in Sri Lanka.