this android xml code shows me error when i set android:layout_width="0dp" than its shows me error in linear layout
Error: Suspicious size: this will make the view invisible, probably intended for layout_height
I want to use an Edit Text view and a search Icon like this

<LinearLayout
android:layout_width="80dp"
android:layout_height="wrap_content"
android:orientation="vertical">
<EditText
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="2.5"
android:background="#fff"
android:gravity="center"
android:padding="10dp"
android:textColor="#fff"
android:textSize="16dp" />
<ImageView
android:layout_width="0dp"
android:layout_height="42dp"
android:layout_weight="0.5"
android:src="@drawable/searchIcon" />
</LinearLayout>