2014-02-24 31 views
0

如何讓我的Android應用程序使用最新的風格指南?例如,我的紡紗廠是這樣的:Android - 更新最新的Spinner風格

enter image description here

,而不是這樣的:

enter image description here

有什麼我可以更新使得跨應用程序的所有投入要素使用最新的樣式(而不必定義自定義樣式?)

回答

3

看起來您可以將其添加到清單中的活動中:

android:theme="@android:style/Theme.Holo.Light.Dialog" 

下面是完整的例子:

<activity 
      android:name="com.bip_test.activities.ShareActivity" 
      android:label="@string/title_activity_share" 
      android:theme="@android:style/Theme.Holo.Light.Dialog" 
      android:screenOrientation="portrait" > 
+0

我建議加上的參考應用標籤的主題,所以它適用於所有活動: <應用軟件Android:主題=「@機器人:風格/Theme.Holo.Light.Dialog「> – simoneL