I want to create Hexagon shape for my project so I want to create that shape in .xml format so how can i create.
You can use VectorDrawable (VectorDrawableCompat for old version) https://developer.android.com/studio/write/vector-asset-studio.html. You can easialy import shape from .svg files.