My drawables are on the folder drawable-xxhdpi and the background size is 1080 x 1920. For the screens with this resolution, all is OK.
But when I test on a samsung A34 for example with the resolution 1080 X 2340, I have a black strip under my screen game and I don't know how to scale my background and the position of the other graphics elements to this specfic screen.
Thank you Gigi
Paint paint = new Paint();
paint.setAntiAlias(true);
paint.setFilterBitmap(true);
paint.setDither(true);
// Affichage du background
canvas.drawBitmap(BitmapFactory.decodeResource(getResources(), R.drawable.backgame), 0, 0, paint);