CopyPastor

Detecting plagiarism made easy.

Score: 0.8157979146097646; Reported for: String similarity Open both answers

Possible Plagiarism

Plagiarized on 2018-03-19
by Rishabh Saxena

Original Post

Original - Posted on 2012-02-12
by San



            
Present in both answers; Present only in the new answer; Present only in the old answer;



As per documentation - "You can control the behaviors and visibility of the action bar with the ActionBar APIs, which were added in Android 3.0 (API level 11)."
So, ActionBar will not work for your target environment which is at API level 10 (Android 2.3.3).
Just in case, if you target for minimum API level 11 , you can change ActionBar's background color by defining custom style, as:
<resources> <style name="MyTheme" parent="@android:style/Theme.Holo.Light"> <item name="android:actionBarStyle">@style/MyActionBar</item> </style> <style name="MyActionBar" parent="@android:style/Widget.Holo.Light.ActionBar"> <item name="android:background">ANY_HEX_COLOR_CODE</item> </style> </resources>
And, set "MyTheme" as theme for application / activity.


As per [documentation](http://developer.android.com/guide/topics/ui/actionbar.html) - "You can control the behaviors and visibility of the action bar with the ActionBar APIs, which were added in Android 3.0 (API level 11)."
So, ActionBar will not work for your target environment which is at API level 10 (Android 2.3.3).
Just in case, if you target for minimum API level 11 , you can change ActionBar's background color by defining custom style, as:
<resources> <style name="MyTheme" parent="@android:style/Theme.Holo.Light"> <item name="android:actionBarStyle">@style/MyActionBar</item> </style>
<style name="MyActionBar" parent="@android:style/Widget.Holo.Light.ActionBar"> <item name="android:background">ANY_HEX_COLOR_CODE</item> </style> </resources>
And, set "MyTheme" as theme for application / activity.
Hope this helps...

        
Present in both answers; Present only in the new answer; Present only in the old answer;