android控件之imageview 以及重写imageview

package android.widget;

import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.ColorFilter;
import android.graphics.Matrix;
import android.graphics.PorterDuff.Mode;
import android.graphics.drawable.Drawable;
import android.net.Uri;
import android.util.AttributeSet;
import android.view.View;
import android.view.ViewDebug.ExportedProperty;
import android.view.accessibility.AccessibilityEvent;
import android.view.accessibility.AccessibilityNodeInfo;

@RemoteViews.RemoteView
public class ImageView extends View
{
  public ImageView(Context context)
  {

    super((Context)null, (AttributeSet)null, 0); throw new RuntimeException("Stub!");

}

  public ImageView(Context context, AttributeSet attrs) { super((Context)null, (AttributeSet)null, 0); throw new RuntimeException("Stub!"); }
  public ImageView(Context context, AttributeSet attrs, int defStyle) { super((Context)null, (AttributeSet)null, 0); throw new RuntimeException("Stub!"); }
  protected boolean verifyDrawable(Drawable dr) { throw new RuntimeException("Stub!"); }
  public void jumpDrawablesToCurrentState() { throw new RuntimeException("Stub!"); }
  public void invalidateDrawable(Drawable dr) { throw new RuntimeException("Stub!"); }
  public boolean hasOverlappingRendering() { throw new RuntimeException("Stub!"); }
  public void onPopulateAccessibilityEvent(AccessibilityEvent event) { throw new RuntimeException("Stub!"); }
  public boolean getAdjustViewBounds() { throw new RuntimeException("Stub!"); }
  public void setAdjustViewBounds(boolean adjustViewBounds) { throw new RuntimeException("Stub!"); }
  public int getMaxWidth() { throw new RuntimeException("Stub!"); }
  public void setMaxWidth(int maxWidth) { throw new RuntimeException("Stub!"); }
  public int getMaxHeight() { throw new RuntimeException("Stub!"); }
  public void setMaxHeight(int maxHeight) { throw new RuntimeException("Stub!"); }
  public Drawable getDrawable() { throw new RuntimeException("Stub!"); }
  public void setImageResource(int resId) { throw new RuntimeException("Stub!"); }
  public void setImageURI(Uri uri) { throw new RuntimeException("Stub!"); }
  public void setImageDrawable(Drawable drawable) { throw new RuntimeException("Stub!"); }
  public void setImageBitmap(Bitmap bm) { throw new RuntimeException("Stub!"); }
  public void setImageState(int[] state, boolean merge) { throw new RuntimeException("Stub!"); }
  public void setSelected(boolean selected) { throw new RuntimeException("Stub!"); }
  public void setImageLevel(int level) { throw new RuntimeException("Stub!"); }
  public void setScaleType(ScaleType scaleType) { throw new RuntimeException("Stub!"); }
  public ScaleType getScaleType() { throw new RuntimeException("Stub!"); }
  public Matrix getImageMatrix() { throw new RuntimeException("Stub!"); }
  public void setImageMatrix(Matrix matrix) { throw new RuntimeException("Stub!"); }
  public boolean getCropToPadding() { throw new RuntimeException("Stub!"); }
  public void setCropToPadding(boolean cropToPadding) { throw new RuntimeException("Stub!"); }
  public int[] onCreateDrawableState(int extraSpace) { throw new RuntimeException("Stub!"); }
  public void onRtlPropertiesChanged(int layoutDirection) { throw new RuntimeException("Stub!"); }
  protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { throw new RuntimeException("Stub!"); }
  protected boolean setFrame(int l, int t, int r, int b) { throw new RuntimeException("Stub!"); }
  protected void drawableStateChanged() { throw new RuntimeException("Stub!"); }
  protected void onDraw(Canvas canvas) { throw new RuntimeException("Stub!"); }
  @ViewDebug.ExportedProperty(category="layout")
  public int getBaseline() { throw new RuntimeException("Stub!"); }
  public void setBaseline(int baseline) { throw new RuntimeException("Stub!"); }
  public void setBaselineAlignBottom(boolean aligned) { throw new RuntimeException("Stub!"); }
  public boolean getBaselineAlignBottom() { throw new RuntimeException("Stub!"); }
  public final void setColorFilter(int color, PorterDuff.Mode mode) { throw new RuntimeException("Stub!"); }
  public final void setColorFilter(int color) { throw new RuntimeException("Stub!"); }
  public final void clearColorFilter() { throw new RuntimeException("Stub!"); }
  public ColorFilter getColorFilter() { throw new RuntimeException("Stub!"); }
  public void setColorFilter(ColorFilter cf) { throw new RuntimeException("Stub!"); }
  public int getImageAlpha() { throw new RuntimeException("Stub!"); }
  public void setImageAlpha(int alpha) { throw new RuntimeException("Stub!"); }
  @Deprecated
  public void setAlpha(int alpha) { throw new RuntimeException("Stub!"); }
  public void setVisibility(int visibility) { throw new RuntimeException("Stub!"); }
  protected void onAttachedToWindow() { throw new RuntimeException("Stub!"); }
  protected void onDetachedFromWindow() { throw new RuntimeException("Stub!"); }
  public void onInitializeAccessibilityEvent(AccessibilityEvent event) { throw new RuntimeException("Stub!"); }
  public void onInitializeAccessibilityNodeInfo(AccessibilityNodeInfo info) { throw new RuntimeException("Stub!"); }


  public static enum ScaleType
  {
    CENTER,
    CENTER_CROP,
    CENTER_INSIDE,
    FIT_CENTER,
    FIT_END,
    FIT_START,
    FIT_XY,
    MATRIX;
  }
}
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值