本文整理了Java中android.graphics.Rect.toString
方法的一些代码示例,展示了Rect.toString
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Rect.toString
方法的具体详情如下:
包路径:android.graphics.Rect
类名称:Rect
方法名:toString
暂无
代码示例来源:origin: robolectric/robolectric
@Implementation
protected void drawBitmap(Bitmap bitmap, Rect src, Rect dst, Paint paint) {
describeBitmap(bitmap, paint);
StringBuilder descriptionBuilder = new StringBuilder();
if (dst != null) {
descriptionBuilder.append(" at (").append(dst.left).append(",").append(dst.top)
.append(") with height=").append(dst.height()).append(" and width=").append(dst.width());
}
if (src != null) {
descriptionBuilder.append( " taken from ").append(src.toString());
}
appendDescription(descriptionBuilder.toString());
}
代码示例来源:origin: robolectric/robolectric
@Implementation
protected void drawBitmap(Bitmap bitmap, Rect src, RectF dst, Paint paint) {
describeBitmap(bitmap, paint);
StringBuilder descriptionBuilder = new StringBuilder();
if (dst != null) {
descriptionBuilder.append(" at (").append(dst.left).append(",").append(dst.top)
.append(") with height=").append(dst.height()).append(" and width=").append(dst.width());
}
if (src != null) {
descriptionBuilder.append( " taken from ").append(src.toString());
}
appendDescription(descriptionBuilder.toString());
}
代码示例来源:origin: google/santa-tracker-android
p.getTextBounds(e.text, 0, e.text.length(), bounds);
Logger.d("Text bounds: " + bounds.toString());
代码示例来源:origin: sxpl/FaceAC
@Override
public String toString() {
return bound.toString();
}
}
代码示例来源:origin: tony-Shx/Swface
@Override
public String toString() {
return bound.toString();
}
}
代码示例来源:origin: ShuKeW/TVRecyclerViewAndFocus
protected void setPaddingRect(Rect paddingRect) {
Log.d(TAG, "setPaddingRect:" + paddingRect.toString());
this.currentPaddingRect = paddingRect;
}
代码示例来源:origin: ShuKeW/TVRecyclerViewAndFocus
public void show() {
isHide = false;
// setVisibility(VISIBLE);
Rect oldFocusEffectRect = new Rect();
this.getGlobalVisibleRect(oldFocusEffectRect);
Log.e(TAG, "show:" + oldFocusEffectRect.toString());
}
代码示例来源:origin: org.robolectric/framework
@Implementation
public void drawBitmap(Bitmap bitmap, Rect src, Rect dst, Paint paint) {
describeBitmap(bitmap, paint);
StringBuilder descriptionBuilder = new StringBuilder();
if (dst != null) {
descriptionBuilder.append(" at (").append(dst.left).append(",").append(dst.top)
.append(") with height=").append(dst.height()).append(" and width=").append(dst.width());
}
if (src != null) {
descriptionBuilder.append( " taken from ").append(src.toString());
}
appendDescription(descriptionBuilder.toString());
}
代码示例来源:origin: org.robolectric/shadows-core
@Implementation
public void drawBitmap(Bitmap bitmap, Rect src, RectF dst, Paint paint) {
describeBitmap(bitmap, paint);
StringBuilder descriptionBuilder = new StringBuilder();
if (dst != null) {
descriptionBuilder.append(" at (").append(dst.left).append(",").append(dst.top)
.append(") with height=").append(dst.height()).append(" and width=").append(dst.width());
}
if (src != null) {
descriptionBuilder.append( " taken from ").append(src.toString());
}
appendDescription(descriptionBuilder.toString());
}
代码示例来源:origin: org.robolectric/shadows-framework
@Implementation
protected void drawBitmap(Bitmap bitmap, Rect src, RectF dst, Paint paint) {
describeBitmap(bitmap, paint);
StringBuilder descriptionBuilder = new StringBuilder();
if (dst != null) {
descriptionBuilder.append(" at (").append(dst.left).append(",").append(dst.top)
.append(") with height=").append(dst.height()).append(" and width=").append(dst.width());
}
if (src != null) {
descriptionBuilder.append( " taken from ").append(src.toString());
}
appendDescription(descriptionBuilder.toString());
}
代码示例来源:origin: org.robolectric/shadows-core
@Implementation
public void drawBitmap(Bitmap bitmap, Rect src, Rect dst, Paint paint) {
describeBitmap(bitmap, paint);
StringBuilder descriptionBuilder = new StringBuilder();
if (dst != null) {
descriptionBuilder.append(" at (").append(dst.left).append(",").append(dst.top)
.append(") with height=").append(dst.height()).append(" and width=").append(dst.width());
}
if (src != null) {
descriptionBuilder.append( " taken from ").append(src.toString());
}
appendDescription(descriptionBuilder.toString());
}
代码示例来源:origin: org.robolectric/framework
@Implementation
public void drawBitmap(Bitmap bitmap, Rect src, RectF dst, Paint paint) {
describeBitmap(bitmap, paint);
StringBuilder descriptionBuilder = new StringBuilder();
if (dst != null) {
descriptionBuilder.append(" at (").append(dst.left).append(",").append(dst.top)
.append(") with height=").append(dst.height()).append(" and width=").append(dst.width());
}
if (src != null) {
descriptionBuilder.append( " taken from ").append(src.toString());
}
appendDescription(descriptionBuilder.toString());
}
代码示例来源:origin: limboemu/limbo
@Override
public String toString() {
StringBuilder sb=new StringBuilder();
sb.append("{\n");
for (int i=0; i<getSize(); i++)
{
sb.append(get(i).toString());
sb.append("\n");
}
sb.append("}");
return sb.toString();
}
}
代码示例来源:origin: org.robolectric/shadows-core-v23
@Implementation
public void drawBitmap(Bitmap bitmap, Rect src, Rect dst, Paint paint) {
describeBitmap(bitmap, paint);
StringBuilder descriptionBuilder = new StringBuilder();
if (dst != null) {
descriptionBuilder.append(" at (").append(dst.left).append(",").append(dst.top)
.append(") with height=").append(dst.height()).append(" and width=").append(dst.width());
}
if (src != null) {
descriptionBuilder.append( " taken from ").append(src.toString());
}
appendDescription(descriptionBuilder.toString());
}
代码示例来源:origin: org.robolectric/shadows-framework
@Implementation
protected void drawBitmap(Bitmap bitmap, Rect src, Rect dst, Paint paint) {
describeBitmap(bitmap, paint);
StringBuilder descriptionBuilder = new StringBuilder();
if (dst != null) {
descriptionBuilder.append(" at (").append(dst.left).append(",").append(dst.top)
.append(") with height=").append(dst.height()).append(" and width=").append(dst.width());
}
if (src != null) {
descriptionBuilder.append( " taken from ").append(src.toString());
}
appendDescription(descriptionBuilder.toString());
}
代码示例来源:origin: com.github.japgolly.android.test/robolectric
@Implementation
public void drawBitmap(Bitmap bitmap, Rect src, Rect dst, Paint paint) {
describeBitmap(bitmap, paint);
appendDescription(" at (" +
dst.left + "," + dst.top +
") with height=" + dst.height() +
" and width=" + dst.width() +
" taken from " + src.toString());
}
代码示例来源:origin: com.albedinsky.android/ui
/**
*
*/
private void configureDrawableBounds() {
this.ensureDrawableBounds();
if (mImageDrawable != null) {
mDrawableBounds.set(mImageDrawable.getBounds());
} else {
mDrawableBounds.set(0, 0, 0, 0);
}
this.configureAccelerationInfo();
if (UiConfig.DEBUG_LOG_ENABLED) {
Log.d(TAG, "Drawable bounds configured to(" + mDrawableBounds.toString() + ").");
}
}
代码示例来源:origin: ShuKeW/TVRecyclerViewAndFocus
/**
* 当在执行动画或者滑动的时候持续更新焦点框位置
*
* @param focusView
* @param padding
*/
private void continueChangeFocusEffect(View focusView, Rect padding) {
Log.d(TAG, "continueChangeFocusEffect:" + focusView.toString());
getGlobalVisibleRectOfDecorView(focusView, globalVisibleRect);
globalVisibleRect.left -= padding.left;
globalVisibleRect.right += padding.right;
globalVisibleRect.top -= padding.top;
globalVisibleRect.bottom += padding.bottom;
Log.d(TAG, "continueChangeFocusEffect:" + globalVisibleRect.toString());
changeFocusEffectLocation(globalVisibleRect);
}
代码示例来源:origin: BlinkID/blinkid-android
@Override
public void onAutofocusStarted(Rect[] rects) {
if (rects == null) {
Log.i(TAG, "Autofocus started with focusing areas being null");
} else {
Log.i(TAG, "Autofocus started");
for (Rect rect : rects) {
Log.d(TAG, "Focus area: " + rect.toString());
}
}
}
代码示例来源:origin: BlinkID/blinkid-android
@Override
public void onAutofocusStopped(Rect[] rects) {
if (rects == null) {
Log.i(TAG, "Autofocus stopped with focusing areas being null");
} else {
Log.i(TAG, "Autofocus stopped");
for (Rect rect : rects) {
Log.d(TAG, "Focus area: " + rect.toString());
}
}
}
内容来源于网络,如有侵权,请联系作者删除!