material desing Textfield dropdown how to implement

▼魔方 西西 提交于 2020-01-16 08:49:08

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!