No need to write your own XML, there's a standard Material design chevron.
In Android Studio, click File
-> New
-> Vector Asset
, then click the icon (button with Android logo) and search for "Arrow".
Select the arrow you want, it will be added to your project. You can open the XML file and edit the dimensions and color if needed.