Skip to content

XmlIdFormat type

Fredydoss edited this page Oct 19, 2020 · 1 revision

XmlIdFormat-type

Lint to check the prefix of Xml ids. Default Severity Error

Text Items

Issue Id -> XmlIdFormat-Text

Element id prefix
TextView text_
EditText input_

Button Items

Issue Id -> XmlIdFormat-Button

Element id prefix
Button btn_
Chip chip_
ChipGroup chip_group_
CheckBox check_
RadioButton radio_
RadioGroup radio_group_
ToggleButton toggle_
Switch switch_

Widget Items

Issue Id -> XmlIdFormat-Widget

Element id prefix
View view_, divider_
ImageView img_, icon_, image_
WebView web_
VideoView video_
CalendarView calendar_
ProgressBar progress_
Seekbar seek_
RatingBar rating_
SearchView search_
TextureView texture_
SurfaceView surface_

Container Items

Issue Id -> XmlIdFormat-Container

Element id prefix
Spinner spinner_
RecyclerView recycler_, list_
ScrollView scroll_
ViewPager pager_
CardView card_
Toolbar toolbar_
NavigationView nav_
BottomNavigationView bot_nav_
TabLayout tab_
TabItem tab_item_

Helper Items

Issue Id -> XmlIdFormat-Helper

Element id prefix
Group group_
Barrier barrier_
Flow flow_
Guideline guide_
Layer layer_
MockView mock_

Layout Items

Issue Id -> XmlIdFormat-Layout

Element id prefix
Space space_

Google Items

Issue Id -> XmlIdFormat-Google

Element id prefix
MapView map_

Clone this wiki locally