开发者

Activity layout inheritance

开发者 https://www.devze.com 2023-01-05 04:16 出处:网络
I start develop application on Android! I need to show common control on the top of few screens. In Blackberry I just inherit my screens from base screen with needed controls and it inherit UI and beh

I start develop application on Android! I need to show common control on the top of few screens. In Blackberry I just inherit my screens from base screen with needed controls and it inherit UI and behaviour from base type.

How can i do similar thing in Android? I mean, how can i organize it? Maybe, i need to create control or layout, which i can use on my screens? Or i need inherit one activity from another and use addContentView()?

What opportunities are there and what advantages 开发者_Python百科/ disadvantages of each?


Try the <include> XML layout directive.

0

精彩评论

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