I am new in android app development.I am doing a project in android. I have set a image in background such that it will be see in other part of cardview.If anyone knows, please share your answer.My XML code is below
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/imageView"
android:background="#FFFFFF"
android:src="@drawable/images1"/>
<android.support.v7.widget.CardView
android:orientation = "vertical"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/RateMe"
android:text="Rate your experience?"
android:layout_marginLeft="40dp"
android:background="#FFFFFF"
android:textAppearance="@android:style/TextAppearance.Large"/>
<RatingBar
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/ratingBar"
android:numStars="5"
android:layout_marginLeft="40dp"
android:stepSize="0.1" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/Cleaniness"
android:text="How was cleaniness?"
android:layout_marginLeft="40dp"
android:textAppearance="@android:style/TextAppearance.Large"/>
<RatingBar
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/RateClean"
android:numStars="5"
android:layout_marginLeft="40dp"
android:stepSize="0.1" />
<EditText
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/Comment"
android:layout_marginLeft="40dp"
android:hint="please enter comment here" />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/bttn"
android:hint="Submit"
android:layout_marginLeft="40dp"
android:layout_gravity="center" />
</LinearLayout>
</android.support.v7.widget.CardView></LinearLayout>