XML ID
These are naming convention for view inside xml layout:
View | Format |
---|---|
Button | btn_{purpose} |
TextView | tv_{purpose} |
EditText | et_{purpose} |
Parent Layout (Linear, Relative, constraint , Etc) | container_{purpose} |
Spinner | spn_{purpose} |
RadioGroup | rg_{purpose} |
RadioButton | rb_{purpose} |
CheckBox | cb_{purpose} |
ImageView | img_{purpose} |
ImageButton | imgBtn_{purpose} |
DatePicker | date_{purpose} |
CalendarView | cal_{purpose} |
ProgressBar | pb_{purpose} |
Chip | chip_{purpose} |
SearchView | src_{purpose} |
View | view_{purpose} |
RecyclerView | rv_{purpose} |
ListView | lv_{purpose} |
CardView | cv_{purpose} |
WebView | wv_{purpose} |
AppBarLayout | appBar_{purpose} |
ViewPager | vp_{purpose} |
Navigation Drawer | nav_{purpose} |
BottomNavigation | bn_{purpose} |