0

我對Android Studio中的Android應用的主題有疑問。當我創建一個新項目時,我希望有一個材料設計主題,但是我沒有選擇這個活動主題。Android Studio:向移動設備添加活動(Material Design)

在第一張照片上,您可以看到我添加活動的視圖,並在第二張照片上看到我想要的圖像。

我目前的觀點

My current theme

材質設計視圖

Material design theme

有沒有人有一個解決方案是如何設定Android工作室,這樣我就可以有一個圖,該在第二張照片上顯示?

回答

0

我找到了這個問題的答案。

要在項目嚮導中提供此項目模板(材料設計),您需要安裝Android Studio 1.4或更高版本。

詳細信息請參考以下鏈接:Android Studio 1.4 Release

0

我不知道我是否在嚮導中顯示。位元素是一種風格。這種風格是由谷歌推薦的指南。因此,您可以使用材料設計來編寫代碼。例如,您可以使用浮動動作按鈕或美麗色彩的組合,或在您的視圖中使用簡單的動畫或在列表視圖中使用卡片。

0

如果您有最新的Android API,SDK,那麼您將默認獲得材料設計;即使您不會使用嚮導來添加活動。

+0

我已經安裝了API 22(棒棒堂),但屏幕從第一張照片添加活動模式仍然呈現。 – Nikola

0

不知道如果我在這裏找錯了樹,但僅作參考,這裏是我已經安裝了Android的SDK組件:

enter image description here

這裏是buildscript,Android和我的build.gradle的依賴性部分:

enter image description here enter image description here enter image description here

和La ST但並非最不重要的Android Studio版本:

enter image description here

0
If you couldn't find the tool fix, you can anyway inherit your activity from appcompactactivity. 
And change your androidmanifest as follows to get material design feel 
<application 
     //your stuff 
     android:theme="@style/Theme.AppCompat.Light.NoActionBar" 

不要忘了添加以下depenency中的build.gradle和同步

編譯「com.android.support:appcompat- v7:22.0.0'