예배 규칙서 찾다
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
문자


ZoomButtonsController

版本:Android 2.2 r1

结构

继承关系

public classZoomButtonsControllerextendsViewimplementsView.OnTouchListener

java.lang.Object

android.widget.ZoomButtonsController

类概述

ZoomButtonsController处理缩放控件的显示和隐藏并且定位其在相关父视图的位置。他也可以做为缩放控件的容器,允许在缩放控制窗口里面显示一些附加的按钮。

通常情况下,客户端在按下或者移动显示容器需要调用setVisible(ture)方法(不需要调用setVisible(false),来隐藏空间,因为当时间超时,它会自动隐藏),同时,当拥有者不能再进一步缩放的时候,客户端应该调setZoomInEnabled(boolean)setZoomOutEnabled(boolean)

来及时更新。

如果你需要和自定义视图搭配使用,请在onDetachedFromWindow()方法中调用setVisible(false)

构造函数

publicZoomButtonsController(View ownerView)

ZoomButtonsController的构造函数

参数

ownerView被缩放控件进行缩放的可视控件,缩放控件显示将和可视控件保持一致

公共方法

public ViewGroupgetContainer()

获取缩放控件的父容器。

客户端可以增加其他的可视控件,和缩放控件一起放到这个容器中

返回

缩放控件的容器,它的布局将和它子控件的布局保持一致

public ViewgetZoomControls()

获取缩放控件的视图

返回

缩放控件视图

public booleanisAutoDismissed()

获取缩放控件是否显示后自动关闭

返回

缩放控件是否显示后自动关闭

public booleanisVisible()

缩放控件是否对用户可视

返回

true或者false

public voidsetAutoDismissed(boolean autoDismiss)

设置缩放控件是否显示后自动关闭

参数

AutoDismiss true或者false

public voidsetFocusable(boolean focusable)

设置缩放控件是否获取焦点,如果控件获取焦点,就是可以使用轨迹球和方向键进行操作,否则,只能触摸进行操作

参数

focusable Truefalse

public voidsetOnZoomListener(ZoomButtonsController.OnZoomListener listener)

设置ZoomButtonsController.OnZoomListener侦听接收回调进行缩放

参数

listener介绍是否缩放的侦听器

public voidsetVisible(boolean visible)

设置缩放控件是否对用户可视

参数

visible缩放控件是否对用户可视(true或者false

public voidsetZoomInEnabled(boolean enabled)

是否允许空间放大

参数

enabled是否允许空间放大(true或者false

public voidsetZoomOutEnabled(boolean enabled)

是否允许控件缩小

参数

enabled是否允许控件缩小(true或者false

public voidsetZoomSpeed(long speed)

设置用户操作缩放按钮到缩放回调的延迟时间

参数

speed以毫秒为单位的缩放回调的间隔时间

补充

文章精选

Android Google map使用心得

googlemap加载多个overlay内存溢出

示例代码


이전 기사: 다음 기사: