ViewfinderView

open class ViewfinderView : View

取景视图:主要用于渲染扫描相关的动画效果

Author

Jenly

Follow me

Constructors

Link copied to clipboard
constructor(context: Context)
constructor(context: Context, @Nullable attrs: AttributeSet)
constructor(context: Context, @Nullable attrs: AttributeSet, defStyleAttr: Int)

Types

Link copied to clipboard
扫描框对齐方式
Link copied to clipboard
扫描线样式
Link copied to clipboard
Item点击监听
Link copied to clipboard
文字位置
Link copied to clipboard
取景框样式

Properties

Link copied to clipboard
val AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_DATE: String = "creditCardExpirationDate"
Link copied to clipboard
val AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_DAY: String = "creditCardExpirationDay"
val AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_MONTH: String = "creditCardExpirationMonth"
val AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_YEAR: String = "creditCardExpirationYear"
Link copied to clipboard
val AUTOFILL_HINT_CREDIT_CARD_NUMBER: String = "creditCardNumber"
Link copied to clipboard
val AUTOFILL_HINT_CREDIT_CARD_SECURITY_CODE: String = "creditCardSecurityCode"
Link copied to clipboard
val AUTOFILL_HINT_EMAIL_ADDRESS: String = "emailAddress"
Link copied to clipboard
Link copied to clipboard
val AUTOFILL_HINT_PASSWORD: String = "password"
Link copied to clipboard
Link copied to clipboard
val AUTOFILL_HINT_POSTAL_ADDRESS: String = "postalAddress"
Link copied to clipboard
val AUTOFILL_HINT_POSTAL_CODE: String = "postalCode"
Link copied to clipboard
val AUTOFILL_HINT_USERNAME: String = "username"
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val FOCUS_DOWN: Int = 130
Link copied to clipboard
Link copied to clipboard
val FOCUS_LEFT: Int = 17
Link copied to clipboard
val FOCUS_RIGHT: Int = 66
Link copied to clipboard
val FOCUS_UP: Int = 33
Link copied to clipboard
val FOCUSABLE: Int = 1
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val GONE: Int = 8
Link copied to clipboard
val HAPTIC_FEEDBACK_ENABLED: Int = 268435456
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val INVISIBLE: Int = 4
Link copied to clipboard
Link copied to clipboard
val KEEP_SCREEN_ON: Int = 67108864
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val MEASURED_SIZE_MASK: Int = 16777215
Link copied to clipboard
val MEASURED_STATE_MASK: Int = -16777216
Link copied to clipboard
Link copied to clipboard
val NO_ID: Int = -1
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val SOUND_EFFECTS_ENABLED: Int = 134217728
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val VISIBLE: Int = 0
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
open fun addExtraDataToAccessibilityNodeInfo(info: AccessibilityNodeInfo, extraDataKey: String, arguments: Bundle)
Link copied to clipboard
open fun addFocusables(views: ArrayList<View>, direction: Int)
Link copied to clipboard
open fun addKeyboardNavigationClusters(views: Collection<View>, direction: Int)
Link copied to clipboard
open fun addTouchables(views: ArrayList<View>)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun autofill(value: AutofillValue)
Link copied to clipboard
open fun bringToFront()
Link copied to clipboard
Link copied to clipboard
open fun buildLayer()
Link copied to clipboard
open fun callOnClick(): Boolean
Link copied to clipboard
Link copied to clipboard
open fun cancelLongPress()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun canScrollHorizontally(direction: Int): Boolean
Link copied to clipboard
open fun canScrollVertically(direction: Int): Boolean
Link copied to clipboard
Link copied to clipboard
open fun clearAnimation()
Link copied to clipboard
open fun clearFocus()
Link copied to clipboard
Link copied to clipboard
open fun combineMeasuredStates(curState: Int, newState: Int): Int
Link copied to clipboard
open fun computeScroll()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun dispatchCreateViewTranslationRequest(viewIds: Map<AutofillId, Array<Long>>, supportedFormats: Array<Int>, capability: TranslationCapability, requests: List<ViewTranslationRequest>)
Link copied to clipboard
open fun dispatchDisplayHint(hint: Int)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun dispatchNestedFling(velocityX: Float, velocityY: Float, consumed: Boolean): Boolean
Link copied to clipboard
open fun dispatchNestedPreFling(velocityX: Float, velocityY: Float): Boolean
Link copied to clipboard
open fun dispatchNestedPreScroll(dx: Int, dy: Int, consumed: Array<Int>, offsetInWindow: Array<Int>): Boolean
Link copied to clipboard
open fun dispatchNestedScroll(dxConsumed: Int, dyConsumed: Int, dxUnconsumed: Int, dyUnconsumed: Int, offsetInWindow: Array<Int>): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun dispatchScrollCaptureSearch(localVisibleRect: Rect, windowOffset: Point, targets: Consumer<ScrollCaptureTarget>)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun dispatchUnhandledMove(focused: View, direction: Int): Boolean
Link copied to clipboard
Link copied to clipboard
open fun dispatchWindowVisibilityChanged(visibility: Int)
Link copied to clipboard
open fun draw(canvas: Canvas)
Link copied to clipboard
Link copied to clipboard
open fun findFocus(): View
Link copied to clipboard
fun <T : View?> findViewById(id: Int): T
Link copied to clipboard
open fun findViewsWithText(outViews: ArrayList<View>, searched: CharSequence, flags: Int)
Link copied to clipboard
fun <T : View?> findViewWithTag(tag: Any): T
Link copied to clipboard
open fun focusSearch(direction: Int): View
Link copied to clipboard
open fun forceHasOverlappingRendering(hasOverlappingRendering: Boolean)
Link copied to clipboard
open fun forceLayout()
Link copied to clipboard
Link copied to clipboard
open fun generateDisplayHash(hashAlgorithm: String, bounds: Rect, executor: Executor, callback: DisplayHashResultCallback)
Link copied to clipboard
open fun generateViewId(): Int
Link copied to clipboard
Link copied to clipboard
open fun getAlpha(): Float
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getAttributeResolutionStack(attribute: Int): Array<Int>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getAutofillType(): Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getBaseline(): Int
Link copied to clipboard
fun getBottom(): Int
Link copied to clipboard
Link copied to clipboard
open fun getClipBounds(): Rect
open fun getClipBounds(outRect: Rect): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getDefaultSize(size: Int, measureSpec: Int): Int
Link copied to clipboard
open fun getDisplay(): Display
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getDrawingRect(outRect: Rect)
Link copied to clipboard
open fun getDrawingTime(): Long
Link copied to clipboard
open fun getElevation(): Float
Link copied to clipboard
open fun getExplicitStyle(): Int
Link copied to clipboard
Link copied to clipboard
open fun getFocusable(): Int
Link copied to clipboard
open fun getFocusables(direction: Int): ArrayList<View>
Link copied to clipboard
open fun getFocusedRect(r: Rect)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getGlobalVisibleRect(r: Rect, globalOffset: Point): Boolean
Link copied to clipboard
open fun getHandler(): Handler
Link copied to clipboard
fun getHeight(): Int
Link copied to clipboard
open fun getHitRect(outRect: Rect)
Link copied to clipboard
Link copied to clipboard
open fun getId(): Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getLabelFor(): Int
Link copied to clipboard
open fun getLayerType(): Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun getLeft(): Int
Link copied to clipboard
Link copied to clipboard
open fun getLocationInSurface(location: Array<Int>)
Link copied to clipboard
open fun getLocationInWindow(outLocation: Array<Int>)
Link copied to clipboard
open fun getLocationOnScreen(outLocation: Array<Int>)
Link copied to clipboard
open fun getMatrix(): Matrix
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getMinimumHeight(): Int
Link copied to clipboard
open fun getMinimumWidth(): Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getNextFocusUpId(): Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getPaddingBottom(): Int
Link copied to clipboard
open fun getPaddingEnd(): Int
Link copied to clipboard
open fun getPaddingLeft(): Int
Link copied to clipboard
open fun getPaddingRight(): Int
Link copied to clipboard
open fun getPaddingStart(): Int
Link copied to clipboard
open fun getPaddingTop(): Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getPivotX(): Float
Link copied to clipboard
open fun getPivotY(): Float
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun getRight(): Int
Link copied to clipboard
open fun getRootView(): View
Link copied to clipboard
Link copied to clipboard
open fun getRotation(): Float
Link copied to clipboard
open fun getRotationX(): Float
Link copied to clipboard
open fun getRotationY(): Float
Link copied to clipboard
open fun getScaleX(): Float
Link copied to clipboard
open fun getScaleY(): Float
Link copied to clipboard
Link copied to clipboard
open fun getScrollBarSize(): Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getSolidColor(): Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getTag(): Any
Link copied to clipboard
open fun getTextAlignment(): Int
Link copied to clipboard
open fun getTextDirection(): Int
Link copied to clipboard
Link copied to clipboard
fun getTop(): Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getVisibility(): Int
Link copied to clipboard
fun getWidth(): Int
Link copied to clipboard
open fun getWindowId(): WindowId
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getX(): Float
Link copied to clipboard
open fun getY(): Float
Link copied to clipboard
open fun getZ(): Float
Link copied to clipboard
Link copied to clipboard
open fun hasFocus(): Boolean
Link copied to clipboard
open fun hasFocusable(): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun inflate(context: Context, resource: Int, root: ViewGroup): View
Link copied to clipboard
open fun invalidate(dirty: Rect)
Link copied to clipboard
open fun invalidateDrawable(drawable: Drawable)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun isActivated(): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun isClickable(): Boolean
Link copied to clipboard
Link copied to clipboard
open fun isDirty(): Boolean
Link copied to clipboard
Link copied to clipboard
open fun isEnabled(): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun isFocused(): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun isHovered(): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun isInEditMode(): Boolean
Link copied to clipboard
open fun isInLayout(): Boolean
Link copied to clipboard
Link copied to clipboard
open fun isLaidOut(): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun isOpaque(): Boolean
Link copied to clipboard
Link copied to clipboard
open fun isPivotSet(): Boolean
Link copied to clipboard
Link copied to clipboard
open fun isPressed(): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun isSelected(): Boolean
Link copied to clipboard
Link copied to clipboard
open fun isShown(): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun isVisibleToUserForAutofill(virtualId: Int): Boolean
Link copied to clipboard
Link copied to clipboard
open fun keyboardNavigationClusterSearch(currentCluster: View, direction: Int): View
Link copied to clipboard
open fun layout(l: Int, t: Int, r: Int, b: Int)
Link copied to clipboard
fun measure(widthMeasureSpec: Int, heightMeasureSpec: Int)
Link copied to clipboard
open fun offsetLeftAndRight(offset: Int)
Link copied to clipboard
open fun offsetTopAndBottom(offset: Int)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun onCreateViewTranslationRequest(supportedFormats: Array<Int>, requestsCollector: Consumer<ViewTranslationRequest>)
Link copied to clipboard
open fun onCreateVirtualViewTranslationRequests(virtualIds: Array<Long>, supportedFormats: Array<Int>, requestsCollector: Consumer<ViewTranslationRequest>)
Link copied to clipboard
open fun onDragEvent(event: DragEvent): Boolean
Link copied to clipboard
open fun onDraw(canvas: Canvas)
Link copied to clipboard
open fun onDrawForeground(canvas: Canvas)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun onHoverChanged(hovered: Boolean)
Link copied to clipboard
open fun onHoverEvent(event: MotionEvent): Boolean
Link copied to clipboard
open fun onKeyDown(keyCode: Int, event: KeyEvent): Boolean
Link copied to clipboard
open fun onKeyLongPress(keyCode: Int, event: KeyEvent): Boolean
Link copied to clipboard
open fun onKeyMultiple(keyCode: Int, repeatCount: Int, event: KeyEvent): Boolean
Link copied to clipboard
open fun onKeyPreIme(keyCode: Int, event: KeyEvent): Boolean
Link copied to clipboard
open fun onKeyShortcut(keyCode: Int, event: KeyEvent): Boolean
Link copied to clipboard
open fun onKeyUp(keyCode: Int, event: KeyEvent): Boolean
Link copied to clipboard
open fun onPointerCaptureChange(hasCapture: Boolean)
Link copied to clipboard
open fun onProvideAutofillStructure(structure: ViewStructure, flags: Int)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun onProvideStructure(structure: ViewStructure)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun onResolvePointerIcon(event: MotionEvent, pointerIndex: Int): PointerIcon
Link copied to clipboard
open fun onRtlPropertiesChanged(layoutDirection: Int)
Link copied to clipboard
open fun onScreenStateChanged(screenState: Int)
Link copied to clipboard
open fun onScrollCaptureSearch(localVisibleRect: Rect, windowOffset: Point, targets: Consumer<ScrollCaptureTarget>)
Link copied to clipboard
Link copied to clipboard
open fun onTouchEvent(event: MotionEvent): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun onVisibilityAggregated(isVisible: Boolean)
Link copied to clipboard
open fun onWindowFocusChanged(hasWindowFocus: Boolean)
Link copied to clipboard
Link copied to clipboard
open fun performAccessibilityAction(action: Int, arguments: Bundle): Boolean
Link copied to clipboard
open fun performClick(): Boolean
Link copied to clipboard
Link copied to clipboard
open fun performHapticFeedback(feedbackConstant: Int): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun playSoundEffect(soundConstant: Int)
Link copied to clipboard
open fun post(action: Runnable): Boolean
Link copied to clipboard
open fun postDelayed(action: Runnable, delayMillis: Long): Boolean
Link copied to clipboard
open fun postInvalidate()
Link copied to clipboard
open fun postInvalidateDelayed(delayMilliseconds: Long)
Link copied to clipboard
Link copied to clipboard
open fun postOnAnimation(action: Runnable)
Link copied to clipboard
open fun postOnAnimationDelayed(action: Runnable, delayMillis: Long)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun removeCallbacks(action: Runnable): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun requestLayout()
Link copied to clipboard
Link copied to clipboard
open fun requestRectangleOnScreen(rectangle: Rect): Boolean
Link copied to clipboard
Link copied to clipboard
fun <T : View?> requireViewById(id: Int): T
Link copied to clipboard
open fun resetPivot()
Link copied to clipboard
open fun resolveSize(size: Int, measureSpec: Int): Int
Link copied to clipboard
open fun resolveSizeAndState(size: Int, measureSpec: Int, childMeasuredState: Int): Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun saveAttributeDataForStyleable(context: Context, styleable: Array<Int>, attrs: AttributeSet, t: TypedArray, defStyleAttr: Int, defStyleRes: Int)
Link copied to clipboard
Link copied to clipboard
open fun scheduleDrawable(who: Drawable, what: Runnable, when: Long)
Link copied to clipboard
open fun scrollBy(x: Int, y: Int)
Link copied to clipboard
open fun scrollTo(x: Int, y: Int)
Link copied to clipboard
open fun sendAccessibilityEvent(eventType: Int)
Link copied to clipboard
open fun setAccessibilityHeading(isHeading: Boolean)
Link copied to clipboard
Link copied to clipboard
open fun setAccessibilityPaneTitle(accessibilityPaneTitle: CharSequence)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun setActivated(activated: Boolean)
Link copied to clipboard
open fun setAllowClickWhenDisabled(clickableWhenDisabled: Boolean)
Link copied to clipboard
open fun setAlpha(alpha: Float)
Link copied to clipboard
open fun setAnimation(animation: Animation)
Link copied to clipboard
open fun setAnimationMatrix(matrix: Matrix)
Link copied to clipboard
open fun setAutofillHints(autofillHints: Array<String>)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun setBackground(background: Drawable)
Link copied to clipboard
open fun setBackgroundColor(color: Int)
Link copied to clipboard
open fun setBackgroundDrawable(background: Drawable)
Link copied to clipboard
open fun setBackgroundResource(resid: Int)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun setBottom(bottom: Int)
Link copied to clipboard
open fun setCameraDistance(distance: Float)
Link copied to clipboard
open fun setClickable(clickable: Boolean)
Link copied to clipboard
open fun setClipBounds(clipBounds: Rect)
Link copied to clipboard
open fun setClipToOutline(clipToOutline: Boolean)
Link copied to clipboard
open fun setContentCaptureSession(contentCaptureSession: ContentCaptureSession)
Link copied to clipboard
open fun setContentDescription(contentDescription: CharSequence)
Link copied to clipboard
open fun setContextClickable(contextClickable: Boolean)
Link copied to clipboard
open fun setDefaultFocusHighlightEnabled(defaultFocusHighlightEnabled: Boolean)
Link copied to clipboard
Link copied to clipboard
open fun setDrawingCacheEnabled(enabled: Boolean)
Link copied to clipboard
open fun setDrawingCacheQuality(quality: Int)
Link copied to clipboard
Link copied to clipboard
open fun setElevation(elevation: Float)
Link copied to clipboard
open fun setEnabled(enabled: Boolean)
Link copied to clipboard
open fun setFadingEdgeLength(length: Int)
Link copied to clipboard
Link copied to clipboard
open fun setFitsSystemWindows(fitSystemWindows: Boolean)
Link copied to clipboard
open fun setFocusable(focusable: Boolean)
Link copied to clipboard
open fun setFocusableInTouchMode(focusableInTouchMode: Boolean)
Link copied to clipboard
open fun setFocusedByDefault(isFocusedByDefault: Boolean)
Link copied to clipboard
open fun setForceDarkAllowed(allow: Boolean)
Link copied to clipboard
open fun setForeground(foreground: Drawable)
Link copied to clipboard
open fun setForegroundGravity(gravity: Int)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun setFrameBitmap(frameBitmap: Bitmap)
设置扫描框图片
Link copied to clipboard
open fun setFrameColor(@ColorInt frameColor: Int)
设置 扫描区边框的颜色
Link copied to clipboard
open fun setFrameCornerColor(@ColorInt frameCornerColor: Int)
设置扫描区边角的颜色
Link copied to clipboard
open fun setFrameCornerSize(frameCornerSize: Int)
open fun setFrameCornerSize(frameCornerSize: Int, unit: Int)
设置扫描区边角的高
Link copied to clipboard
open fun setFrameCornerStrokeWidth(frameCornerStrokeWidth: Int)
设置扫描区边角的宽
Link copied to clipboard
open fun setFrameDrawable(@DrawableRes drawableResId: Int)
设置扫描框图片
Link copied to clipboard
设置扫描框的对齐方式;默认居中对齐;即:CENTER
Link copied to clipboard
open fun setFrameHeight(frameHeight: Int)
设置扫描框的高度
Link copied to clipboard
open fun setFrameLineStrokeWidth(frameLineStrokeWidth: Int)
设置边框线宽度
Link copied to clipboard
open fun setFramePadding(left: Float, top: Float, right: Float, bottom: Float)
设置扫描框的间距
Link copied to clipboard
open fun setFramePaddingBottom(framePaddingBottom: Float)
设置扫描框底部的间距
Link copied to clipboard
open fun setFramePaddingLeft(framePaddingLeft: Float)
设置扫描框左边的间距
Link copied to clipboard
open fun setFramePaddingRight(framePaddingRight: Float)
设置扫描框右边的间距
Link copied to clipboard
open fun setFramePaddingTop(framePaddingTop: Float)
设置扫描框顶部的间距
Link copied to clipboard
open fun setFrameRatio(frameRatio: Float)
设置扫描框的与视图宽的占比;默认:0.
Link copied to clipboard
open fun setFrameWidth(frameWidth: Int)
设置扫描框的宽度
Link copied to clipboard
open fun setHapticFeedbackEnabled(hapticFeedbackEnabled: Boolean)
Link copied to clipboard
open fun setHasTransientState(hasTransientState: Boolean)
Link copied to clipboard
open fun setHorizontalFadingEdgeEnabled(horizontalFadingEdgeEnabled: Boolean)
Link copied to clipboard
open fun setHorizontalScrollBarEnabled(horizontalScrollBarEnabled: Boolean)
Link copied to clipboard
open fun setHovered(hovered: Boolean)
Link copied to clipboard
open fun setId(id: Int)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun setKeepScreenOn(keepScreenOn: Boolean)
Link copied to clipboard
Link copied to clipboard
open fun setLabelFor(id: Int)
Link copied to clipboard
open fun setLabelText(labelText: String)
设置提示文本信息
Link copied to clipboard
open fun setLabelTextColor(@ColorInt color: Int)
设置提示文本字体颜色
Link copied to clipboard
设置提示文本字体颜色
Link copied to clipboard
设置提示文本显示位置
Link copied to clipboard
open fun setLabelTextPadding(labelTextPadding: Float)
open fun setLabelTextPadding(labelTextPadding: Float, unit: Int)
设置提示文本距离扫描区的间距
Link copied to clipboard
open fun setLabelTextSize(textSize: Float)
open fun setLabelTextSize(textSize: Float, unit: Int)
设置提示文本字体大小
Link copied to clipboard
open fun setLabelTextWidth(labelTextWidth: Int)
设置提示文本的宽度,默认为View的宽度
Link copied to clipboard
open fun setLaserAnimationInterval(laserAnimationInterval: Int)
设置扫描动画延迟间隔时间,单位:毫秒
Link copied to clipboard
open fun setLaserBitmap(laserBitmap: Bitmap)
设置激光扫描自定义图片
Link copied to clipboard
open fun setLaserBitmapRatio(laserBitmapRatio: Float)
设置扫描线位图的宽度比例;默认为:0.
Link copied to clipboard
open fun setLaserBitmapWidth(laserBitmapWidth: Float)
设置扫描线位图的宽度
Link copied to clipboard
open fun setLaserColor(@ColorInt laserColor: Int)
设置扫描区激光线的颜色
Link copied to clipboard
open fun setLaserDrawable(@DrawableRes drawableResId: Int)
设置激光扫描自定义图片
Link copied to clipboard
open fun setLaserGridColumn(laserGridColumn: Int)
设置网格激光扫描列数
Link copied to clipboard
open fun setLaserGridHeight(laserGridHeight: Int)
设置网格激光扫描高度,为0时,表示动态铺满
Link copied to clipboard
open fun setLaserLineHeight(laserLineHeight: Int)
设置扫描线高度
Link copied to clipboard
open fun setLaserMovementSpeed(laserMovementSpeed: Int)
设置激光扫描的速度:即:每次移动的距离
Link copied to clipboard
设置激光样式
Link copied to clipboard
open fun setLayerPaint(paint: Paint)
Link copied to clipboard
open fun setLayerType(layerType: Int, paint: Paint)
Link copied to clipboard
open fun setLayoutDirection(layoutDirection: Int)
Link copied to clipboard
Link copied to clipboard
fun setLeft(left: Int)
Link copied to clipboard
fun setLeftTopRightBottom(left: Int, top: Int, right: Int, bottom: Int)
Link copied to clipboard
open fun setLongClickable(longClickable: Boolean)
Link copied to clipboard
open fun setMaskColor(@ColorInt maskColor: Int)
设置 扫描区外遮罩的颜色
Link copied to clipboard
open fun setMinimumHeight(minHeight: Int)
Link copied to clipboard
open fun setMinimumWidth(minWidth: Int)
Link copied to clipboard
Link copied to clipboard
open fun setNextClusterForwardId(nextClusterForwardId: Int)
Link copied to clipboard
open fun setNextFocusDownId(nextFocusDownId: Int)
Link copied to clipboard
open fun setNextFocusForwardId(nextFocusForwardId: Int)
Link copied to clipboard
open fun setNextFocusLeftId(nextFocusLeftId: Int)
Link copied to clipboard
open fun setNextFocusRightId(nextFocusRightId: Int)
Link copied to clipboard
open fun setNextFocusUpId(nextFocusUpId: Int)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
设置点击Item监听
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun setOverScrollMode(overScrollMode: Int)
Link copied to clipboard
open fun setPadding(left: Int, top: Int, right: Int, bottom: Int)
Link copied to clipboard
open fun setPaddingRelative(start: Int, top: Int, end: Int, bottom: Int)
Link copied to clipboard
open fun setPivotX(pivotX: Float)
Link copied to clipboard
open fun setPivotY(pivotY: Float)
Link copied to clipboard
open fun setPointAnimation(pointAnimation: Boolean)
设置是否显示结果点缩放动画;默认为:true
Link copied to clipboard
open fun setPointAnimationInterval(pointAnimationInterval: Int)
设置结果点的动画间隔时长;单位:毫秒
Link copied to clipboard
open fun setPointBitmap(bitmap: Bitmap)
设置结果点图片
Link copied to clipboard
open fun setPointColor(@ColorInt pointColor: Int)
设置结果点的颜色
Link copied to clipboard
open fun setPointDrawable(@DrawableRes drawableResId: Int)
设置结果点图片
Link copied to clipboard
open fun setPointerIcon(pointerIcon: PointerIcon)
Link copied to clipboard
open fun setPointRadius(pointRadius: Float)
open fun setPointRadius(pointRadius: Float, unit: Int)
设置结果点的半径
Link copied to clipboard
open fun setPointRangeRadius(pointRangeRadius: Float)
设置结果点有效点击范围半径;默认为:pointStrokeRadiusDEFAULT_RANGE_RATIO 倍; 需要注意的是,因为有效点击范围是建立在结果点的基础之上才有意义的;其主要目的是为了支持一定的容错范围;所以如果在此方法之后; 有直接或间接有调用setPointBitmap方法的话,那么 pointRangeRadius的值将会被覆盖。
Link copied to clipboard
open fun setPointStrokeColor(@ColorInt pointStrokeColor: Int)
设置结果点描边的颜色
Link copied to clipboard
open fun setPointStrokeRadius(pointStrokeRadius: Float)
设置结果点外圈描边的半径;默认为:pointRadiuspointStrokeRatio
Link copied to clipboard
fun setPreferKeepClear(preferKeepClear: Boolean)
Link copied to clipboard
Link copied to clipboard
open fun setPressed(pressed: Boolean)
Link copied to clipboard
open fun setRenderEffect(renderEffect: RenderEffect)
Link copied to clipboard
fun setRevealOnFocusHint(revealOnFocus: Boolean)
Link copied to clipboard
fun setRight(right: Int)
Link copied to clipboard
open fun setRotation(rotation: Float)
Link copied to clipboard
open fun setRotationX(rotationX: Float)
Link copied to clipboard
open fun setRotationY(rotationY: Float)
Link copied to clipboard
open fun setSaveEnabled(enabled: Boolean)
Link copied to clipboard
Link copied to clipboard
open fun setScaleX(scaleX: Float)
Link copied to clipboard
open fun setScaleY(scaleY: Float)
Link copied to clipboard
open fun setScreenReaderFocusable(screenReaderFocusable: Boolean)
Link copied to clipboard
open fun setScrollBarDefaultDelayBeforeFade(scrollBarDefaultDelayBeforeFade: Int)
Link copied to clipboard
open fun setScrollBarFadeDuration(scrollBarFadeDuration: Int)
Link copied to clipboard
open fun setScrollbarFadingEnabled(fadeScrollbars: Boolean)
Link copied to clipboard
open fun setScrollBarSize(scrollBarSize: Int)
Link copied to clipboard
open fun setScrollBarStyle(style: Int)
Link copied to clipboard
open fun setScrollCaptureHint(hint: Int)
Link copied to clipboard
open fun setScrollContainer(isScrollContainer: Boolean)
Link copied to clipboard
open fun setScrollIndicators(indicators: Int)
Link copied to clipboard
open fun setScrollX(value: Int)
Link copied to clipboard
open fun setScrollY(value: Int)
Link copied to clipboard
open fun setSelected(selected: Boolean)
Link copied to clipboard
open fun setSoundEffectsEnabled(soundEffectsEnabled: Boolean)
Link copied to clipboard
open fun setStateDescription(stateDescription: CharSequence)
Link copied to clipboard
open fun setStateListAnimator(stateListAnimator: StateListAnimator)
Link copied to clipboard
Link copied to clipboard
open fun setSystemUiVisibility(visibility: Int)
Link copied to clipboard
open fun setTag(tag: Any)
Link copied to clipboard
open fun setTextAlignment(textAlignment: Int)
Link copied to clipboard
open fun setTextDirection(textDirection: Int)
Link copied to clipboard
open fun setTooltipText(tooltipText: CharSequence)
Link copied to clipboard
fun setTop(top: Int)
Link copied to clipboard
open fun setTouchDelegate(delegate: TouchDelegate)
Link copied to clipboard
open fun setTransitionAlpha(alpha: Float)
Link copied to clipboard
fun setTransitionName(transitionName: String)
Link copied to clipboard
open fun setTransitionVisibility(visibility: Int)
Link copied to clipboard
open fun setTranslationX(translationX: Float)
Link copied to clipboard
open fun setTranslationY(translationY: Float)
Link copied to clipboard
open fun setTranslationZ(translationZ: Float)
Link copied to clipboard
open fun setVerticalFadingEdgeEnabled(verticalFadingEdgeEnabled: Boolean)
Link copied to clipboard
open fun setVerticalScrollBarEnabled(verticalScrollBarEnabled: Boolean)
Link copied to clipboard
open fun setVerticalScrollbarPosition(position: Int)
Link copied to clipboard
open fun setViewfinderStyle(viewfinderStyle: Int)
设置取景框样式;支持:classic:经典样式(带扫描框那种)、popular:流行样式(不带扫描框)
Link copied to clipboard
open fun setVisibility(visibility: Int)
Link copied to clipboard
open fun setWillNotCacheDrawing(willNotCacheDrawing: Boolean)
Link copied to clipboard
open fun setWillNotDraw(willNotDraw: Boolean)
Link copied to clipboard
open fun setX(x: Float)
Link copied to clipboard
open fun setY(y: Float)
Link copied to clipboard
open fun setZ(z: Float)
Link copied to clipboard
open fun setZoomSpeed(zoomSpeed: Float)
设置显示结果点动画的缩放速度;默认为:0.
Link copied to clipboard
Link copied to clipboard
open fun showResultPoints(points: List<Point>)
显示结果点
Link copied to clipboard
open fun showScanner()
显示扫描动画
Link copied to clipboard
Link copied to clipboard
open fun startAnimation(animation: Animation)
Link copied to clipboard
fun startDrag(data: ClipData, shadowBuilder: View.DragShadowBuilder, myLocalState: Any, flags: Int): Boolean
Link copied to clipboard
fun startDragAndDrop(data: ClipData, shadowBuilder: View.DragShadowBuilder, myLocalState: Any, flags: Int): Boolean
Link copied to clipboard
open fun startNestedScroll(axes: Int): Boolean
Link copied to clipboard
open fun stopNestedScroll()
Link copied to clipboard
open fun toString(): String
Link copied to clipboard
Link copied to clipboard
open fun transformMatrixToLocal(matrix: Matrix)
Link copied to clipboard
open fun unscheduleDrawable(who: Drawable, what: Runnable)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun willNotDraw(): Boolean