开发者

How to add a button in Android application title

开发者 https://www.devze.com 2023-03-08 15:47 出处:网络
I just want to add a button (may be a refresh button) in the title of an application in my android application.

I just want to add a button (may be a refresh button) in the title of an application in my android application.

Please guide... and provide code blo开发者_开发知识库ck if possible...

Thanks in advance


I believe you are talking about a Actionbar but that does not offer backwards compatibility prior to API Level 11. There are several open source actionbar implementations, such as this, this, or this. Or, you can simply create one yourself.


Check this API tutorial:

http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/app/CustomTitle.html

or this Stackoverflow article:

Android: How to create a Dialog with a Scrolling title?

0

精彩评论

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