Wrox Programmer Forums
|
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 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 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!
 
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
 
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".....





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





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