Skip to content

The launch screen is stretched on some devices #40

@helloagain-dev

Description

@helloagain-dev

The current implementation of the launch screen layout stretches the image to fit the screen. As there are more and more devices that do not fit the pregenerated images it looks distorted on some of them.

A phone that is affected is the Huawei P20 Lite (https://www.gsmarena.com/huawei_p20_lite-9098.php) which has a screen resolution of 1080 x 2280px.

A launch screen layout that keeps the aspect ratio would fix this issue.

This is an example of launch_screen.xml that would fix this issue and has been tested by us for a while now:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical" android:layout_width="match_parent"
    android:layout_height="match_parent">
    <ImageView android:layout_width="match_parent"
               android:layout_height="match_parent"
               android:src="@drawable/splash"
               android:scaleType="centerCrop"
    />
</LinearLayout>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions