Java Code Examples for android.view.View.scheduleDrawable()

The following are Jave code examples for showing how to use scheduleDrawable() of the android.view.View class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: PaoMovie   File: MultiCallback.java   Source Code and License Vote up 5 votes
@Override
public void scheduleDrawable(final Drawable who, final Runnable what,
		final long when) {
	for (int i = 0; i < mViewList.size(); i++) {
		final ViewWeakReference reference = mViewList.get(i);
		final View view = reference.get();
		if (view != null) {
			view.scheduleDrawable(who, what, when);
		} else {
			// Always remove null references to reduce Set size
			mViewList.remove(reference);
		}
	}
}
 
Example 2
Project: PaoMovie   File: MultiCallback.java   Source Code and License Vote up 5 votes
@Override
public void scheduleDrawable(final Drawable who, final Runnable what,
		final long when) {
	for (int i = 0; i < mViewList.size(); i++) {
		final ViewWeakReference reference = mViewList.get(i);
		final View view = reference.get();
		if (view != null) {
			view.scheduleDrawable(who, what, when);
		} else {
			// Always remove null references to reduce Set size
			mViewList.remove(reference);
		}
	}
}