iT邦幫忙

2021 iThome 鐵人賽

DAY 26
0
自我挑戰組

才30天?一個月學會Android開發系列 第 26

Day-26 修改Icon

昨日提及如何於程式內顯示圖片,

而今天要介紹的內容同樣與圖片有關,

那就是如何修改App的Icon。


Step1-res/drawable右鍵 ▶ new ▶ Image Asset
https://ithelp.ithome.com.tw/upload/images/20211006/201419503V0odcuFMx.png

Step2-於name為此icon命名
https://ithelp.ithome.com.tw/upload/images/20211006/20141950x8t4F6ibnI.png

Step3-設計icon,設計的方向包括Forground Layer/Background Layer/Options

  • Forground Layer
    設計icon圖示,顯示方式分為Image(圖片)、Clipt Art(美工圖案)、Text(純文字)

  • Background Layer
    設計icon背景,背景可為Color(顏色)或是Image(圖片)

  • Options
    icon的呈現,可於Shape設計形狀

Step4-按下Next  ▶  Finish 即完成設計


設計完成後,

進入mainfests/AndroidMainfest.xml,

將icon以及roundicon改為剛剛命名的名稱
https://ithelp.ithome.com.tw/upload/images/20211006/20141950PmCfW8FHd4.png

最後執行模擬器至應用程式查看,若圖示有所不同那麼恭喜你成功了!
https://ithelp.ithome.com.tw/upload/images/20211006/20141950MA71sCG2XL.png


上一篇
Day-25 ImageView
下一篇
Day-27 刪除title bar
系列文
才30天?一個月學會Android開發30
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言