Re: [android-beginners] My first post -- ArrayAdapter question

2010-06-12 Thread Yuvi
The textViewResourceId is actually the id of a layout (as it says on the
docs: The resource ID for a layout file containing a TextView to use when
instantiating views.).
So you should have a layout with a single TextView and it should work.


On Sat, Jun 12, 2010 at 7:00 AM, appsgrrl bettyoch...@gmail.com wrote:

 Hi all,  this is my first post, and I'm just starting out, so it will
 probably be stoopid.

 I'm trying to use the ArrayAdatper(Context, int textViewResourceId,
 ListTobjects) constructor.

 What resourceId am I supposed to use for the second parameter?

 I want this to apply this ArrayAdapter to a Spinner, and when I tried
 using the Id of the Spinner,  I got a dump in the log, some of which
 is : android.content.res.Resources$NotFoundException: Resource ID
 #0x7f070001 type #0x12 is not valid

 Thanks

 --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.

 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en




-- 
YuviDroid
http://android.yuvalsharon.net

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Download new programs and english courses

2010-06-12 Thread soso essa
Download new programs and english courses

http://www.translatorhossam.co.cc/

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] Bungalow park Bonfire Exclusive located at 200 m. from sea center.

2010-06-12 Thread Kevin Brooks
This is spam.  Moderator can we block this user?

On Sat, Jun 12, 2010 at 12:45 AM, Property Dealer
mmur...@commonsware.comwrote:

 Bungalow park Bonfire Exclusive located at 200 m. from sea  center Copy 
 Paste it ( http://bit.ly/BedRoom ) into your browser's address bar or open
 link in new tab if that doesn't work.
 Click here and See the Proof http://bit.ly/BedRoom

 --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.

 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en




-- 
Kevin
Proverbs 21:6

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] getId() for TextView inside ListView is constant

2010-06-12 Thread tim
I found out all the items inside ListView has the same ID value. Is
this expected if it's using ListAdapter to populate data?

Same thing with Spinner as well. Are these expected?

Thanks!

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


Re: [android-beginners] getId() for TextView inside ListView is constant

2010-06-12 Thread Mark Murphy
On 06/12/2010 07:33 PM, tim wrote:
 I found out all the items inside ListView has the same ID value. Is
 this expected if it's using ListAdapter to populate data?

Yes.

 Same thing with Spinner as well. Are these expected?

Yes.

If you want to get at the widget inside a specific row (e.g., for
bindView() in a custom Adapter), call findViewById() on the row View,
not the Activity or the ListView/Spinner.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to Android Development_ Version 3.1
Available!

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en


[android-beginners] Re: My first post -- ArrayAdapter question

2010-06-12 Thread appsgrrl
Hi -- thanks for the response.  I don't have any TextView in my
layout, which is why I was confused.  I was trying to get this to
appear as the list for stuff for my spinner, and I ended up using
android.R.layout.simple_spinner_dropdown_item for the resourceID and
that worked, so now I'm trying to understand that a bit more.



On Jun 12, 1:41 am, Yuvi yuvidr...@gmail.com wrote:
 The textViewResourceId is actually the id of a layout (as it says on the
 docs: The resource ID for a layout file containing a TextView to use when
 instantiating views.).
 So you should have a layout with a single TextView and it should work.



 On Sat, Jun 12, 2010 at 7:00 AM, appsgrrl bettyoch...@gmail.com wrote:
  Hi all,  this is my first post, and I'm just starting out, so it will
  probably be stoopid.

  I'm trying to use the ArrayAdatper(Context, int textViewResourceId,
  ListTobjects) constructor.

  What resourceId am I supposed to use for the second parameter?

  I want this to apply this ArrayAdapter to a Spinner, and when I tried
  using the Id of the Spinner,  I got a dump in the log, some of which
  is : android.content.res.Resources$NotFoundException: Resource ID
  #0x7f070001 type #0x12 is not valid

  Thanks

  --
  You received this message because you are subscribed to the Google
  Groups Android Beginners group.

  NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

  To unsubscribe from this group, send email to
  android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en

 --
 YuviDroidhttp://android.yuvalsharon.net

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en