本文整理汇总了Java中android.support.v4.view.ViewCompat.hasTransientState方法的典型用法代码示例。如果您正苦于以下问题:Java ViewCompat.hasTransientState方法的具体用法?Java ViewCompat.hasTransientState怎么用?Java ViewCompat.hasTransientState使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类android.support.v4.view.ViewCompat
的用法示例。
在下文中一共展示了ViewCompat.hasTransientState方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: isRecyclable
import android.support.v4.view.ViewCompat; //导入方法依赖的package包/类
public final boolean isRecyclable() {
return (this.mFlags & 16) == 0 && !ViewCompat.hasTransientState(this.itemView);
}
示例2: doesTransientStatePreventRecycling
import android.support.v4.view.ViewCompat; //导入方法依赖的package包/类
private boolean doesTransientStatePreventRecycling() {
return (this.mFlags & 16) == 0 && ViewCompat.hasTransientState(this.itemView);
}
示例3: isRecyclable
import android.support.v4.view.ViewCompat; //导入方法依赖的package包/类
/**
* @see {@link #setIsRecyclable(boolean)}
*
* @return true if this item is available to be recycled, false otherwise.
*/
public final boolean isRecyclable() {
return (mFlags & FLAG_NOT_RECYCLABLE) == 0 &&
!ViewCompat.hasTransientState(itemView);
}
示例4: doesTransientStatePreventRecycling
import android.support.v4.view.ViewCompat; //导入方法依赖的package包/类
/**
* @return True if ViewHolder is not refenrenced by RecyclerView animations but has
* transient state which will prevent it from being recycled.
*/
private boolean doesTransientStatePreventRecycling() {
return (mFlags & FLAG_NOT_RECYCLABLE) == 0 && ViewCompat.hasTransientState(itemView);
}