custom_spinner_layout.xml 932 B

123456789101112131415161718192021222324252627
  1. <!-- res/layout/custom_spinner_layout.xml -->
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:layout_width="match_parent"
  4. android:layout_height="48dp"
  5. android:background="@color/color_white"
  6. android:gravity="center_vertical"
  7. android:orientation="horizontal">
  8. <TextView
  9. android:id="@+id/textViewSelectedItem"
  10. android:layout_width="0dp"
  11. android:layout_height="wrap_content"
  12. android:layout_weight="1"
  13. android:ellipsize="end"
  14. android:paddingStart="8dp"
  15. android:paddingEnd="8dp"
  16. android:singleLine="true"
  17. android:textColor="@color/color_black"
  18. android:textSize="16sp" />
  19. <ImageView
  20. android:layout_width="24dp"
  21. android:layout_height="24dp"
  22. android:contentDescription="@null"
  23. android:paddingEnd="8dp"
  24. android:src="@drawable/ic_dropdown" />
  25. </LinearLayout>