×
Namespaces

Variants
Actions
Revision as of 09:57, 16 August 2012 by hamishwillee (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Archived:改变状态栏的皮肤

From Nokia Developer Wiki
Jump to: navigation, search

Archived.png存档: 这篇文章是存档,因为考虑到今天它与第三方开发者建立商业解决方案不相关。

Article Metadata

兼容于
平台: S60 3rd Edition, S60 3rd Edition, FP1
S60 3rd Edition FP2

文章
翻译:
hoolee
最后由 hamishwillee 在 16 Aug 2012 编辑
  • 详细描述

改变状态栏的皮肤背景,包括信号和电量显示,在S60第三版FP2之前是无法实现的,之前的状态栏是由服务端负责描绘的,但从FP2之后,整个状态栏就属于程序控制了,我们也就可以显示我们想要的背景,信号及电量图示了。


  • 解决方案
MAknsSkinInstance* pSkin = AknsUtils::SkinInstance();
const TAknsItemID elementID = KAknsIIDQsnBgAreaStatus;
 
// KAknsIIDQsnBgAreaStaconRt as TAknsItemID can be used to skin
// status pane in landscape mode
 
// Load desired bitmap for background.
CAknsItemDef* pMenuSkinItemCBA
= AknsUtils::CreateBitmapItemDefL( elementID,
bitmapFile,
EMbmUntitled );
if ( pMenuSkinItemCBA )
{
TRAPD( err_skin, pSkin->SetLocalItemDefL( pMenuSkinItemCBA) );
}

上述代码可用来改变状态栏的皮肤显示(电量和信号除外)

S60第三版FP1上的皮肤

Skinning in 3rd Ed FP1.jpg


S60第三版FP2上的皮肤

Skinning in 3rd Ed FP2.jpg

This page was last modified on 16 August 2012, at 09:57.
182 page views in the last 30 days.
×