中易网

错误是 在赋值 A(:) = B 中,A 和 B 中的元素数目必须相同 怎么修改啊

答案:1  悬赏:10  
解决时间 2021-01-16 01:31
  • 提问者网友:世勋超人
  • 2021-01-15 17:32
错误是 在赋值 A(:) = B 中,A 和 B 中的元素数目必须相同 怎么修改啊
最佳答案
  • 二级知识专家网友:傲气稳了全场
  • 2021-01-15 18:12
public int getTextWidth(String text, Paint paint) {
Rect bounds = new Rect();
paint.getTextBounds(text, 0, text.length(), bounds);
int width = bounds.left + bounds.width();
return width;
}
public int getTextHeight(String text, Paint paint) {
Rect bounds = new Rect();
paint.getTextBounds(text, 0, text.length(), bounds);
int height = bounds.bottom + bounds.height();
return height;
}
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息!
大家都在看
推荐信息