Chinaunix首页 | 论坛 | 博客
  • 博客访问: 15097
  • 博文数量: 7
  • 博客积分: 204
  • 博客等级: 入伍新兵
  • 技术积分: 80
  • 用 户 组: 普通用户
  • 注册时间: 2010-12-22 13:26
文章分类

全部博文(7)

文章存档

2011年(7)

我的朋友
最近访客

分类: 嵌入式

2011-03-17 18:31:46

public final boolean requestWindowFeature (int featureId)
Since:

Enable extended window features. This is a convenience for calling .

设置应用窗体的可扩展性,比如:

requestWindowFeature(Window.FEATURE_LEFT_ICON);

此方法在onCreate()方法中调用,指设置窗体标题右侧可以有一个icon。

Parameters
featureId The desired feature as defined in .
Returns
  • Returns true if the requested feature is supported and now enabled.
See Also


featureId的取值及说明:

int Flag for enabling the Action Bar.
int Flag for requesting an Action Bar that overlays window content.
int Flag for specifying the behavior of action modes when an Action Bar is not present.
int Flag for the context menu.
int Flag for custom title.
int Flag for indeterminate progress
int Flag for having an icon on the left side of the title bar
int Flag for the "no title" feature, turning off the title at the top of the screen.
int Flag for the "options panel" feature.
int Flag for the progress indicator feature
int Flag for having an icon on the right side of the title bar
阅读(2240) | 评论(0) | 转发(0) |
0

上一篇:没有了

下一篇:个性化Dialog

给主人留下些什么吧!~~