XML 네이밍
xml file
Snake Case
- activity_main
- item_main
- menu_main
drawable
Snake Case
- 전적으로 디잔 선생님들의 피그마 추출 네이밍 따르기
- Button 아이콘 ⇒ ic_[where]_[what]
- 공용으로 사용될 아이콘(툴바, 앱바 등)은 [where] 생략
- 이미지 ⇒ img_[where]_[what]
- 배경 ⇒ bg_[where]_[what]
shape
- shape_[shape][radiusNum][color]_[fill/line].xml
- shape ⇒ rect, tri, circle
- 만약 위에만 radius 10dp 줘야하는 경우 [radiusNum]에 top10을 넣어주자 (아래는 bot)
- ex) shape_rect_10_white000_fill
- ex) shape_rect_top10_white000_fill_gray100_line
selector
- sel_[where][type][what].xml
- ex) sel_main_color_bnv_menu
- ex) sel_main_icon_bnv_profile
Component
[view][where][description] (뷰이름_화면_무엇을 나타내는지)
ex) tv_main_title