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:theme="@style/AppTheme" >
<activity
android:name=".android.Main">
android:name=".android.Main"
android:theme="@style/AppTheme.Clean" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
@ -27,14 +28,15 @@
</intent-filter>
</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.
Combining the <data> elements into a single field did not result in a working
application. The first intent-filter (with mimeType wildcard) convinces the
file browser to associate the correct launcher icon. the second intent-filter
is actually invoked when a file is selected.
is actually invoked when a file is selected.
-->
<!-- this intent filter convinces the file browser to display icons -->
<intent-filter>

View File

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

View File

@ -11,11 +11,15 @@
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
limitations under the License.
-->
<resources>
<style name="AppTheme.Clean" parent="AppTheme">
<item name="android:windowActionBarOverlay">true</item>
</style>
<style name="AppTheme" parent="android:style/Theme">
<item name="android:windowTitleSize">@dimen/actionbar_compat_height</item>
<item name="android:windowTitleBackgroundStyle">@style/ActionBarCompat</item>
@ -36,8 +40,9 @@
<style name="ActionBarCompatHomeAsUp">
<item name="android:background">@drawable/ic_home_carat</item>
</style>
<style name="ActionBarCompatItemBase">
<!-- layout_width/height must be set in code -->
<item name="android:scaleType">center</item>
<item name="android:background">@drawable/actionbar_compat_item</item>
@ -62,10 +67,8 @@
<item name="android:textColor">@color/actionbar_title_color</item>
</style>
<style name="ActionBarCompatItem" parent="style/ActionBarCompatItemBase">
</style>
<style name="ActionBarCompatItem" parent="style/ActionBarCompatItemBase"></style>
<style name="ActionBarCompatHomeItem" parent="style/ActionBarCompatItemBase">
</style>
<style name="ActionBarCompatHomeItem" parent="style/ActionBarCompatItemBase"></style>
</resources>
</resources>