下面列出了android.view.View#postInvalidateDelayed ( ) 实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。
@Override
public View getGroupView(int groupPosition, boolean isExpanded, View view,
ViewGroup parent) {
DataSourceHolder dataSource = mDataSources.get(groupPosition);
View groupView = dataSource.instanceable() ? getDataSourceView(dataSource,
groupPosition, isExpanded, view, parent)
: getDataSourceInstanceView(dataSource.getInstances().get(0),
view, parent);
if (dataSource.instanceable()) {
// return getDataSourceView(dataSource, groupPosition, isExpanded,
// view, parent);
} else {
// return getDataSourceInstanceView(dataSource.getInstances().get(0),
// view, parent);
}
groupView.postInvalidateDelayed(50);
return groupView;
}
/**
* Original method view.postInvalidateOnAnimation() only supportd in API >=
* 16, This is a replica of the code from ViewCompat.
*
* @param view
*/
@SuppressLint("NewApi")
public static void postInvalidateOnAnimation(View view) {
if (Build.VERSION.SDK_INT >= 16) {
view.postInvalidateOnAnimation();
} else {
view.postInvalidateDelayed(10);
}
}
/**
* Original method view.postInvalidateOnAnimation() only supportd in API >=
* 16, This is a replica of the code from ViewCompat.
*
* @param view
*/
@SuppressLint("NewApi")
public static void postInvalidateOnAnimation(View view) {
if (Build.VERSION.SDK_INT >= 16)
view.postInvalidateOnAnimation();
else
view.postInvalidateDelayed(10);
}
/**
* Original method view.postInvalidateOnAnimation() only supportd in API >=
* 16, This is a replica of the code from ViewCompat.
*
* @param view
*/
@SuppressLint("NewApi")
public static void postInvalidateOnAnimation(View view) {
if (Build.VERSION.SDK_INT >= 16)
view.postInvalidateOnAnimation();
else
view.postInvalidateDelayed(10);
}
/**
* Original method view.postInvalidateOnAnimation() only supportd in API >=
* 16, This is a replica of the code from ViewCompat.
*
* @param view
*/
@SuppressLint("NewApi")
public static void postInvalidateOnAnimation(View view) {
if (Build.VERSION.SDK_INT >= 16)
view.postInvalidateOnAnimation();
else
view.postInvalidateDelayed(10);
}
/**
* Original method view.postInvalidateOnAnimation() only supportd in API >=
* 16, This is a replica of the code from ViewCompat.
*
* @param view
*/
@SuppressLint("NewApi")
public static void postInvalidateOnAnimation(View view) {
if (Build.VERSION.SDK_INT >= 16)
view.postInvalidateOnAnimation();
else
view.postInvalidateDelayed(10);
}
/**
* Original method view.postInvalidateOnAnimation() only supportd in API >=
* 16, This is a replica of the code from ViewCompat.
*
* @param view
*/
@SuppressLint("NewApi")
public static void postInvalidateOnAnimation(View view) {
if (Build.VERSION.SDK_INT >= 16)
view.postInvalidateOnAnimation();
else
view.postInvalidateDelayed(10);
}
/**
* Original method view.postInvalidateOnAnimation() only supportd in API >=
* 16, This is a replica of the code from ViewCompat.
*
* @param view
*/
@SuppressLint("NewApi")
public static void postInvalidateOnAnimation(View view) {
if (Build.VERSION.SDK_INT >= 16)
view.postInvalidateOnAnimation();
else
view.postInvalidateDelayed(10);
}
public void a(View view, int l, int i1, int j1, int k1)
{
view.postInvalidateDelayed(a(), l, i1, j1, k1);
}
public void c(View view)
{
view.postInvalidateDelayed(a());
}
public void postInvalidateOnAnimation(View view) {
view.postInvalidateDelayed(getFrameTime());
}
public void postInvalidateOnAnimation(View view, int left, int top, int right, int bottom) {
view.postInvalidateDelayed(getFrameTime(), left, top, right, bottom);
}
public void postInvalidateOnAnimation(View view) {
view.postInvalidateDelayed(getFrameTime());
}
public void postInvalidateOnAnimation(View view, int left, int top, int right, int bottom) {
view.postInvalidateDelayed(getFrameTime(), left, top, right, bottom);
}
public void postInvalidateOnAnimation(View view) {
view.postInvalidateDelayed(getFrameTime());
}
public void postInvalidateOnAnimation(View view, int left, int top, int right, int bottom) {
view.postInvalidateDelayed(getFrameTime(), left, top, right, bottom);
}
public void postInvalidateOnAnimation(View view) {
view.postInvalidateDelayed(getFrameTime());
}
public void postInvalidateOnAnimation(View view, int left, int top, int right, int bottom) {
view.postInvalidateDelayed(getFrameTime(), left, top, right, bottom);
}