i am creating an app using eclipse. it is my first one. i want to put a drop down list. ya know, the things where you click the arrow, and a list falls down, and when you click the arrow again, they go back up? idk how to create that, place it on my app screen, and type in the options i want inside the list. please help!
10 Replies - 6409 Views - Last Post: 10 June 2012 - 07:16 AM
#1
How do you create drop drop down list in eclipse for an android applic
Posted 08 June 2012 - 12:45 PM
Replies To: How do you create drop drop down list in eclipse for an android applic
#3
Re: How do you create drop drop down list in eclipse for an android applic
Posted 08 June 2012 - 12:49 PM
#4
Re: How do you create drop drop down list in eclipse for an android applic
Posted 08 June 2012 - 12:52 PM
i tried spinners...idk how to place text in them though. help?
and i dont think you can put jcombo boxes in eclipse, can you?
and i dont think you can put jcombo boxes in eclipse, can you?
#5
Re: How do you create drop drop down list in eclipse for an android applic
Posted 08 June 2012 - 12:54 PM
Read the links. They both give you full examples of how to put your options into an XML file and make a Spinner with them.
#6
Re: How do you create drop drop down list in eclipse for an android applic
Posted 08 June 2012 - 01:49 PM
@Ryano121 i looked at the first link and i did what it said, i do have one error though. for number four, on the line that starts
this, R.array.planet_arrayetc, i made array a field in R, but there is now an error with planet_array. if i take away that field, array has an error. both errors say it is not a field.
#7
Re: How do you create drop drop down list in eclipse for an android applic
Posted 08 June 2012 - 01:59 PM
Just copy and paste the code there for now to get it working, following the instructions with the exact namings.
#8
Re: How do you create drop drop down list in eclipse for an android applic
Posted 08 June 2012 - 02:00 PM
i did, and it isnt working with that one line of code. idk why
#9
Re: How do you create drop drop down list in eclipse for an android applic
Posted 08 June 2012 - 07:06 PM
run4life2live, on 08 June 2012 - 03:52 PM, said:
and i dont think you can put jcombo boxes in eclipse, can you?
You completly miss the concepts here
Java is Java and JComboBox are part of the standard Java API
Eclipse is just a fancy editor to write Java code
This post has been edited by pbl: 08 June 2012 - 07:06 PM
#10
Re: How do you create drop drop down list in eclipse for an android applic
Posted 08 June 2012 - 07:12 PM
run4life2live, on 08 June 2012 - 03:52 PM, said:
i tried spinners...idk how to place text in them though. help?
and i dont think you can put jcombo boxes in eclipse, can you?
and i dont think you can put jcombo boxes in eclipse, can you?
*Moved to Android*
It's not about the IDE, Eclipse, as pbl said. A JComboBox is a Swing Component- the standard Java GUI library. Android uses its own GUI library, so you will have to use Spinners as Ryano121 suggested.
#11
Re: How do you create drop drop down list in eclipse for an android applic
Posted 10 June 2012 - 07:16 AM
Page 1 of 1
|
|

New Topic/Question
Reply


MultiQuote






|