Java Code Examples for android.view.View#postInvalidateDelayed()

The following examples show how to use android.view.View#postInvalidateDelayed() . These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may want to check out the right sidebar which shows the related API usage.
Example 1
Source Project: geoar-app   File: DataSourceListAdapter.java    License: Apache License 2.0 6 votes vote down vote up
@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;
	}
 
Example 2
Source Project: StockChart-MPAndroidChart   File: Utils.java    License: MIT License 5 votes vote down vote up
/**
 * 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);
    }
}
 
Example 3
Source Project: Ticket-Analysis   File: Utils.java    License: MIT License 5 votes vote down vote up
/**
 * 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);
}
 
Example 4
Source Project: android-kline   File: Utils.java    License: Apache License 2.0 5 votes vote down vote up
/**
 * 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);
}
 
Example 5
Source Project: iMoney   File: Utils.java    License: Apache License 2.0 5 votes vote down vote up
/**
 * 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);
}
 
Example 6
Source Project: Stayfit   File: Utils.java    License: Apache License 2.0 5 votes vote down vote up
/**
 * 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);
}
 
Example 7
Source Project: NetKnight   File: Utils.java    License: Apache License 2.0 5 votes vote down vote up
/**
 * 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);
}
 
Example 8
Source Project: JNChartDemo   File: Utils.java    License: Apache License 2.0 5 votes vote down vote up
/**
 * 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);
}
 
Example 9
Source Project: MiBandDecompiled   File: aa.java    License: Apache License 2.0 4 votes vote down vote up
public void a(View view, int l, int i1, int j1, int k1)
{
    view.postInvalidateDelayed(a(), l, i1, j1, k1);
}
 
Example 10
Source Project: MiBandDecompiled   File: aa.java    License: Apache License 2.0 4 votes vote down vote up
public void c(View view)
{
    view.postInvalidateDelayed(a());
}
 
Example 11
public void postInvalidateOnAnimation(View view) {
    view.postInvalidateDelayed(getFrameTime());
}
 
Example 12
public void postInvalidateOnAnimation(View view, int left, int top, int right, int bottom) {
    view.postInvalidateDelayed(getFrameTime(), left, top, right, bottom);
}
 
Example 13
Source Project: android-recipes-app   File: ViewCompat.java    License: Apache License 2.0 4 votes vote down vote up
public void postInvalidateOnAnimation(View view) {
    view.postInvalidateDelayed(getFrameTime());
}
 
Example 14
Source Project: android-recipes-app   File: ViewCompat.java    License: Apache License 2.0 4 votes vote down vote up
public void postInvalidateOnAnimation(View view, int left, int top, int right, int bottom) {
    view.postInvalidateDelayed(getFrameTime(), left, top, right, bottom);
}
 
Example 15
Source Project: V.FlyoutTest   File: ViewCompat.java    License: MIT License 4 votes vote down vote up
public void postInvalidateOnAnimation(View view) {
    view.postInvalidateDelayed(getFrameTime());
}
 
Example 16
Source Project: V.FlyoutTest   File: ViewCompat.java    License: MIT License 4 votes vote down vote up
public void postInvalidateOnAnimation(View view, int left, int top, int right, int bottom) {
    view.postInvalidateDelayed(getFrameTime(), left, top, right, bottom);
}
 
Example 17
Source Project: guideshow   File: ViewCompat.java    License: MIT License 4 votes vote down vote up
public void postInvalidateOnAnimation(View view) {
    view.postInvalidateDelayed(getFrameTime());
}
 
Example 18
Source Project: guideshow   File: ViewCompat.java    License: MIT License 4 votes vote down vote up
public void postInvalidateOnAnimation(View view, int left, int top, int right, int bottom) {
    view.postInvalidateDelayed(getFrameTime(), left, top, right, bottom);
}