4
我正在嘗試使用HoloEverywhere,無法弄清楚如何安裝它。我遵循了在this GitHub頁面上列出的內容。我只是得到很多錯誤。有誰知道如何讓這與Android 2.3.3 API 10一起工作?我正在運行的Android開發工具構建:v21.1.0-569685HoloEverywhere Eclipse安裝
我正在嘗試使用HoloEverywhere,無法弄清楚如何安裝它。我遵循了在this GitHub頁面上列出的內容。我只是得到很多錯誤。有誰知道如何讓這與Android 2.3.3 API 10一起工作?我正在運行的Android開發工具構建:v21.1.0-569685HoloEverywhere Eclipse安裝
嘿只是試試這個:(給很多答案,因爲可能是一個爲你工作): -
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" >
只需更新您的Eclipse ADT和Android SDK和遵循這個步驟
謝謝,夥計..我一直在尋找這樣簡單的東西一個小時左右。 :P – 2014-02-12 17:37:12