I have this XML code for the APP interface:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
**android:background="@drawable/fondo"**
>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="130dp">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/bienvenido"
android:textAlignment="center"
android:textColor="#FFFFFF"
android:textStyle="bold"
android:textSize="50dp"/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_centerVertical="true"
android:layout_marginTop="75dp">
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAlignment="center"
android:layout_gravity="center"
android:background="@drawable/estilos_boton"
android:text="@string/boton"
android:textColor="#ffffff" />
</LinearLayout>
</LinearLayout>
</RelativeLayout>
Where the BACKGROUND of my RELATIVE LAYOUT is a PNG image without any alteration, when running it in the emulator and in my cell phone all the other labels appear perfectly as they are the XML code, the problem comes when I modify the image with the android tool NINE-PATCH, I modify some things so that my image is resized depending on the resolutions of each device, in the preview of Android Studio everything behaves in the same way as when I put the background without editing, but at the moment to run the app on my phone or emulator this gives me a completely different result something like this:
If the image does not appear, I explain more or less how it appears.
the screen with the background with the nine patch image is displayed and the word "Welcome" appears in this way
B ie nv and neither (THIS VERTICALLY)
only that appears and the button does not appear. PORF FAVOR I NEED HELP SINCE I ALREADY SOLD MY IDEAS, CREATE ANOTHER PROJECT TO START FROM ZERO AND NOTHING, CHANGE THE EMULATOR, AND NOTHING WAS RUN IN MY CELLULAR AND NOTHING, I DO NOT KNOW WHAT TO DO