Code example for SparseArray

    // Paperclip. 
    int paperclipY;
    // Cache to save Coordinates based on view width. 
    private static SparseArray<MessageListItemCoordinates> mCache =
            new SparseArray<MessageListItemCoordinates>();
    private static TextPaint sPaint = new TextPaint();
    static { 
    // Not directly instantiable. 
    private MessageListItemCoordinates() {} 
     * Returns the mode of the header view (Wide/Normal/Narrow) given the its 
     * measured width. 
Stop searching for code, let great code find you!  Add Codota to your java IDE