2013-04-26 25 views
1

我在項目中導入了像jar一樣的holoeverywhere。但是當我嘗試使用主題時,沒有任何改變。我應該怎麼做才能使它工作?如何在intellij想法中使用holoeverywhere?我可以在2.3下完成的項目中使用holoeverywhere嗎?

package com.example.testholo; 
     import android.app.Activity; 
     import android.os.Bundle; 


     public class MyActivity extends Activity { 
      /** 
      * Called when the activity is first created. 
      */ 

      @Override 
      public void onCreate(Bundle savedInstanceState) { 
       setTheme(com.actionbarsherlock.R.style.Holo_Theme_Fullscreen); 
       super.onCreate(savedInstanceState); 
       setContentView(R.layout.main); 
      } 

    } 

我也有一個2.3下的項目。我如何在2.3版本的完成項目中使用holoeverywhere?

+0

從org.holoeverywhere.app擴展活動***活動 – 2013-04-26 09:24:09

回答

0

打開模塊設置 - 庫 - + - 來自Maven - 類型org.holoeverywhere:庫:1.5.0 - 確定。 指定一些dirs,IDEA應自動導入並連接來自Maven回購庫的HoloEverywhere。
另請參見演示項目 - 您應該使用org.holoeverywhere。*類,而不是android。*。

相關問題