我想要这样的东西:
实际上有1个问题,我想应用margin top de dropdown弹出窗口。 我尝试了一件不起作用的事情: popupTheme 有我的微调器:
<androidx.appcompat.widget.AppCompatSpinner
android:popupBackground="@color/bgChoicesSpinner"
android:popupTheme="@style/popupOverlay"
android:dropDownWidth="match_parent"
android:layout_marginTop="30dp"
android:layout_marginStart="5dp"
android:id="@+id/spinnerCountry"
android:layout_width="match_parent"
android:layout_height="50dp">
有我的风格:
<style name="popupOverlay" parent="ThemeOverlay.AppCompat.Light">
<item name="android:layout_marginTop">10dp</item>
<item name="android:background">@color/bgChoicesSpinner</item>
</style>