I want to create a splash screen on Android with a small logo in the middle,
but the logo is streched on larger devices. I thought I could use a 9 patch image, but it seems a 9 patch image works inversed to what I try to reach.
This is the logo that has to be in the middle.
This is what I get when I set the image as a 9 patch.
The center is stretched out and the corners are intact.
I need to opposite.
I need a 9 patch that can define a center area that is always displayed in correct 1:1 proportion, and border areas at left, right, top and bottom that can be stretched if the image is smaller than the screen.
How can I do this? With or without 9 patch.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…