/**
* 判断textview的字数占几行
* @param tv
* @return
*/
private float measureTextLength(TextView tv)
{
if (paint == null)
{
paint = new Paint();
}
paint.setTextSize(tv.getTextSize());
//计算textview的宽度,此处为屏幕宽度
float tvW = mContext.getResources().getDisplayMetrics().widthPixels;
return (paint.measureText(tv.getText() + "") + 0.5f) / tvW;
}