Я хочу добиться следующего эффекта в своем приложении для Android:
![enter image description here](https://i.stack.imgur.com/IZ7VZ.png)
В качестве фона я использую PNG-изображение из девяти патчей.Я попробовал это так с помощью всего лишь одного текстового представления
<ImageView
android:id="@+id/myImageView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/rowimage" />
<TextView
android:id="@+id/myImageViewText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/myImageView"
android:layout_alignTop="@+id/myImageView"
android:layout_alignRight="@+id/myImageView"
android:layout_alignBottom="@+id/myImageView"
android:layout_margin="1dp"
android:gravity="center"
android:text="Hello"
android:textColor="#000000" />
Но это то, что я получил в результате
![enter image description here](https://i.stack.imgur.com/xPYv8.png)
Есть идеи, что не так?Как мне добиться эффекта от первого изображения?
Редактировать:
Я обновил свой xml до относительного макета, теперь я получаю следующий результат
![enter image description here](https://i.stack.imgur.com/tLDGh.png)
Почему изображение из девяти пятен не масштабируется с текстом ??