Are you sure there is nothing more code that affects that button? I have used your shape on the same button and it is shown correctly. This is the code that I used for the button:
<?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:id="@+id/activity_main"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context="com.usuario.usuario.pruebashape.MainActivity">
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:text="BUSCAR"
android:background="@drawable/rounded_button"
android:layout_below="@+id/message_part3"
/>
</RelativeLayout>
And this is the shape I used:
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid android:color="#ffffff"/>
<stroke android:color="#aaaaaa"
android:width="10dp" />
<padding android:left="50dp"
android:top="1dp"
android:right="50dp"
android:bottom="1dp"/>
<corners android:radius="50dp"/>
</shape>
The result has been this:
As you can see it is the same code as yours, instead of using a string for the name "SEARCH", I put it directly. So, I can think of two things that can be making your button look like a white rectangle:
That in your @string/search_group
you are giving some additional character to the message of "SEARCH" such as a padding.
That you are modifying that button with code.
Please check that you are not modifying the button from any other site.