Wrox Programmer Forums
|
BOOK: Beginning Android 4 Application Development
This is the forum to discuss the Wrox book Beginning Android 4 Application Development by Wei-Meng Lee; ISBN: 978-1-1181-9954-1
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Android 4 Application Development section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 6th, 2012, 03:48 PM
Registered User
 
Join Date: May 2012
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Question Chapter 7 - tryout info, possible errata

I'm learning content providers in chapter 7 and I have a doubt about the setContentView(R.layout.main) at the beginning of page 296.. Do we need it? If yes, I have some doubts.. main layout has a listview with two text views under it... Then we assign to the list view a SimpleCursorAdapter which maps the two columns over the two views, which are repeated in sequence in the list view, as I can see from figure 7-2, one for each contact... My question is how does it understand that it does not have to show two text views under the listview, since we loaded them with setContentView(R.layout.main) at the beginning? Are they removed programmatically and automatically from the layout by the SimpleCursorAdapter?





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 4 errata notig BOOK: Beginning Visual C# 2010 1 September 23rd, 2010 10:27 AM
Chapter 12 - p406 - TryOut stephanos99 BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 13 May 6th, 2010 12:48 PM
Chapter 5 Errata rogerj BOOK: Professional ADO.NET 3.5 with LINQ and the Entity Framework ISBN: 978-0-470-22988-0 0 February 21st, 2009 04:53 PM
textbox binding tryout greenbriar BOOK: Beginning Visual Basic 2005 Databases ISBN: 978-0-7645-8894-5 4 February 14th, 2008 08:11 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.