Questions tagged as 'spinner'

3
answers

Spinner with steps (values) of 0.5 in 0.5?

I need values that go as follows: 0.5 1 1.5 2 2.5 3 Etc I did a function but I do not know if it can be done in another way that requires less code, here's my code: private String GetNumber(int spinner) { String res...
asked by 03.01.2018 / 05:01
1
answer

How to customize a spinner on android

I want to customize a spinner, or create it if there is no case, that has a style like this: What form can it be made of? At the moment I just managed to create an XML that has the bottom of the spinner, but I do not know how to add the ar...
asked by 18.07.2018 / 19:41
2
answers

Enable or disable an edittext with the selection of a spinner

The problem is that it disables text editing but in case 1 of Switch when you have to activate it again it does not This is the code I'm using. public class ejemolo extends AppCompatActivity { String[] Items = { "Dc...
asked by 11.05.2017 / 20:15
1
answer

How to fix a spinner that does not show well on android

I have a problem with two spinners that are not shown correctly, in the interface, in the simulator the last two spinners are shown with a smaller font than the first one that says It's a Workshop, and testing in real devices in some cases the s...
asked by 12.02.2017 / 21:55
0
answers

Personalized Spinner on android

I have a drop-down in my application with a style. A part within a relative layout I put a EditText so that an arrow appears as if it were a drop-down, oriented to the right and that occupies the height of the drop-down presses the drop-d...
asked by 03.08.2018 / 14:53
1
answer

Populate Spinner from SQL

Hello, I need to load a Spinner with the data coming from my Database (SQL). For this I have created a class with an id and a description. The problem is that instead of showing the description, in the Spinner the name of the packa...
asked by 02.03.2018 / 14:43
1
answer

I want to save and recover the selected value in a Spinner in SharedPreferences

I can bring the values to other components but not to the Spinner , this is my code: //Función que crea un archivo de preferencias public void CargarPreferencia() { SharedPreferences mispreferencias=getSharedPreferences("PrefeM", Context....
asked by 26.11.2017 / 13:39
1
answer

Unexpected error in Android Studio spinner

I'm trying to implement a Spinner, but at the time of deploying it only appears the first element of all that should appear in the spinner. For example, if it is a spinner of curricula of people in which it appears name photo and text, it would...
asked by 19.12.2018 / 18:03
3
answers

change of value of textView depending on the selection of a spinner

The problem is the following, in the activity I have a textView and a spinner what I'm looking for is that when you select an option in spinner the value of textView change. This is the code public class longitud...
asked by 16.04.2017 / 16:09
1
answer

Android Spinner: Customize DropDown color

I need to customize the background color of a DropDown, until I get to do this: if possible try to give rounded edges and have the same color as the background TextViews (As you can see the background is white), to get to do that, this...
asked by 19.07.2018 / 02:53