一、 添加assets文件夾
Let Android Studio do it for you.
In Android Studio (1.0 & above), right-click on the
enter image description here
*.
enter image description here
On the next screen just click *Finish
*.
enter image description here
And voila! It will create the *assets
- folder in the *main
-
target source set.
enter image description here
二、Android Studio如何快速生成get,set,tostring,構造函數
剛開始使用Android Studio時,在創建一個javabean時,很習慣的在JavaBean類中,右鍵去找生成get,set等選項。但是很遺憾,找不到。
那這邊如何快速的set,get或者生成構造函數,生成toString方法。
有兩種方式:
方式一:Code-->Generate
方式二:通過快捷鍵Alt+Insert
這時,在彈出的對話框中就可以選擇你所需要的對應的東東了。