[android-developers] Re: Spinner borders

2013-05-03 Thread Filipe
Found the solution. setPadding(0, 0, 0, 0); Didn't know this existed. Segunda-feira, 29 de Abril de 2013 9:55:07 UTC+1, Filipe escreveu: > Hi, > > I need to create a small spinner in height. > > So I created a spinner with 58pixels height, but it has big borders on top > and bottom

[android-developers] Re: spinner

2013-03-08 Thread srikanth
Please go through this url http://www.lacherstorfer.at/haris_blog/2008/03/android-howto-create-spinners.html On Friday, March 8, 2013 2:31:40 PM UTC+5:30, Sadhna Upadhyay wrote: > > Hi friends, > i need a help,can some oe tell me that how to dynamically add a value > in spinner in android.

[android-developers] Re: spinner

2012-10-23 Thread Flame-Tree
Hello Refer to API Demos which Google distributes along with the SDK release under samples. You can find a spinner related component under views/spinner Thanks, Palash On Tuesday, 23 October 2012 14:56:58 UTC+5:30, rauf qureshi wrote: > > Hello friends , > > I want to show "Select option" i

[android-developers] Re: Spinner items missing selection radio button

2012-09-17 Thread Christian
> > Nadav, Which version of android are you developing on? I am currently developing a project and using 4.0.3 for testing, since this is the most common up to date version; however, I find that it is not displaying the radio button as well. But, when I use the same exact code in an android

[android-developers] Re: Spinner Help

2012-05-22 Thread Ashintha Rukmal
OOpppss... O:) got the error.. thanks a lot... :) -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+uns

[android-developers] Re : Spinner calling in OnItemSelect

2012-03-18 Thread vivek elangovan
Hi members, I want to display the second spinner if i only select some values in my first spinner and also i want to create the spinner in my class directly without declaring in my main.xml is it possible? -- You received this message because you are subscribed to the Google

[android-developers] Re : spinner from HttpPost

2012-03-07 Thread vivek elangovan
Hi members, Using HttpPost i am able to retrieve the following data in my response Chennai Trichy Madurai Now i need to pass these values into my spinner i m getting the following error The method createFromResource(Context, int, int) in the type Ar

Re: [android-developers] Re : Spinner from Database

2012-03-02 Thread TreKing
On Fri, Mar 2, 2012 at 3:00 AM, vivek elangovan wrote: > How to retrieve xml data from xml database Google that. > and display in spinner? Google that too. - TreKing

[android-developers] Re : Spinner from Database

2012-03-02 Thread vivek elangovan
Hi members, How to retrieve xml data from xml database and display in spinner? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe

Re: [android-developers] Re : Spinner

2012-03-01 Thread vivek elangovan
Hi arun, thanks for the sample i already gone through this i need sample for spinner and corresponding dependent value selection. On Thu, Mar 1, 2012 at 6:27 PM, arun kumar wrote: > SOURCE CODE [main.xml] is > > > > http://schemas.android.com/apk/res/android"; > android:orientation="v

Re: [android-developers] Re : Spinner

2012-03-01 Thread arun kumar
SOURCE CODE [main.xml] is http://schemas.android.com/apk/res/android"; android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" > SOURCE CODE [SpinnerExample.java] is package com.SpinnerExample; import andro

Re: [android-developers] Re : Spinner

2012-03-01 Thread vivek elangovan
ok i will try that one ,if u any samples also pls send me On Thu, Mar 1, 2012 at 5:18 PM, arun kumar wrote: > same you create another spinner and declare another string array and get > the position value and assign to string and set to textbox thats it. > > > On Thu, Mar 1, 2012 at 5:12 PM, vive

Re: [android-developers] Re : Spinner

2012-03-01 Thread arun kumar
same you create another spinner and declare another string array and get the position value and assign to string and set to textbox thats it. On Thu, Mar 1, 2012 at 5:12 PM, vivek elangovan wrote: > Hi Arun, >How will i set the name for the next text field > > > On Thu, Mar 1, 201

Re: [android-developers] Re : Spinner

2012-03-01 Thread vivek elangovan
Hi Arun, How will i set the name for the next text field On Thu, Mar 1, 2012 at 4:44 PM, arun kumar wrote: > spinner1 = (Spinner)this.findViewById(R.id.spinner1); > final String[] groupes = new String[] {"A", "B", "C", "D", "E", "F", "G", > "H"}; > ArrayAdapter featuresAdapter = n

