예배 규칙서 찾다
android Manifest Manifest.permission Manifest.permission_group android.accessibilityservice AccessibilityService android.accounts Account android.app NotificationManager android.bluetooth BluetoothAdapter BluetoothClass BluetoothClass.Device BluetoothClass.Device.Major BluetoothClass.Service BluetoothDevice BluetoothServerSocket BluetoothSocket android.content SharedPreferences android.database.sqlite SQLiteCursorDriver SQLiteOpenHelper android.graphics Bitmap android.location LocationListener Geocoder GpsStatus GpsStatus.Listener GpsStatus.NmeaListener GpsSatellite android.media AudioFormat AsyncPlayer AudioRecord AudioRecord.OnRecordPositionUpdateListener ThumbnailUtils AudioManager android.net TrafficStats MailTo LocalSocket android.os AsyncTask AsyncTask.Status CountDownTimer Message MessageQueue HandlerThread android.text Html android.util JsonWriter android.view ContextMenu ContextMenu.ContextMenuInfo Display ViewManager View ViewStub ViewTreeObserver ViewParent WindowManager GestureDetector Gravity MenuInflater ScaleGestureDetector SoundEffectConstants android.view.inputmethod InputConnection InputMethod InputMethodSession BaseInputConnection InputMethodManager android.widget AbsListView AbsListView.LayoutParams AbsListView.OnScrollListener AbsListView.RecyclerListener AbsoluteLayout AbsoluteLayout.LayoutParams AbsSeekBar AbsSpinner AdapterView AdapterView.AdapterContextMenuInfo AdapterView.OnItemLongClickListener AdapterView.OnItemSelectedListener AdapterView.OnItemClickListener AnalogClock BaseAdapter BaseExpandableListAdapter Button CheckBox CheckedTextView Checkable Chronometer Chronometer.OnChronometerTickListener CompoundButton CompoundButton.OnCheckedChangeListener CursorAdapter CursorTreeAdapter DatePicker DatePicker.OnDateChangedListener DialerFilter DigitalClock EditText Filter Filter.FilterListener Filter.FilterResults ExpandableListAdapter ExpandableListView.OnChildClickListener ExpandableListView.OnGroupClickListener ExpandableListView.OnGroupCollapseListener ExpandableListView.OnGroupExpandListener Filterable Gallery Gallery.LayoutParams GridView GridLayout GridLayout.Alignment RadioGroup ImageView ImageView.ScaleType HorizontalScrollView ImageButton ImageSwitcher FilterQueryProvider ListAdapter ListView MediaController MultiAutoCompleteTextView MultiAutoCompleteTextView.CommaTokenizer MultiAutoCompleteTextView.Tokenizer QuickContactBadge RadioButton RatingBar RatingBar.OnRatingBarChangeListener RelativeLayout RemoteViews ResourceCursorAdapter ResourceCursorTreeAdapter Scroller ScrollView SearchView SearchView.OnCloseListener SearchView.OnQueryTextListener SearchView.OnSuggestionListener SeekBar SeekBar.OnSeekBarChangeListener SimpleAdapter SimpleAdapter.ViewBinder SimpleCursorAdapter SimpleCursorAdapter.CursorToStringConverter SimpleCursorAdapter.ViewBinder SimpleCursorTreeAdapter SimpleCursorTreeAdapter.ViewBinder SimpleExpandableListAdapter SlidingDrawer SlidingDrawer.OnDrawerCloseListener SlidingDrawer.OnDrawerOpenListener SlidingDrawer.OnDrawerScrollListener Spinner SpinnerAdapter WrapperListAdapter TabHost TabHost.TabSpec TextView TimePicker TimePicker.OnTimeChangedListener Toast TableLayout TableLayout.LayoutParams TableRow TableRow.LayoutParams TabWidget TextSwitcher ToggleButton TwoLineListItem VideoView ViewAnimator ViewFlipper ViewSwitcher ViewSwitcher.ViewFactory ZoomButtonsController ZoomButtonsController.OnZoomListener ZoomButton ZoomControls dalvik.system DexFile
문자

ImageView.ScaleType

译者博客:http://blog.sina.com.cn/xjtuyi

版本:Android 3.1 r1

结构

继承关系

public static final enumImageView.ScaleTypeextendsEnum<EextendsEnum>

java.lang.Object

java.lang.Enum>

android.widget.ImageView.ScaleType

类概述

将图片边界缩放,以适应视图边界时的可选项。

常量

public static final ImageView.ScaleTypeCENTER

在视图中使图像居中,不执行缩放。XML中可以使用的语法:android:scaleType="center"

public static final ImageView.ScaleTypeCENTER_CROP

均衡的缩放图像(保持图像原始比例),使图片的两个坐标(宽、高)都大于等于相应的视图坐标(负的内边距)。图像则位于视图的中央。XML中可以使用的语法:android:scaleType="centerCrop"

public static final ImageView.ScaleTypeCENTER_INSIDE

均衡的缩放图像(保持图像原始比例),使图片的两个坐标(宽、高)都小于等于相应的视图坐标(负的内边距)。图像则位于视图的中央。XML中可以使用的语法:android:scaleType="centerInside"

public static final ImageView.ScaleTypeFIT_CENTER

使用CENTER方式缩放图像。XML中可以使用的语法:android:scaleType="fitCenter"

public static final ImageView.ScaleTypeFIT_END

使用END方式缩放图像。XML中可以使用的语法:android:scaleType="fitEnd"

public static final ImageView.ScaleTypeFIT_START

使用START方式缩放图像。XML中可以使用的语法:android:scaleType="fitStart"

public static final ImageView.ScaleTypeFIT_XY

使用FILL方式缩放图像。XML中可以使用的语法:android:scaleType="fitXY"

public static final ImageView.ScaleTypeMATRIX

绘制时,使用图像矩阵方式缩放。图像矩阵可以通过setImageMatrix(Matrix)设置。在XML中可以使用的语法:android:scaleType="matrix"

补充

文章精选

Android APIImageView.ScaleType代码演示


이전 기사: 다음 기사: