Back to project page AndroidImageCache.
The source code is released under:
Przemys?aw Jakubczyk Polidea Sp. z o.o. Copyright (c) 2012 All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the follo...
If you think the Android project AndroidImageCache 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 pl.polidea.webimageview.processor; /*w w w .j a v a 2 s . c om*/ import android.view.ViewGroup; /** * @author Mateusz Grzechoci?ski <mateusz.grzechocinski@pl.polidea.pl> */ class OnlyHeightFixed extends AbstractBitmapProcessorCreationChain { private final int height; private final int width; public OnlyHeightFixed(int height, int width) { this.height = height; this.width = width; } @Override public AbstractBitmapProcessorCreationChain next() { return new OnlyWidthFixed(height, width); } @Override protected Processor create() { if (height > 0 && (width == ViewGroup.LayoutParams.WRAP_CONTENT || width == ViewGroup.LayoutParams.MATCH_PARENT)) { return new Processor(Processor.ProcessorType.FIX_HEIGHT, width, height); } return NOT_CREATED_PROCESSOR; } }