有谁能帮我在android上用shape创建这个图像
有谁能帮我在android上用shape创建这个图像,android,android-studio,android-layout,Android,Android Studio,Android Layout,请建议我哪一个是最好的方式来创建这个图像,只创建png或jpeg或使用形状。我要一个唯一的bg图像没有“20%的折扣”写。我可以用圆圈来做。但是我无法创建背景图像。您可以这样做,但这是一种黑客攻击,不推荐使用。根据您的要求调整宽度和边距 <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" andr
请建议我哪一个是最好的方式来创建这个图像,只创建png或jpeg或使用形状。我要一个唯一的bg图像没有“20%的折扣”写。我可以用圆圈来做。但是我无法创建背景图像。您可以这样做,但这是一种黑客攻击,不推荐使用。根据您的要求调整宽度和边距
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<View
android:layout_width="150dp"
android:layout_height="100dp"
android:background="#EC8075"
android:layout_alignParentRight="true"/>
<View
android:layout_width="200dp"
android:layout_height="150dp"
android:background="#fff"
android:layout_alignParentRight="true"
android:layout_marginRight="120dp"
android:rotation="-15"/>
</RelativeLayout>