I have a drop-down in my application with a style. A part within a relative layout I put a EditText
so that an arrow appears as if it were a drop-down, oriented to the right and that occupies the height of the drop-down presses the drop-down. Visually it looks good, the problem is that when you click on the arrow ( editText
) it does not unfold. I do not know if you can put some transparency at editText
to detect what is below. or maybe an onClick in the Editext that deploys it.
Attached layout code.
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="59dp"
android:layout_marginBottom="10dp">
<Spinner
android:id="@+id/spinnerMatricula"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="10dp"
android:layout_marginLeft="20dp"
android:layout_marginRight="20dp"
android:layout_marginTop="10dp"
android:background="@drawable/badge_circle_gris"
android:elevation="2dp" />
<TextView
android:id="@+id/EtV"
android:layout_width="34dp"
android:layout_height="34dp"
android:layout_alignEnd="@+id/spinnerMatricula"
android:layout_alignRight="@+id/spinnerMatricula"
android:layout_alignTop="@+id/spinnerMatricula"
android:layout_marginBottom="10dp"
android:background="@drawable/badge_circleflecha"
android:backgroundTint="@color/fondos"
android:elevation="3dp"
android:gravity="center_vertical|fill_vertical|center_horizontal"
android:inputType="textPersonName"
android:paddingTop="0dp"
android:text=" v "
android:textColor="@color/blanco"
android:textSize="15dp" />
</RelativeLayout>
If you press in the middle it works perfectly.
Thank you.