我正在尝试使用HoloEverywhere并且无法弄清楚如何安装它。我已经按照this GitHub页面上列出的内容进行了操作。我只是犯了很多错误。有谁知道如何使这与Android 2.3.3 API 10一起使用?我正在运行Android Developer Tools Build:v21.1.0-569685
答案 0 :(得分:1)
只需更新您的Eclipse ADT和Android SDK并按照以下步骤操作
答案 1 :(得分:0)
嘿,试试这个:(给出很多答案,因为可能有一个适合你): -
android:theme=“@style/Theme.Holo
// or if you want to use the Holo light theme:
android:theme=“@style/Theme.Holo.Light
也是这样:
Theme.Holo and Theme.Holo.Light have been available since API level 11, but Theme.Holo.Light.DarkActionBar is new in API level 14.
res/values/themes.xml:
<resources>
<style name="MyTheme" parent="@android:style/Theme">
<!-- Any customizations for your app running on pre-3.0 devices here -->
</style>
</resources>
res/values-v11/themes.xml:
<resources>
<style name="MyTheme" parent="@android:style/Theme.Holo">
<!-- Any customizations for your app running on devices with Theme.Holo here -->
</style>
</resources>
Finally, in AndroidManifest.xml:
<!-- [...] -->
<application android:name="MyApplication"
android:label="@string/application_label"
android:icon="@drawable/app_icon"
android:hardwareAccelerated="true"
android:theme="@style/MyTheme">
<!-- [...] -->
和活动:
<activity
android:name=".login"
android:label="@string/login"
android:noHistory="true"
android:theme="@android:style/Theme.Holo.Light"/>
<activity
android:name=".Preferences"
android:theme="@android:style/Theme.Holo.Light" >