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

The following examples show how to use android.view.View#postInvalidateDelayed() . 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 check out the related API usage on the sidebar.
Example 1
Source File: DataSourceListAdapter.java    From geoar-app with 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 File: Utils.java    From Ticket-Analysis with 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 File: Utils.java    From android-kline with 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 4
Source File: Utils.java    From iMoney with 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 File: Utils.java    From Stayfit with 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 File: Utils.java    From NetKnight with 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 File: Utils.java    From JNChartDemo with 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 File: Utils.java    From StockChart-MPAndroidChart with 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 9
Source File: ViewCompat.java    From guideshow with 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 10
Source File: ViewCompat.java    From guideshow with MIT License 4 votes vote down vote up
public void postInvalidateOnAnimation(View view) {
    view.postInvalidateDelayed(getFrameTime());
}
 
Example 11
Source File: ViewCompat.java    From V.FlyoutTest with 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 12
Source File: ViewCompat.java    From V.FlyoutTest with MIT License 4 votes vote down vote up
public void postInvalidateOnAnimation(View view) {
    view.postInvalidateDelayed(getFrameTime());
}
 
Example 13
Source File: ViewCompat.java    From android-recipes-app with 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 14
Source File: ViewCompat.java    From android-recipes-app with Apache License 2.0 4 votes vote down vote up
public void postInvalidateOnAnimation(View view) {
    view.postInvalidateDelayed(getFrameTime());
}
 
Example 15
Source File: ViewCompat.java    From CodenameOne with GNU General Public License v2.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 16
Source File: ViewCompat.java    From CodenameOne with GNU General Public License v2.0 4 votes vote down vote up
public void postInvalidateOnAnimation(View view) {
    view.postInvalidateDelayed(getFrameTime());
}
 
Example 17
Source File: aa.java    From MiBandDecompiled with Apache License 2.0 4 votes vote down vote up
public void c(View view)
{
    view.postInvalidateDelayed(a());
}
 
Example 18
Source File: aa.java    From MiBandDecompiled with 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);
}