Wrox Programmer Forums
|
BOOK: Professional Android Application Development ISBN: 978-0-470-34471-2
This is the forum to discuss the Wrox book Professional Android Application Development by Reto Meier; ISBN: 9780470344712
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Android Application Development ISBN: 978-0-470-34471-2 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 January 8th, 2010, 02:05 AM
Registered User
 
Join Date: Apr 2007
Posts: 9
Thanks: 0
Thanked 1 Time in 1 Post
Default Ch 04: creating custom controls error!

Hello co-readers of the book!

Currently I am in Chapter 4 of the book.

I have created an xml file 'clearable_edit_text.xml' and 'ClearableEditText.java'
On the TodoList.java, I added this code in onCreate() method

Code:
package com.paad.todolist;
import android.app.Activity;
import android.os.Bundle;
public class TodoList extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.clearable_edit_text);
    }
}
this displays a EditText with Button on its side, The problem is, when I typed something and clicked the clear button, nothing happens...Have I done anything wrong? I copied the code from the book for clearable_edit_text.xml and ClearableEditText.java extends LinearLayout. However the book does not say how to use the custom widgets..Please give me some enlightenment...

Thank you!
Ryan Webb





Similar Threads
Thread Thread Starter Forum Replies Last Post
Ch.14 Creating Windows Form User Controls problem SAIFI BOOK: Beginning Microsoft Visual Basic 2008 ISBN: 978-0-470-19134-7 1 September 29th, 2008 05:51 AM
Creating web custom controls problem Lerik ASP.NET 1.0 and 1.1 Professional 0 January 6th, 2006 06:39 AM
Creating Web Custom Controls Lerik C# 2005 0 January 6th, 2006 04:55 AM
Ch. 13/14 creating own custom controls...problem.. Chimlim BOOK: Beginning VB.NET 2nd Edition/Beginning VB.NET 2003 2 August 10th, 2005 04:21 AM
Chapter 13 - Creating Your Own Custom Controls msjolin BOOK: Beginning VB.NET 2nd Edition/Beginning VB.NET 2003 2 February 16th, 2004 09:01 PM





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