开发者

Android: read window title resource id

开发者 https://www.devze.com 2023-03-28 04:08 出处:网络
I am trying to create a custom title layout but I\'d still want to use the activity\'s original label text. Is there a way to reference the window 开发者_C百科title (label attribute) in my custom titl

I am trying to create a custom title layout but I'd still want to use the activity's original label text. Is there a way to reference the window 开发者_C百科title (label attribute) in my custom title xml? Thanks.


You can try to override Activity.onTitleChanged() method. I've never tried this solution but it must work according to the Android source code.

0

精彩评论

暂无评论...
验证码 换一张
取 消