问题
I need to implement this component in my app [Material Design component][1]
[1]: http://i.stack.imgur.com/xaQ03.png just to reinforce that what I need is a drop down in the text field not a drop down in action bar.
in the material design components doc this one is called Textfield dropdown, https://www.google.com/design/spec/components/menus.html#menus-usage but I did'nt find out how to implement this, i tried many sites but i did'nt find something like this, could You guys please help me to find something?
回答1:
I think this is what you are looking for.
<Spinner
android:id="@+id/spPaymentType"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
style="@style/Widget.AppCompat.Spinner.Underlined"/>
来源:https://stackoverflow.com/questions/33693178/material-desing-textfield-dropdown-how-to-implement