本文整理了Java中android.view.View.isDirty()
方法的一些代码示例,展示了View.isDirty()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。View.isDirty()
方法的具体详情如下:
包路径:android.view.View
类名称:View
方法名:isDirty
暂无
代码示例来源:origin: square/assertj-android
@TargetApi(HONEYCOMB)
public S isNotDirty() {
isNotNull();
assertThat(actual.isDirty()) //
.overridingErrorMessage("Expected to not be dirty but was") //
.isFalse();
return myself;
}
代码示例来源:origin: square/assertj-android
@TargetApi(HONEYCOMB)
public S isDirty() {
isNotNull();
assertThat(actual.isDirty()) //
.overridingErrorMessage("Expected to be dirty but was not") //
.isTrue();
return myself;
}
代码示例来源:origin: willowtreeapps/Hyperion-Android
attributes.add(new ViewAttribute<>("Dirty", view.isDirty()));
代码示例来源:origin: com.squareup.assertj/assertj-android
@TargetApi(HONEYCOMB)
public S isNotDirty() {
isNotNull();
assertThat(actual.isDirty()) //
.overridingErrorMessage("Expected to not be dirty but was") //
.isFalse();
return myself;
}
代码示例来源:origin: com.squareup.assertj/assertj-android
@TargetApi(HONEYCOMB)
public S isDirty() {
isNotNull();
assertThat(actual.isDirty()) //
.overridingErrorMessage("Expected to be dirty but was not") //
.isTrue();
return myself;
}
代码示例来源:origin: klinker24/Android-Blur-Launcher
public void print(ValueAnimator animation) {
float flatFraction = animation.getCurrentPlayTime() / (float) animation.getDuration();
Log.d("FirstFrameAnimatorHelper", sGlobalFrameCounter +
"(" + (sGlobalFrameCounter - mStartFrame) + ") " + mTarget + " dirty? " +
mTarget.isDirty() + " " + flatFraction + " " + this + " " + animation);
}
}
代码示例来源:origin: fookwood/Launcher3
public void print(ValueAnimator animation) {
float flatFraction = animation.getCurrentPlayTime() / (float) animation.getDuration();
Log.d("FirstFrameAnimatorHelper", sGlobalFrameCounter +
"(" + (sGlobalFrameCounter - mStartFrame) + ") " + mTarget + " dirty? " +
mTarget.isDirty() + " " + flatFraction + " " + this + " " + animation);
}
}
代码示例来源:origin: klinker24/launcher3
public void print(ValueAnimator animation) {
float flatFraction = animation.getCurrentPlayTime() / (float) animation.getDuration();
Log.d("FirstFrameAnimatorHelper", sGlobalFrameCounter +
"(" + (sGlobalFrameCounter - mStartFrame) + ") " + mTarget + " dirty? " +
mTarget.isDirty() + " " + flatFraction + " " + this + " " + animation);
}
}
代码示例来源:origin: WeAreFairphone/FP2-Launcher
public void print(ValueAnimator animation) {
float flatFraction = animation.getCurrentPlayTime() / (float) animation.getDuration();
Log.d("FirstFrameAnimatorHelper", sGlobalFrameCounter +
"(" + (sGlobalFrameCounter - mStartFrame) + ") " + mTarget + " dirty? " +
mTarget.isDirty() + " " + flatFraction + " " + this + " " + animation);
}
}
代码示例来源:origin: stackoverflow.com
@TargetApi(Build.VERSION_CODES.HONEYCOMB)
@Override
protected void dispatchDraw(Canvas canvas) {
View childView = getChildAt(0);
if (childView != null) {
// If on honeycomb or newer, cache the view.
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {
if (childView.isDirty() && !childView.isDrawingCacheEnabled()) {
childView.draw(this.wrappedViewDrawingCanvas);
// Edited by @Gorcyn
{
childView.setDrawingCacheQuality(View.DRAWING_CACHE_QUALITY_HIGH);
childView.setDrawingCacheEnabled(true);
}
if (this.isReflectionEnabled) {
this.createReflectedImages();
}
}
} else {
childView.draw(this.wrappedViewDrawingCanvas);
}
}
canvas.drawBitmap(this.wrappedViewBitmap, (this.getWidth() - childView.getWidth()) / 2, 0, this.paint);
}
代码示例来源:origin: xingkongus/superXingPostCard
@TargetApi(Build.VERSION_CODES.HONEYCOMB)
@Override
protected void dispatchDraw(Canvas canvas) {
View childView = getChildAt(0);
if (childView != null) {
// If on honeycomb or newer, cache the view.
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {
if (childView.isDirty()) {
childView.draw(this.wrappedViewDrawingCanvas);
if (this.isReflectionEnabled) {
this.createReflectedImages();
}
}
} else {
childView.draw(this.wrappedViewDrawingCanvas);
}
}
canvas.drawBitmap(this.wrappedViewBitmap, (this.getWidth() - childView.getWidth()) / 2, 0, paint);
}
代码示例来源:origin: iamvaliyev/MultiTabMenu
@TargetApi(Build.VERSION_CODES.HONEYCOMB)
@Override
protected void dispatchDraw(Canvas canvas) {
View childView = getChildAt(0);
if (childView != null) {
// If on honeycomb or newer, cache the view.
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {
if (childView.isDirty()) {
childView.draw(this.wrappedViewDrawingCanvas);
if (this.isReflectionEnabled) {
this.createReflectedImages();
}
}
} else {
childView.draw(this.wrappedViewDrawingCanvas);
}
}
canvas.drawBitmap(this.wrappedViewBitmap, (this.getWidth() - childView.getWidth()) / 2, 0, paint);
}
代码示例来源:origin: Odoo-mobile/framework
@Override
public View newView(Context context, Cursor cursor, ViewGroup viewGroup) {
View view;
if (mCacheViews && getCachedView(cursor) != null) {
view = getCachedView(cursor);
if (!view.isDirty()) {
return view;
}
}
if (mOnViewCreateListener != null) {
view = mOnViewCreateListener.onViewCreated(context, viewGroup,
cursor, cursor.getPosition());
if (view == null) {
view = mInflater.inflate(mLayout, viewGroup, false);
}
} else
view = mInflater.inflate(mLayout, viewGroup, false);
if (mCacheViews) {
mViewCache.put("view_" + cursor.getPosition(), view);
}
return view;
}
代码示例来源:origin: jbruchanov/AnUitor
data.put("VerticalScrollbarPosition", v.getVerticalScrollbarPosition());//11
data.put("IsActivated", v.isActivated());//11
data.put("IsDirty", v.isDirty());//11
data.put("IsSaveFromParentEnabled", v.isSaveFromParentEnabled());//11
内容来源于网络,如有侵权,请联系作者删除!