Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Professional Android 2 Application Development
This is the forum to discuss the Wrox book Professional Android 2 Application Development, 2nd Edition by Reto Meier; ISBN: 978-0-470-56552-0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Android 2 Application Development section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old July 10th, 2010, 10:53 AM
Registered User
 
Join Date: Jul 2010
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Compound Controls (?) Chapter 4

So far this book has been right on and very helpful in getting a newbie moving forward in Android development. I've hit an ignorance spot and what I think I need to do is not clear in the book.

I have a LinearLayout working fine. I want to define each item more discreetly; instead of a string of characters I want to have it subdivided into a graphic and two rows of strings that I can format differently. This is conceptually exactly the same as what you see in Android Market for an item - icon on left, text inthe middle, icon on the right. Another good example is Astro (tools->SDCard Usage). My need is simpler - a graphic and then two lines formatted differently (font, color)

------------------------------
JPG | some bigger text
| smaller and diff color
------------------------------
JPG | some bigger text
| smaller and diff color
------------------------------
JPG | some bigger text
| smaller and diff color
------------------------------


I think I'm close in trying to utilize Compound Controls. However the example in the book escapes me. I don't see what listing 4-6 accomplishes and more importantly, need tips on how to build a view in XML that supports this..

Am I barking up the right tree with Compound Controls? How can one specify the XML to achieve this? Any examples somewhere I can leverage?

Thanks in advance!
Reply With Quote
  #2 (permalink)  
Old July 10th, 2010, 11:23 AM
Registered User
 
Join Date: Jul 2010
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Might have found some insight.... after days of searching...

http://android-developers.blogspot.c...-tricks-1.html
Reply With Quote
  #3 (permalink)  
Old July 25th, 2010, 10:49 AM
Registered User
 
Join Date: Jul 2010
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Further reading in the book brought me to Chapter 5 - section "Introducing Adapters".....
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 4, demo.controls benjii82 BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 1 October 26th, 2009 03:20 PM
Chapter 4, Creating Compound Controls example ejx002 BOOK: Professional Android Application Development ISBN: 978-0-470-34471-2 1 June 17th, 2009 08:32 AM
Compound Select Statements mphare XSLT 4 October 14th, 2008 10:31 PM
User controls' content: Chapter 2 User Controls AGS BOOK: Professional ASP.NET 2.0 Server Control and Component Development ISBN: 978-0-471-79350-2 10 July 26th, 2007 05:36 AM
How to capture compound keypress, e.g. Ctrl-P gelias VB How-To 2 October 25th, 2006 12:04 PM



All times are GMT -4. The time now is 05:21 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.