Android 我想创建这个UI

Android 我想创建这个UI,android,android-layout,Android,Android Layout,我想创建这个UI 我已经完成了这项工作。 我无法根据OFFICEWork UI设置图像的对齐方式,也无法设置TextView的背景色、边距和样式。我建议您使用9-patch图像并设置可拉伸区域。请改用framelayout,而不是如何根据OFFICEWork UI添加PP Automatives TextView的背景阴影? <RelativeLayout android:layout_width="match_parent" android:layout_height=

我想创建这个UI

我已经完成了这项工作。


我无法根据OFFICEWork UI设置图像的对齐方式,也无法设置TextView的背景色、边距和样式。

我建议您使用9-patch图像并设置可拉伸区域。请改用framelayout,而不是如何根据OFFICEWork UI添加PP Automatives TextView的背景阴影?
<RelativeLayout
    android:layout_width="match_parent"
    android:layout_height="220dp"
    android:layout_marginTop="40dp"
    android:background="@drawable/car">

    <RelativeLayout
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:background="#f7f7f8"
        android:padding="2dp">

        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_centerVertical="true"
            android:layout_margin="10dp"
            android:text="PP AUTOMATIVES"
            android:textColor="@color/white"
            android:textSize="20sp"
            android:textStyle="bold" />

    </RelativeLayout>

    <ImageView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"
        android:padding="2dp"
        android:src="@drawable/ratingimage" />

    <ImageView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentRight="true"
        android:src="@drawable/offersimage" />

    <ImageView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"
        android:layout_alignParentRight="true"
        android:padding="5dp"
        android:src="@drawable/heartimage" />

</RelativeLayout>
<RelativeLayout
    android:layout_width="match_parent"
    android:layout_height="220dp"
    android:layout_marginTop="40dp"
    android:background="@drawable/car">

    <RelativeLayout
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:background="#f7f7f8"
        android:padding="2dp">

        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_centerVertical="true"
            android:layout_margin="10dp"
            android:text="PP AUTOMATIVES"
            android:textColor="@color/white"
            android:textSize="20sp"
            android:textStyle="bold" />

    </RelativeLayout>

    <ImageView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"
        android:padding="2dp"
        android:src="@drawable/ratingimage" />

    <ImageView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentRight="true"
        android:src="@drawable/offersimage" />

    <ImageView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"
        android:layout_alignParentRight="true"
        android:padding="5dp"
        android:src="@drawable/heartimage" />

</RelativeLayout>