以下是我的應用程序標題,我想在「DD/MM」位置設置當前日期時間。我怎樣才能以編程方式做到這一點?我使用actionBarSherlock如何以編程方式在actionBar Sherlock中設置文本
這是我如何設定的背景:
<style name="AppBaseTheme" parent="Theme.Sherlock.Light.DarkActionBar">
<item name="actionBarStyle">@style/Widget.MyTheme.ActionBar</item>
<item name="android:actionBarStyle">@style/Widget.MyTheme.ActionBar</item>
</style>
<style name="Widget.MyTheme.ActionBar" parent="Widget.Sherlock.ActionBar">
<item name="android:background">@drawable/abs_bg</item>
<item name="background">#ffffff</item>
</style>
你能提供你如何建立標頭中的代碼示例? – jimmithy
標題是一個圖像,還沒有textview。我添加了代碼。查看問題的編輯 –