自定义Android对话框的显示位置
2010-05-28 15:09:00 来源:WEB开发网核心提示:if (spaceToWrapAt >= 0) {wrappedLine.append(str.substring(offset, spaceToWrapAt));wrappedLine.append(newLineStr);offset = spaceToWrapAt + 1;} else {wrappedLi
if (spaceToWrapAt >= 0) {
wrappedLine.append(str.substring(offset, spaceToWrapAt));
wrappedLine.append(newLineStr);
offset = spaceToWrapAt + 1;
} else {
wrappedLine.append(str.substring(offset));
offset = inputLineLength;
}
}
}
}
// Whatever is left in line is short enough to just pass through
wrappedLine.append(str.substring(offset));
return wrappedLine.toString();
}
更多精彩
赞助商链接