乡下人产国偷v产偷v自拍,国产午夜片在线观看,婷婷成人亚洲综合国产麻豆,久久综合给合久久狠狠狠9

  • <output id="e9wm2"></output>
    <s id="e9wm2"><nobr id="e9wm2"><ins id="e9wm2"></ins></nobr></s>

    • 分享

      WindowManager.LayoutParams(下)

       點(diǎn)點(diǎn)滴滴 2012-08-09

      WindowManager.LayoutParams(下)  

      2011-08-07 08:08:54|  分類: Android基礎(chǔ) |  標(biāo)簽:windowmanager   |字號(hào) 訂閱

      本文參照自:http://developer./reference/android/view/WindowManager.LayoutParams.html
      BRIGHTNESS系列
      該系列主要用于設(shè)置window的brightness(screenBrightness/buttonBrightness)。我們可以通過WindowManager.LayoutParamsscreenBrightness/buttonBrightness變量直接進(jìn)行設(shè)置。
      其中screenBrightness表示屏幕的brightness,而buttonBrightness表示一般按鍵和鍵盤按鍵的brightness
      floatBRIGHTNESS_OVERRIDE_FULLValue for screenBrightness and buttonBrightness 
      indicating that the screen or button backlight brightness should be set to the hightest value
      when this window is in front.
      brightness(screenBrightness/buttonBrightness)設(shè)置到最高值。
      floatBRIGHTNESS_OVERRIDE_NONEDefault value for screenBrightness and buttonBrightness indicating that the brightness value is not overridden for this window and normal brightness policy should be used.
      不對(duì)brightness(screenBrightness/buttonBrightness)重新進(jìn)行設(shè)置,采用默認(rèn)的普通值。
      floatBRIGHTNESS_OVERRIDE_OFFValue for screenBrightness and buttonBrightness indicating that the screen or button backlight brightness should be set to the lowest value when this window is in front.
      brightness(screenBrightness/buttonBrightness)設(shè)置到最低值。
      changed系列
      該系列主要用于 int copyFrom (WindowManager.LayoutParams o)函數(shù)中。
      在函數(shù)中,首先將用參數(shù)中傳入的WindowManager.LayoutParams的信息復(fù)制到本WindowManager.LayoutParams,然后返回一個(gè)整數(shù),以bite形式表示調(diào)用該函數(shù)后WindowManager.LayoutParams的哪些信息發(fā)送了變化
      intALPHA_CHANGED用于表示成員變量alpha是否被改變
      intANIMATION_CHANGED用于表示成員變量windowAnimations是否被改變
      intDIM_AMOUNT_CHANGED用于表示成員變量dimAmount是否被改變
      intFLAGS_CHANGED用于表示成員變量flags是否被改變
      intLAYOUT_CHANGED用于表示layout是否被改變.這里的layout是指以下變量所包含的信息:
      width,height,x,y, verticalMargin,verticalWeight,horizontalMargin,horizontalWeight
      intSCREEN_BRIGHTNESS_CHANGED用于表示brightness是否被改變.
      這里的
      brightness是指以下變量對(duì)應(yīng)的信息:screenBrightness,buttonBrightness
      intSCREEN_ORIENTATION_CHANGED用于表示成員變量screenOrientation是否被改變
      intSOFT_INPUT_MODE_CHANGED用于表示成員變量softInputMode是否被改變
      intTITLE_CHANGED用于表示成員變量title是否被改變
      intTYPE_CHANGED用于表示成員變量type是否被改變
      intFORMAT_CHANGEDConstant Value: 8 (0x00000008)
      用于表示成員變量format是否被改變
      成員變量
      繼承于ViewGroup.LayoutParams的成員變量
      public intheightInformation about how tall the view wants to be.
      public LayoutAnimationController.AnimationParameterslayoutAnimationParametersUsed to animate layouts.
      public intwidthInformation about how wide the view wants to be.
      自身的成員變量
      public static final Creator<WindowManager.LayoutParams>CREATOR
      public floatalphaAn alpha value to apply to this entire window.
      public floatbuttonBrightnessThis can be used to override the standard behavior of the button and keyboard backlights.
      public floatdimAmountWhen FLAG_DIM_BEHIND is set, this is the amount of dimming to apply.
      public intflagsVarious behavioral options/flags.
      public intformatThe desired bitmap format.
      public intgravityPlacement of window within the screen as per Gravity.
      public floathorizontalMarginThe horizontal margin, as a percentage of the container's width, between the container and the widget.
      public floathorizontalWeightIndicates how much of the extra space will be allocated horizontally to the view associated with these LayoutParams.
      public intmemoryTypeThis field is deprecated. this is ignored
      public StringpackageNameName of the package owning this window.
      public floatscreenBrightnessThis can be used to override the user's preferred brightness of the screen.
      public intscreenOrientationSpecific orientation value for a window.
      public intsoftInputModeDesired operating mode for any soft input area.
      public intsystemUiVisibilityControl the visibility of the status bar.
      public IBindertokenIdentifier for this window.
      public inttypeThe general type of window.
      public floatverticalMarginThe vertical margin, as a percentage of the container's height, between the container and the widget.
      public floatverticalWeightIndicates how much of the extra space will be allocated vertically to the view associated with these LayoutParams.
      public intwindowAnimationsA style resource defining the animations to use for this window.
      public intxX position for this window.
      public intyY position for this window.
      成員函數(shù)
      ublic Methods
      final intcopyFrom(WindowManager.LayoutParams o)
      Stringdebug(String output)
      Returns a String representation of this set of layout parameters.
      intdescribeContents()
      Describe the kinds of special objects contained in this Parcelable's marshalled representation.
      final CharSequencegetTitle()
      static booleanmayUseInputMethod(int flags)
      Given a particular set of window manager flags, determine whether such a window may be a target for an input method when it has focus.
      final voidsetTitle(CharSequence title)
      StringtoString()
      Returns a string containing a concise, human-readable description of this object.
      voidwriteToParcel(Parcel out, int parcelableFlags)
      Flatten this object in to a Parcel.
      結(jié)束!

        本站是提供個(gè)人知識(shí)管理的網(wǎng)絡(luò)存儲(chǔ)空間,所有內(nèi)容均由用戶發(fā)布,不代表本站觀點(diǎn)。請(qǐng)注意甄別內(nèi)容中的聯(lián)系方式、誘導(dǎo)購買等信息,謹(jǐn)防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊一鍵舉報(bào)。
        轉(zhuǎn)藏 分享 獻(xiàn)花(0

        0條評(píng)論

        發(fā)表

        請(qǐng)遵守用戶 評(píng)論公約

        類似文章 更多