WindowManager.LayoutParams 各種Type值介紹

转自http://www.cmd100.com/bbs/forum.php?mod=viewthread&tid=9313

public static final intTYPE_APPLICATION

Since:
API Level 1


(
一般應用程式的視窗型態)

Constant Value:
2(0x00000002)

public static final int TYPE_APPLICATION_ATTACHED_DIALOG

Since:
API Level 3


(
屬於對話框等級的,位置在程式視窗型態之上)

Constant Value:
1003(0x000003eb)

Constant Value:
1001(0x000003e9)

public static final int TYPE_APPLICATION_PANEL

Since:
API Level 1


(
跟對話框很像,位置在程式視窗型態之上)

Constant Value:
1000(0x000003e8)

public static final int TYPE_BASE_APPLICATION

Since:
API Level 1


(
會在其他應用程式的下方)

Constant Value:
1(0x00000001)

public static final int TYPE_PHONE

Since:
API Level 1

TYPE_PHONE.png


(
視窗會呈現在所有的應用程式之上,就像來電提示 )

 

(重要提示,當這樣設置時依然可以控制後面的控件)

Constant Value:
2002(0x000007d2)

public static final int TYPE_PRIORITY_PHONE

Since:
API Level 1


(
與上面的分不出差別,但可以看出的差別就是當兩個視窗一個是優先另一個非優先,兩個都顯示時,非優先會被優先檔在後面無法顯示,注意:這個設定可能會導致來電時無法正確顯示)

Constant Value:
2007(0x000007d7)

public static final int TYPE_STATUS_BAR

Since:
API Level 1


(
測試時無法使用,尚待測試)

Constant Value:
2000(0x000007d0)

public static final int TYPE_SYSTEM_ALERT

Since:
API Level 1


(
實際測試與PHONE一樣等級的視窗)

Constant Value:
2003(0x000007d3)

public static final int TYPE_SYSTEM_ERROR

Since:
API Level 1


(
優先及最高的,通常用來處理系統錯誤,注意,這個比優先電話還要注意擋住頁面)

Constant Value:
2010(0x000007da)

public static final int TYPE_SYSTEM_OVERLAY

Since:
API Level 1


(
說誰比較高呢?這個視系統層級的,缺點是這個將無法再繼續回應控件,等於廢物畫面)

Constant Value:
2006(0x000007d6)

public static final int TYPE_TOAST

Since:
API Level 1


(
與上面一樣,階層較低,一樣不法回應事件)

Constant Value:
2005(0x000007d5)

public static final int TYPE_WALLPAPER

Since:
API Level 5


(
與上面接紹的相反,會在所有視窗的底端)

Constant Value:
2013(0x000007dd)

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值