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.
You can use
float y = mTextView.getY();
http://developer.android.com/reference/android/widget/TextView.html
您可以使用以下方法获取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.