Have the star field visible under the actionbar in ICS and Honeycomb devices.

This commit is contained in:
Kevin Ruland 2012-03-14 01:29:43 +00:00
parent ac51ec6b5a
commit a5d982aa4e
3 changed files with 17 additions and 12 deletions

View File

@ -19,7 +19,8 @@
android:label="@string/app_name" android:label="@string/app_name"
android:theme="@style/AppTheme" > android:theme="@style/AppTheme" >
<activity <activity
android:name=".android.Main"> android:name=".android.Main"
android:theme="@style/AppTheme.Clean" >
<intent-filter> <intent-filter>
<action android:name="android.intent.action.MAIN" /> <action android:name="android.intent.action.MAIN" />
@ -27,7 +28,8 @@
</intent-filter> </intent-filter>
</activity> </activity>
<activity <activity
android:name=".android.rocket.OpenRocketLoaderActivity"> android:name=".android.rocket.OpenRocketLoaderActivity"
android:theme="@style/AppTheme.Clean" >
<!-- <!--
I don't understand why I need to have two different intent filters. I don't understand why I need to have two different intent filters.

View File

@ -3,6 +3,6 @@
<resources> <resources>
<color name="actionbar_title_color">#FFFFFF</color> <color name="actionbar_title_color">#FFFFFF</color>
<color name="actionbar_background_color">#ff000000</color> <color name="actionbar_background_color">#00000000</color>
</resources> </resources>

View File

@ -12,10 +12,14 @@
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
--> -->
<resources> <resources>
<style name="AppTheme.Clean" parent="AppTheme">
<item name="android:windowActionBarOverlay">true</item>
</style>
<style name="AppTheme" parent="android:style/Theme"> <style name="AppTheme" parent="android:style/Theme">
<item name="android:windowTitleSize">@dimen/actionbar_compat_height</item> <item name="android:windowTitleSize">@dimen/actionbar_compat_height</item>
<item name="android:windowTitleBackgroundStyle">@style/ActionBarCompat</item> <item name="android:windowTitleBackgroundStyle">@style/ActionBarCompat</item>
@ -38,6 +42,7 @@
</style> </style>
<style name="ActionBarCompatItemBase"> <style name="ActionBarCompatItemBase">
<!-- layout_width/height must be set in code --> <!-- layout_width/height must be set in code -->
<item name="android:scaleType">center</item> <item name="android:scaleType">center</item>
<item name="android:background">@drawable/actionbar_compat_item</item> <item name="android:background">@drawable/actionbar_compat_item</item>
@ -62,10 +67,8 @@
<item name="android:textColor">@color/actionbar_title_color</item> <item name="android:textColor">@color/actionbar_title_color</item>
</style> </style>
<style name="ActionBarCompatItem" parent="style/ActionBarCompatItemBase"> <style name="ActionBarCompatItem" parent="style/ActionBarCompatItemBase"></style>
</style>
<style name="ActionBarCompatHomeItem" parent="style/ActionBarCompatItemBase"> <style name="ActionBarCompatHomeItem" parent="style/ActionBarCompatItemBase"></style>
</style>
</resources> </resources>