andbook!.pdf - Learning Android Get an anddev.org - Android-Shirt Back to index
anddev.org Header Logo
FAQ Search Top rated articles Browse Feeds anddev.org - Authors Contact Details Register Log in

The Pizza Timer - Threading/Drawing on Canvas

Goto page Previous  1, 2
 
       anddev.org - Android Development Community | Android Tutorials | Index -> Advanced Tutorials
Author Message
amidos2006
Freshman


Joined: 27 Apr 2008
Posts: 3

PostPosted: Wed Apr 30, 2008 5:23 pm    Post subject: I wanna ask about the chart Reply with quote

I dont understand it at all Crying or Very sad
I dont know what is the invalidate(); command is for

But thnx for the tutorial any way Very Happy
Back to top
View user's profile Send private message Send e-mail
amidos2006
Freshman


Joined: 27 Apr 2008
Posts: 3

PostPosted: Wed Apr 30, 2008 8:33 pm    Post subject: Reply with quote

I wanna ask something else I wanna use customView of the pizza in xml file defintion when i do so it says that error Exception:Binary XML file line #23:Error Inflating class SeekTimer.

SeekTimer is the Custom view. and line 23 is:
<SeekTimer android:id="@+id/seek_bar"
android:layout_width="50px"
android:layout_height="50px"
android:layout_centerHorizontal="true"/>

If anybody can help to remove that error i would be gratefull Smile
Back to top
View user's profile Send private message Send e-mail
cadlg
Experienced Developer


Joined: 20 Feb 2008
Posts: 58
Location: Guatemala

PostPosted: Wed Apr 30, 2008 9:18 pm    Post subject: Reply with quote

Hi amidos2006.

When you use your custom view in XML, you need to implement the constructor that inflate the view based on the xml params... does your SeekTimer classs implement this constructor ?

Java:
public SeekTimer (Context context, AttributeSet attrs,Map inflateParams) {
          super(context, attrs, inflateParams);
     }


cadlg
Back to top
View user's profile Send private message
amidos2006
Freshman


Joined: 27 Apr 2008
Posts: 3

PostPosted: Wed Apr 30, 2008 10:33 pm    Post subject: Thnx Reply with quote

Thanks it works Smile
Thanks for your help Smile
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
       anddev.org - Android Development Community | Android Tutorials | Index -> Advanced Tutorials All times are GMT + 1 Hour
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


© 2007, Android Development Community
All rights reserved.
Powered by phpBB.