I want an image to completely occupy the background of the entire screen and for that I use the attribute background
of the RelativeLayout
principal
The layout
corresponding to Activity
is the following:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/fondoinicio"
tools:context="com.kirolm.kmibilbideaklezo.MainActivity"
android:paddingBottom="@dimen/activity_vertical_margin">
</RelativeLayout>
As can be seen in the following screenshot, there is a white vertical line to the right of the screen that I can not eliminate. The capture is made in preview
of Android Studio
. Specifically of a Nexus 5X with a screen of 1080x1920: 420 dpi
, but the same thing happens with the different devices offered by Android Studio
I keep the image in different densities. These are the data:
- hdpi (564x1001)
- mdpi (376x667)
- xhdpi (752x1334)
- xxhdpi (1128x2001)
- xxxhdpi (1504x2668)