APIDEMO ACTIVITY 窗口Window标题的设置

 requestWindowFeature(Window.FEATURE_CUSTOM_TITLE); //请求
        setContentView(R.layout.custom_title);
        getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE, R.layout.custom_title_1); //设置,

前请求然后才能设置。

featureid 有:

 

intDEFAULT_FEATURES The default features enabled
intFEATURE_CONTEXT_MENU Flag for the context menu.
intFEATURE_CUSTOM_TITLE Flag for custom title.
intFEATURE_INDETERMINATE_PROGRESS Flag for indeterminate progress
intFEATURE_LEFT_ICON Flag for having an icon on the left side of the title bar
intFEATURE_NO_TITLE Flag for the "no title" feature, turning off the title at the top of the screen.
intFEATURE_OPTIONS_PANEL Flag for the "options panel" feature.
intFEATURE_PROGRESS Flag for the progress indicator feature
intFEATURE_RIGHT_ICON Flag for having an icon on the right side of the title bar
intID_ANDROID_CONTENT The ID that the main layout in the XML layout file should have.
intPROGRESS_END Ending value for the (primary) progress
intPROGRESS_INDETERMINATE_OFF Flag for setting the progress bar's indeterminate mode off
intPROGRESS_INDETERMINATE_ON Flag for setting the progress bar's indeterminate mode on
intPROGRESS_SECONDARY_END Highest possible value for the secondary progress
intPROGRESS_SECONDARY_START Lowest possible value for the secondary progress
intPROGRESS_START Starting value for the (primary) progress
intPROGRESS_VISIBILITY_OFF Flag for setting the progress bar's visibility to GONE
intPROGRESS_VISIBILITY_ON Flag for setting the progress bar's visibility to VISIBLE
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值