Back to project page Vispin.
The source code is released under:
Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. ...
If you think the Android project Vispin listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.jpardogo.vispin.utils; // www . ja va 2s . c o m import android.os.Build; import com.jpardogo.vispin.models.ListItem; import java.util.ArrayList; import java.util.List; public class Utils { private static final String TAG = Utils.class.getSimpleName(); public static boolean hasJellyBean() { return Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN; } public static boolean hasICS() { return Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH; } public static boolean hasKitKat() { return Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT; } public static <T> List<ListItem<T>> createListItemList(final List<T> items) { ArrayList<ListItem<T>> listItems = new ArrayList<ListItem<T>>(items.size()); for (T item : items) { listItems.add(new ListItem<T>(item)); } return listItems; } }