2013-02-22 105 views
4

我正在嘗試使用HoloEverywhere,無法弄清楚如何安裝它。我遵循了在this GitHub頁面上列出的內容。我只是得到很多錯誤。有誰知道如何讓這與Android 2.3.3 API 10一起工作?我正在運行的Android開發工具構建:v21.1.0-569685HoloEverywhere Eclipse安裝

回答

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" > 
1

只需更新您的Eclipse ADT和Android SDK和遵循這個步驟

  1. 輸入到https://github.com/Prototik/HoloEverywhere
  2. 單擊下載ZIP
  3. 解壓縮文件下載
  4. 打開ADT
  5. 選擇File> Import>的Android>將現有Android代碼導入 工作空間>接下來
  6. 在根目錄單擊瀏覽...並搜索在步驟3中創建的文件夾
  7. 打開該文件夾並選擇庫文件夾,然後單擊打開
  8. 然後點擊完成,等待,直到它加載
  9. 右鍵點擊你的現有項目並選擇屬性>安卓> 點擊添加...
  10. 選擇HoloEverywhere庫,然後單擊OK,點擊屬性 OK窗口
+0

謝謝,夥計..我一直在尋找這樣簡單的東西一個小時左右。 :P – 2014-02-12 17:37:12