获取textview的结束坐标

时间:2016-11-24 11:51:37

标签: android textview ratingbar

我想在框架布局中获取textview的结束坐标,然后在文本末尾添加评级栏。我尝试了textview.getright()和textview.getbottom(),但它给了我0值。请帮忙。check this example image 这就是我想要实现的目标image link

1 个答案:

答案 0 :(得分:0)

int w = image.getWidth();//x
int h = image.getHeight();//y

你可以使用x,y;

找到点

起点始终为0

相关问题