简体   繁体   中英

how to get the position(Y - coordinate) of textview in linearlayout

In my Linearlayout, multiple textviews are present. I need to find out the position(Y-cooridinate) of particular textview. Is it possible? If yes, then please provide some reference.

Any help or guidance to resolve the issue will be well appreciated.

您可以使用以下方法获取TextView的Y坐标

textView.getY();

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM