package com.common.common.wediget;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.Drawable;
import android.graphics.drawable.NinePatchDrawable;
import android.util.AttributeSet;
import android.view.ViewGroup.LayoutParams;
import android.widget.ImageView;
public class AdaptiveImageView_Width_Wrap_content extends ImageView {
// 控件默认长、宽
private int defaultWidth = 0;
private int defaultHeight = 0;
// 比例
private float scale = 0;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.Drawable;
import android.graphics.drawable.NinePatchDrawable;
import android.util.AttributeSet;
import android.view.ViewGroup.LayoutParams;
import android.widget.ImageView;
public class AdaptiveImageView_Width_Wrap_content extends ImageView {
// 控件默认长、宽
private int defaultWidth = 0;
private int defaultHeight = 0;
// 比例
private float scale = 0;