2014-03-05 24 views
0

我有這樣的配置對於一個活動恢復動作條

 <activity 
     android:name="com.enterprise.app.MainActivity" 
     android:label="@string/app_name" 
     android:theme="@android:style/Theme.NoTitleBar" > 
     <intent-filter> 
      <action android:name="android.intent.action.MAIN" /> 
      <category android:name="android.intent.category.LAUNCHER" /> 
     </intent-filter> 
    </activity> 

但我需要證明的時候是在平板電腦還是有大分辨率的一些裝置的動作條。有關此任務的一些提示或建議?

回答

3

創建兩種樣式,一種在values中,另一種在values-sw600dp中。

價值風格

<style name="Your.Theme" parent="@android:style/Theme.NoTitleBar" /> 

價值觀sw600dp風格

<style name="Your.Theme" parent="@android:style/Theme.Holo.Light" /> 
+1

真棒!先生,你救了我的一天,謝謝你的幫助! –