Re: [android-developers] Re : Spinner

2012-03-01 Thread arun kumar
spinner1 = (Spinner)this.findViewById(R.id.spinner1); final String[] groupes = new String[] {"A", "B", "C", "D", "E", "F", "G", "H"}; ArrayAdapter featuresAdapter = new ArrayAdapter( this, android.R.layout.simple_spinner_item, new ArrayList()); featuresAdapter.setDropDownViewResource(android.R.layo

[android-developers] Re : Spinner

2012-03-01 Thread vivek elangovan
Hi members, Using spinner i display list of details what i need to do is after selecting the item using spinner i need to display a data in text field. For eg : If i m selecting state from spinner i need to display country name in next field. - Vivek Elangovan -- You received

Re: [android-developers] Re: spinner background problems going from 4.0.3 to 2.3.3

2012-02-29 Thread Ray Tayek
At 11:26 PM 2/28/2012, you wrote: Being a newbie is no excuse for not reading the documentation. There is a long one describing themes right in the SDK. my vision is not so great. i did find http://developer.android.com/guide/topics/ui/themes.html, but no mention of how to change the color o

[android-developers] Re: spinner background problems going from 4.0.3 to 2.3.3

2012-02-28 Thread Zsolt Vasvari
Being a newbie is no excuse for not reading the documentation. There is a long one describing themes right in the SDK. On Feb 29, 8:51 am, Ray Tayek wrote: > At 04:39 PM 2/28/2012, you wrote: > > >On Tue, Feb 28, 2012 at 6:29 PM, Ray Tayek > ><rta...@ca.rr.com> wrote: >

[android-developers] Re: Spinner with a custom dialog (with a searchbox - EditText -, ListView with custom Adapter - results)

2012-02-05 Thread Ravi Vyas
Why don't you just use a Textview which on click opens a dialog/activity with a listview & a edittext for search and return the selected value to the TextView. You can design the entire thing so that it looks like a spinner. -- You received this message because you are subscribed to the Google

[android-developers] Re: Spinner spinning twice...

2011-12-28 Thread havexz
Well I got your point on creation. So I did some more digging/ experimentation and am pretty sure it is calling on the same Activity and same Spinner instance i.e. the newly created instance after the orientation change. I did this by putting a count in activity and also printing the references. Y

Re: [android-developers] Re: Spinner spinning twice...

2011-12-28 Thread Mark Murphy
On Tue, Dec 27, 2011 at 8:35 PM, havexz wrote: >> You are assuming that it is the same Spinner object and the same >> OnItemSelectedListener. Instead, it is a completely different Spinner >> instance and a completely different OnItemSelectedListener instance, >> for a completely different fragment

[android-developers] Re: Spinner spinning twice...

2011-12-27 Thread havexz
> > To illustrate, if I select Earth twice, the log statement is called> > > > once, only for the first I change my selection to Earth from some> > other > > selection> > Which, IMHO, is precisely what should happen when the activity > > is> destroyed and recreated and you use static fragments (

Re: [android-developers] Re: Spinner spinning twice...

2011-12-27 Thread Mark Murphy
On Tue, Dec 27, 2011 at 8:08 PM, havexz wrote: > I agree that user can call it multiple times even though program is > processing last selection. But these un-necessary calls make the > program looks sluggish, even though we are using all the goodies of > background processing. Which means you ne

[android-developers] Re: Spinner spinning twice...

2011-12-27 Thread havexz
Thanks for the quick reply. Well I am using fragments but create from xml. And thanks for providing some work arounds. Really appreciated. > Then your app has other problems. The user is perfectly capable of > using their finger and changing the selection of a Spinner as many > times as the user w

[android-developers] Re: Spinner question

2011-07-26 Thread Seven
Hi trying to use getSelectedItem().toString() ? On 7月27日, 上午2时39分, Ab Caballero wrote: > Hi, > I have an activity with three spinners and am having trouble > retrieving the data from them. The code below is not yielding the > desired results. Any help is appreciated. > >      Spinner sp

Re: [android-developers] Re: Spinner question

2011-07-26 Thread TreKing
On Tue, Jul 26, 2011 at 3:08 PM, Ab Caballero wrote: > I got it working, but not with the case statement. Instead, I created > three instances of onItemSelectedListener(). However, I'm not certain > that this is the most efficient way to achieve the result. > Again, you were only setting the one

[android-developers] Re: Spinner question

2011-07-26 Thread Ab Caballero
I got it working, but not with the case statement. Instead, I created three instances of onItemSelectedListener(). However, I'm not certain that this is the most efficient way to achieve the result. On Jul 26, 12:58 pm, TreKing wrote: > On Tue, Jul 26, 2011 at 2:15 PM, Ab Caballero wrote: > > i

Re: [android-developers] Re: Spinner question

2011-07-26 Thread TreKing
On Tue, Jul 26, 2011 at 2:15 PM, Ab Caballero wrote: > i thought each spinner was identified by the findViewById() method? Oh, missed that you were resetting it. In that case, next problem is you're only setting the listener on the last instance of "spinner". --

[android-developers] Re: Spinner question

2011-07-26 Thread Ab Caballero
i thought each spinner was identified by the findViewById() method? On Jul 26, 11:58 am, TreKing wrote: > First problem I notice is you're setting 3 different adapters to the same > Spinner. > > --- > --

Re: [android-developers] Re: Spinner question

2011-07-26 Thread TreKing
First problem I notice is you're setting 3 different adapters to the same Spinner. - TreKing - Chicago transit tracking app for Android-powered devic

[android-developers] Re: Spinner question

2011-07-26 Thread Ab Caballero
I am attempting to assign each selected spinner value to the variables ORIGIN, DESTINATION and TRIP_TYPE, respectively. The variables are null after assignment. On Jul 26, 11:45 am, TreKing wrote: > On Tue, Jul 26, 2011 at 1:39 PM, Ab Caballero wrote: > > I have an activity with three spinners a

Re: [android-developers] Re: Spinner box

2011-07-26 Thread Goutom
Hi Abhishek , Thanks for your reply.I am relatively new on Android.May I have tutorial link on building custom spinner(extending BaseAdapter)? Again thanks. Cheers Goutom. On Sun, Jul 24, 2011 at 1:50 AM, Abhishek Akhani wrote: > Its possible n for this you have to make a custom adapter (extendi

[android-developers] Re: Spinner box

2011-07-24 Thread Abhishek Akhani
Its possible n for this you have to make a custom adapter (extending BaseAdapter) and an xml file for this view. and set this custom adapter as your spinner's adapter. On Jul 24, 12:11 pm, Goutom wrote: > Hi > > Please open the image.In the image  "Font Size" is header and "Standard" is > item.He

[android-developers] Re: Spinner Adapter problem

2011-07-17 Thread Simon Platten
Fixed, the problem was in my adapter: // Categories / Folders Adapter for Spinner View public class spAdapter extends BaseAdapter implements OnClickListener { private ArrayList m_arySelItems; private LayoutInflater m_layoutInfater; private ArrayList m_aryFolders;

Re: [android-developers] Re: Spinner with added Text

2011-04-18 Thread #13point7
The only other way would be to create a your own custom Spinner class which allows editing. You can look here (under Compound Controls) to get you started: http://developer.android.com/guide/topics/ui/custom-components.html -- You received this message because you are subscribed to the Google

Re: [android-developers] Re: Spinner with added Text

2011-04-18 Thread New Developer
So many so quick YEs I mean typing it into the spinner, but I like the idea of an option in the spinner is Add New Calendar might work are there any other ways ? Thanks again On Apr 18, 2011, at 1:47 PM, TreKing wrote: > On Mon, Apr 18, 2011 at 12:21 PM, Kenny Riddile wrote: > On 4/18/201

Re: [android-developers] Re: Spinner with added Text

2011-04-18 Thread TreKing
On Mon, Apr 18, 2011 at 12:21 PM, Kenny Riddile wrote: > On 4/18/2011 1:13 PM, Kumar Bibek wrote: > >> You cant do that with a spinner. >> >> > Are you so sure? Probably meant the "typing into the spinner" part. That you can't do. ---

[android-developers] Re: Spinner with added Text

2011-04-18 Thread Kenny Riddile
On 4/18/2011 1:13 PM, Kumar Bibek wrote: You cant do that with a spinner. Are you so sure? I believe spinners can be populated both manually and from a database. Just google "android dynamic spinner content". Here's one: http://www.dcpagesapps.com/developer-resources/android/21-android-

[android-developers] Re: Spinner drop-down with blank lines

2011-01-17 Thread michael
Thanks for the suggestion, I will try it (although I probably won't be able to verify easily -- can't get more feedback from the user in question). Cheers, Michael. On Jan 17, 7:54 pm, Kostya Vasilyev wrote: > In theory, this shouldn't affect spinners. > > In practice, you've got a user complain

Re: [android-developers] Re: Spinner drop-down with blank lines

2011-01-17 Thread Kostya Vasilyev
In theory, this shouldn't affect spinners. In practice, you've got a user complaint, and something *is* going on. I would try taking out the theme setting for a one-off build, and ask that user to try it out. Given that I don't have a Droid X, that's the only thing that comes to my mind :) PS

[android-developers] Re: Spinner drop-down with blank lines

2011-01-17 Thread michael
Hi again, I am using a custom theme for my entire application through the android:theme xml attribute in the Manifest file: But it has very minimal content and does not include the button styles -- these are set manually when needed. Here is the content of the themes.xml file which defines the

Re: [android-developers] Re: Spinner drop-down with blank lines

2011-01-17 Thread Kostya Vasilyev
Hi, Are you using a custom theme for your entire application's activities to customize buttons? Are you using a theme at all? 2011/1/17 michael > Hi again, > > Thanks for your suggestion Kostya. But my spinner does not use any > custom styling whatsoever. It is shown in a dialog which is buil

[android-developers] Re: Spinner drop-down with blank lines

2011-01-17 Thread michael
Hi again, Thanks for your suggestion Kostya. But my spinner does not use any custom styling whatsoever. It is shown in a dialog which is built using AlertBuilder. The only custom styling in the app is for buttons, which I don't think should have any effect on spinners. Any other ideas? Incidenta

Re: [android-developers] Re: Spinner drop-down with blank lines

2011-01-17 Thread Kostya Vasilyev
I don't have one either, but I've seen screenshots of my program on that device, done by someone for a review. See the top-left corner of the screenshot in section 8: http://www.simplehelp.net/2010/11/30/how-to-manage-your-android-wifi-connections/ The spinners in that screenshot use my own back

[android-developers] Re: Spinner drop-down with blank lines

2011-01-17 Thread michael
Hi Kumar and Kostya, thanks for your quick replies. Kumar, I did wonder if text colour could be an issue, but surely the standard styling should work consistently throughout all devices and OS versions, right? Note that I have not set a custom text colour. Kostya, this is indeed on Droid X -- do

Re: [android-developers] Re: Spinner Style

2010-11-23 Thread Kumar Bibek
Ummm, on mobile devices, it's not a good way to display a equivalent of HTML You cannot achieve what you are looking for by using the default Spinner. However, I think you can try and change the behaviour by extending the Spinner class. Just my guess, never thought about it, and never tried it.

[android-developers] Re: Spinner Style

2010-11-23 Thread pedr0
Do you are looking a spinner wheel or a spinner menu? On 23 Nov, 10:28, Jithin wrote: > Hi friends, > >            As part of my project I need a spinner that should display > items like HTML select tag rather opening a new window. >            Is it possible...? -- You received this message

[android-developers] Re: Spinner in ListView Activity

2010-11-17 Thread Sin
Hi, I tried to set the width of the spinner but not using visibility="GONE" and it works. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this g

[android-developers] Re: Spinner: crash when selected

2010-11-17 Thread Tobi
Hello, I am running in the same problem. Also with a tabview. Is there any other solution? Cheers, Toby On Oct 26, 1:47 pm, Khetzal wrote: > No, i've try with "this" for the context, with getApplicationContext() > too, with getParent() and with getContext(), > but always the same problem. > I'v

[android-developers] Re: Spinner/drum roller control like native Clock app has for choosing hours/minutes

2010-11-14 Thread Hatch
Thank you Mark, Brad. I will look into the http://code.google.com/p/android-wheel/ The javascript solution looks too tedious :) Cheers, Hatch On Nov 13, 1:25 am, Brad Gies wrote: > I needed the same thing awhile ago and couldn't find a good > implementation of it anywhere. > > What I came up

[android-developers] Re: Spinner: crash when selected

2010-10-26 Thread Khetzal
No, i've try with "this" for the context, with getApplicationContext() too, with getParent() and with getContext(), but always the same problem. I've read somewhere that is because i try to make my spinner in an Activity created by an other Activity which is in a tabview. Finally, i use a simple bu

[android-developers] Re: Spinner in ListView Activity

2010-10-19 Thread dario
Seems like you're not setting the adapter on the spinner but on the list, is this intended? (I'm assuming you are extending ListActivity) this would explain why onItemSelected isn't called. -Dario On Oct 18, 2:18 pm, SImplyG2010 wrote: > Sorry Bret I do not understand in which onClickListener?

[android-developers] Re: Spinner in ListView Activity

2010-10-18 Thread SImplyG2010
Sorry Bret I do not understand in which onClickListener? The button or the onItemSelected listener? On Oct 18, 1:31 pm, Bret Foreman wrote: > Are you calling the super of the onClick method in the onClickListener? -- You received this message because you are subscribed to the Google Groups "And

[android-developers] Re: Spinner in ListView Activity

2010-10-18 Thread Bret Foreman
Are you calling the super of the onClick method in the onClickListener? -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to a

[android-developers] Re: Spinner. disabling does not provide any visual indication

2010-10-12 Thread Anil
ok, thanks. My workaround was to simply grab the panel containing the spinner and make it disappear. final TableRow s1Row = (TableRow) findViewById(R.id.spinner1_row); isRepeatedCheckBox .setOnCheckedChangeListener(new OnCheckedChan

Re: [android-developers] Re: Spinner. disabling does not provide any visual indication

2010-10-05 Thread Kostya Vasilyev
Anil, Spinner background, spinner_background.xml located under android-sdk-windows\platforms\android-\data\res\drawable has state selectors for state_pressed and state_focused. It does not have a selector for state_enabled="false". One way to fix this is to use your own drawable with the m

[android-developers] Re: Spinner. disabling does not provide any visual indication

2010-10-05 Thread Anil
Looked at your link - I don't think it's the same thing. The spinner does get disabled - it just does not grey out. - Anil --- Please let us know if you know anyone with an unwanted pregnancy, willing to place for adoption. http://longingtoadopt.com On Oct 5, 1

Re: [android-developers] Re: Spinner with a complex Object

2010-08-03 Thread Mark Murphy
On Tue, Aug 3, 2010 at 9:52 AM, William Ferguson wrote: > But I think I have figured out what I need now. > I should render the non String items by overriding #getView and > #getDropDownView, correct? Correct. In this respect, it is not much different than the samples you may have seen for ListVi

[android-developers] Re: Spinner with a complex Object

2010-08-03 Thread William Ferguson
Sorry Mark, I guess I didn't make myself clear. What I meant to say was that I have not seen an example where a Spinner and Adapter is configured with something other an Array/Cursor of String. Ie an Array of some complex Objec. But I think I have figured out what I need now. I should render the n

Re: [android-developers] Re: Spinner selection dialog without spinner

2010-06-23 Thread Mark Murphy
On Wed, Jun 23, 2010 at 12:40 PM, maik wrote: > Where do I get the source code you mentioned? I used Google Code Search: http://www.google.com/codesearch Include the package:android clause in there, and it will restrict your search to Android-related code. Otherwise, it's pretty much the standa

[android-developers] Re: Spinner selection dialog without spinner

2010-06-23 Thread maik
Ah OK, learned something new... Thanks Mark. Where do I get the source code you mentioned? I guess they are not included in the SDK because I wasn't able to find them there. Sorry for all this newbie questions, but I'm still working on getting into the platform (I'm coming from Windows Mobile)...

Re: [android-developers] Re: Spinner selection dialog without spinner

2010-06-22 Thread Mark Murphy
On Tue, Jun 22, 2010 at 4:56 PM, maik wrote: > What is the predefined layout > android.R.layout.simple_list_item_single_choice good for if it uses > the same color for text and background? That's for ListView. ListView is not AlertDialog. AlertDialog uses android.R.layout.select_dialog_multichoi

[android-developers] Re: Spinner selection dialog without spinner

2010-06-22 Thread maik
Dear Mark, yes that dis the trick. Thanks! But I'm wondering anyway, what was wrong with my attempt? What is the predefined layout android.R.layout.simple_list_item_single_choice good for if it uses the same color for text and background? On 22 Jun., 22:31, Mark Murphy wrote: > On Tue, Jun 22, 20

Re: [android-developers] Re: Spinner selection dialog without spinner

2010-06-22 Thread Mark Murphy
On Tue, Jun 22, 2010 at 4:23 PM, maik wrote: > I now read all my database values into an array and use > ArrayAdapter<> to fill the AlertDialog. That's not a good idea. You waste a fair bit of memory and CPU time this way. > The problem is, the list shows > the list entries with white text on a

[android-developers] Re: Spinner selection dialog without spinner

2010-06-22 Thread maik
Thank you for your hint. I was able to get it to work with one little problem left. I now read all my database values into an array and use ArrayAdapter<> to fill the AlertDialog. The problem is, the list shows the list entries with white text on a white background (only while clicking an entry whi

[android-developers] Re: spinner question: how to detect the selection of an already selected item?

2010-04-19 Thread greg
Thanks for the suggestions Will and TreKing. I haven't tried the DialogInterface onClick handler yet. I thought OnItemLongClickListener might be a work around, but the following onItemLongClick handler never gets called. Spinner s2 = (Spinner) findViewById(R.id.spinner_order);

[android-developers] Re: spinner question: how to detect the selection of an already selected item?

2010-04-19 Thread Will
Hi, Did you tried : onClick(DialogInterface dialog, int which) I think you can update your list adapter according to the "wich" parameter. -- Will On 19 avr, 03:45, greg wrote: > I have an activity with a ListView check list and a spinner that > controls the sort order of the items in that ch

[android-developers] Re: Spinner getting selected string

2010-04-16 Thread Bob Kerns
You have a few options. You can ask the view for the position of the selected item (getSelectedItemPosition()), or the ID you associated with that item (getSelectedItemId()), or register listener with setOnItemSelectedListener(). You can get the associated item with getSelectedItem(). You can get

[android-developers] Re: Spinner With Images and Text

2010-04-09 Thread polyclefsoftware
Thanks, Mark...that did the trick. :) On Apr 9, 5:44 pm, Mark Murphy wrote: > polyclefsoftware wrote: > > I'm trying to create a spinner that displays an image+text, where the > > image can be one of two possible images, depending on a parameter > > (e.g. think of a list of users, with a green li

[android-developers] Re: spinner

2010-03-29 Thread Nithin
> > > I am thinking of having a spinner with a reversed direction , that's from > > > right to left. What you mean by this. If you mean Aligning text to right, then create a class which extends BaseAdapter in that - override the getView() method - create a textview or create your layout in xml an

Re: [android-developers] Re: spinner

2010-03-29 Thread emna zeddini
Hello, Could you please explain a little more. Thanks in advance. 2010/3/29 Nithin > > If you want the text to align to right, then create a custom adapter > which extends BaseAdapter and align the text to right. > > Nithin > > On Mar 29, 2:53 pm, emna zeddini wrote: > > Good Morning, > > I am

[android-developers] Re: spinner

2010-03-29 Thread Nithin
If you want the text to align to right, then create a custom adapter which extends BaseAdapter and align the text to right. Nithin On Mar 29, 2:53 pm, emna zeddini wrote: > Good Morning, > I am thinking of having a spinner with a reversed direction , that's from > right to left. > Have I to ove

Re: [android-developers] Re: Spinner Example

2010-01-28 Thread satish bhoyar
thanks pranav.. On Fri, Jan 29, 2010 at 10:22 AM, Pranav wrote: > Hi Satish, > > I have solution of you problem. Here is your code. > > --- > import android.widget.Spinner; > > Spinner spinnerDay; > String strSpinnerDay; > >public class SpinnerDe

[android-developers] Re: Spinner Example

2010-01-28 Thread Pranav
Hi Satish, I have solution of you problem. Here is your code. --- import android.widget.Spinner; Spinner spinnerDay; String strSpinnerDay; public class SpinnerDemo extends Activity{ @Override public void onCreate(Bundle savedInstanceState)

[android-developers] Re: Spinner Example

2010-01-28 Thread Shekhar
Hi Mark, Could you share a code snippet for this. Thanks, Shekhar On Jan 28, 6:03 pm, "Mark Murphy" wrote: > > When user click on the item, I dont knw which event to register like > > button > > have OnClick so what is there for this & how to check which item is > > selected? > > Use setOnItemC

[android-developers] Re: Spinner Example

2010-01-28 Thread Shekhar
Hi Mark, Could you please share code snippet for the above problem. Thanks, Shekhar On Jan 28, 6:03 pm, "Mark Murphy" wrote: > > When user click on the item, I dont knw which event to register like > > button > > have OnClick so what is there for this & how to check which item is > > selected?

[android-developers] Re: Spinner and cursor adapter

2009-09-13 Thread 终点
param position is the item's position in the drop down list, start from 0, not rowid in database On 8月25日, 上午5时13分, Federico Paolinelli wrote: > Hi all, I successfully binded aspinnerwidget to a simple cursor > adapter, but I started having problems when I tried to add a new item > to the table

[android-developers] Re: Spinner add values at run tim

2009-08-19 Thread Mark Murphy
Honest wrote: > The following is my code but some how it is not displaying String > which is inside List. and when i click on spinner it hangs > somehow. Check your stack trace for exceptions. The stack trace can be found in adb logcat, DDMS, or the DDMS perspective in Eclipse. > Spinner s1=new

[android-developers] Re: Spinner add values at run tim

2009-08-19 Thread Honest
The following is my code but some how it is not displaying String which is inside List. and when i click on spinner it hangs somehow. Spinner s1=new Spinner(this); //String cityNames[]={"a","b","c"}; //String bankName[]=(String[])bankList.toArray();

[android-developers] Re: Spinner add values at run tim

2009-08-19 Thread Mark Murphy
Honest wrote: > I want to add String values in spinner at run time. My problem is that > the value is not available in res file. Can some one tell me how can i > do it ? I just want to insert one String array or simple String run > time in Spinner. Step #1: Put your initial values in an ArrayList

[android-developers] Re: Spinner that looks like an EditText - Head is bloody and bruised

2009-08-12 Thread phildo
That's exactly what I was looking for. Just as a follow up to anyone else with this issue. You can access the android drawables here: 'android-sdk-path'\platforms\android-1.5\data\res\drawables android-1.5 could be whatever release you have installed. Thanks Jeff. I appreciate it! On Aug 12,

[android-developers] Re: Spinner that looks like an EditText - Head is bloody and bruised

2009-08-12 Thread Jeff Sharkey
The look of a Spinner is just defined through a framework style, and you can override that style in your XML. In this case, the "look" of a spinner is provided by its android:background, which is defined here: http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=core/res/res/dr

[android-developers] Re: Spinner - don't display selection

2009-08-04 Thread droidin.net
Peter, thanks a bunch. Here's code snippet: // d is a dialog Spinner spin = (Spinner) d.findViewById(R.id.searchCriteria); spin.setOnItemSelectedListener(new OnItemSelectedListener() { public void onItemSelected(AdapterView parent, View view, int position, long id) { // hide selection text

[android-developers] Re: Spinner - don't display selection

2009-08-04 Thread peter
set your Sipinner "onItemSelectedLisnter" and implement the inteface method : onItemClick(AdapterView arg0, View arg1, int arg2,long arg3) the parameter of "arg1" is your selected view, and you could pick textview form it. then set the backgroud color as your like of textview On Aug 4, 1:10 pm, "

[android-developers] Re: Spinner OnItemSelectedListener - Differentiating between user selection and initialization

2009-07-06 Thread Georgy
sorry to be intruding here but did anyone try to get the selected item of the spinner and got a handler null exception error? I am getting the error EVEN thought the spinner is getting populated but as soon as I make the selection, I am getting a handler exception thanks On Jun 12, 9:44 pm, Mar

[android-developers] Re: Spinner style?

2009-06-27 Thread Kent Loobey
On Saturday 27 June 2009 16:38:20 Kent Loobey wrote: > Is there a way to set a Spinner's style so that each entry has the but no > radio button? Is there a way to set a Spinner's style so that each entry has text but no radio button? > > > --~--~-~--~~~---~--~~

[android-developers] Re: Spinner OnItemSelectedListener - Differentiating between user selection and initialization

2009-06-12 Thread Mark Murphy
Kerry wrote: > I've seen this posted before but haven't seen an answer yet. The > OnItemSelectedListener event handler gets called both when a spinner > is initialized, and when a user physically clicks the spinner control. > Is is possible to determine if an event was triggered by a user > select

[android-developers] Re: Spinner OnItemSelectedListener - Differentiating between user selection and initialization

2009-06-12 Thread sylpheo
this works fine for me : - arrayadapter : public class MoSpinnerListAdapter extends ArrayAdapter { private List yourobjs; public MoSpinnerListAdapter(Context context, List yourobjs) { super(context, R.layout.simple_spinner_item); setDropDownViewResource (android.R.layout.s

[android-developers] Re: Spinner position incorrect after Activity resumes

2009-06-04 Thread Ben Roberts
There are at least two other people who have encountered this problem: http://groups.google.com/group/android-beginners/browse_thread/thread/252736990cf0251c http://groups.google.com/group/android-developers/browse_thread/thread/b88d99ce73de2efe?fwc=1 Any ideas? Is it a bug? At the very least, d

[android-developers] Re: Spinner with Editable Text

2009-02-11 Thread mathiastck
I suggest you create your own SpinnerAdapter for the spinner. In getDropDownView for that SpinnerAdapter you determine what is displayed for each drop down view. On Feb 10, 1:21 pm, Inderjeet Singh wrote: > I would like to create a spinner where a user can edit the text for > each drop-down ent

[android-developers] Re: spinner click problem

2009-01-27 Thread Peli
Have you looked at the API demos for Spinner? Peli www.openintents.org On 27 Jan., 16:01, Honest wrote: > I made a one screen by using xml file. I had a 2 TextView and `1 > spinner one the screen but i am facing some proble with spinner. > > I hope some one will help me in this. > > 1) how can

[android-developers] Re: Spinner background change - how?

2008-11-29 Thread Evgeny V
The same problem happens when I'm trying to change the Button backgroud. After that i'm loosing button behavior. Looks strange if I have inherit and implemet "MyButton" to provide so basic functionality like background color... Any ideas? Missing I something? Thanks, Evgeny On Fri, Nov 28, 20

[android-developers] Re: Spinner gets error when drop down

2008-10-07 Thread Anthony
Thank you, Mark. I will read your posts. On 10月8日, 上午6时20分, Mark Murphy <[EMAIL PROTECTED]> wrote: > Anthony wrote: > > I want the spinner displays ImageView+TextView, so I create two > > classes as below: > > You may have better luck replacing AlbumSpinnerItem with an XML layout > and using Layo

[android-developers] Re: Spinner gets error when drop down

2008-10-07 Thread Mark Murphy
Anthony wrote: > I want the spinner displays ImageView+TextView, so I create two > classes as below: You may have better luck replacing AlbumSpinnerItem with an XML layout and using LayoutInflater. I have six or seven blog posts on the topic over on AndroidGuys (search for Fancy ListViews). Whi

[android-developers] Re: Spinner Text / Value

2008-09-29 Thread friedger
I derived a subclass from spinner and overwrote performClick(), something like: public boolean performClick() { if (actionPerformer != null) { actionPerformer.onClick(this); } return true; } where actionPerformer is

[android-developers] Re: Spinner Text / Value

2008-09-29 Thread Lonzo1968
I need to get these values from the database. I have a Clients table and A Projects Table, The Project has a Foreign Key to the Client Table, Client_ID. So whe they add a Project, they will select a Client from the Spinner. The Client Spinner needs to be dynamic and be able to be loaded from a Da

[android-developers] Re: Spinner Text / Value

2008-09-29 Thread E.D.I
u need to create an array in the resources ( values\arrays.xml ) with the values u want the spinner to show and create a SpinnerAdupter with this array u can see an example in the samples comming with the android sdk ( ApiDemos ) and from the spinner u can take the indx of the item. On Sep 29

[android-developers] Re: Spinner - No selection

2008-06-18 Thread Shaimailit
Hi, Thanks again, Mark and David. The suggested ideas seems too complicated (I was hoping to simplify the solution. and not the other way around...). Therefore, I would probably have to add some fictive records to database tables. It isn't such a legitimate software design, but it is the simplest

[android-developers] Re: Spinner - No selection

2008-06-09 Thread David Given
Mark Murphy wrote: > David Given wrote: >> Simplest solution is probably to use a custom ViewBinder on your >> SimpleCursorAdapter that adds a '(no selection)' row to the spinner. > > Can a ViewBinder add rows? I don't see how given the API. Yeah, if you're mapping the Spinner's data directly

[android-developers] Re: Spinner - No selection

2008-06-09 Thread Mark Murphy
David Given wrote: > Simplest solution is probably to use a custom ViewBinder on your > SimpleCursorAdapter that adds a '(no selection)' row to the spinner. Can a ViewBinder add rows? I don't see how given the API. -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training on the

  1   2   >