python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
How to multiply value from spinner to display in textview2
I would like to know how to take value from a spinner which is displayed in textview1 and multiply it with a double (0.032) so it can display in textview2.
my code is below
double num1 = Integer.pars...
Sindano
Votes: 0
Answers: 1
When the spinner item is selected, I want the button text to be the selected spinner item. or can we just do it in string.xml?
MainActivity.java
Spinner spinner = (Spinner) findViewById(R.id.spinner);
ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(this,
R.array.Door_array, android.R...

Account100
Votes: 0
Answers: 2
How to set onItemSelectedListener after the Spinner's inital value is set?
I want to set the event after the initial value has been set. I have tried to set the event handler onStart(), but it seems that the event is still called for the initial value set, which was don in o...

Damn Vegetables
Votes: 0
Answers: 0
How to set android:popupBackground border size/padding?
I wanted to set the background color of a Spinner in Android Studio and have been able to do so with the following code:
<Spinner
android:id="@+id/StreamSpinner"
android:layout_wi...
omega1
Votes: 0
Answers: 1