Basically, you need to know some xml in order to import the UI.
Before you start, export all the elements needed from XD into the drawable folder of your project. Exporting in XD is easy, and it export it in various resolutions.
When you're done exporting, I recomend you to read a little about RelativeLayout in xml, it will help you get the basic understanding of how to implement your UI into code in the right way.
Unfortunately, XD does not generate xml codes like Photoshop generate css, so no shortcuts for us xD