I want to make image as a splash screen. What sizes should I make to make splash screen image fill whole screen without stretching supporting horizontal and vertical orientations and all densities. Also where should I write code to indicate which images are splash screens for each size and orientation?
iOS has that kind of feature to select launch images in the properties to set all required image sizes to support all screens and all orientations,without writing any lines of code
You need to use 9-patch. 9-patch images can stretch in 4 directions if you want. It will solve your problem. Xamarin can also use 9-patch images as splash screen.