Code example for SparseArray

Methods: clear

     * Reset the caches associated with the coordinate layouts. 
    static void resetCaches() { 
     * Returns coordinates for elements inside a conversation header view given 
     * the view width. 
    public static MessageListItemCoordinates forWidth(Context context, int width,
            boolean isSearchResult) {
        MessageListItemCoordinates coordinates = mCache.get(width);
        if (coordinates == null) {
            coordinates = new MessageListItemCoordinates();
            mCache.put(width, coordinates);
            // TODO: make the field computation done inside of the constructor and mark fields final