Custom spinner dialog for Android

How do I create a custom android dialog for Android?

+4
source share
1 answer

There is an example on this blog that probably covers your question:

http://www.mokasocial.com/2011/03/easily-create-a-default-custom-styled-spinner-android/


Edit:

These blog posts have a pretty similar answer: http://karanbalkar.com/2013/07/tutorial-39-create-custom-spinner-in-android/ http://stephenpengilley.blogspot.no/2013/01/ android-custom-spinner-tutorial.html

The key to setting up Android Spinner is to create a custom resource for spinner strings, and then transfer that layout string to the user adapter. The following two functions can be overridden in a user adapter:

@Override public View getDropDownView(int position, View cnvtView, ViewGroup prnt) { // Custom view generation } @Override public View getView(int pos, View cnvtView, ViewGroup prnt) { // Custom view generation } 

To determine how Android Spinner will look at the user.

+2
source

Source: https://habr.com/ru/post/1338861/


All Articles