whitespace COMPANY whitespace SERVICES whitespace PRODUCTS whitespace PURCHASE whitespace SUPPORT whitespace CONTACTS whitespace Home whitespace Contact Us whitespace Site Map whitespace
whitespace
SUPPORT
whitespace
FORUM
whitespace
FAQS
whitespace
SUBSCRIPTION
whitespace
REQUEST ON-LINE
whitespace
whitespace

Technical Support Forum

Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
View
Go to last post Go to first unread
duyanhth  
#1 Posted : Friday, October 15, 2010 2:54:41 PM(UTC)
duyanhth
Rank: Member

Groups: Registered
Joined: 6/10/2010(UTC)
Posts: 14
Location: VietNam

Hi,


I have followed the guide to make a color pair chart area at this link
http://www.artfulbits.co...m.aspx?g=posts&t=118

However when I zoom the chart, the gradient zone is not automatically recalculate. How could I do that?
Please see two pictures bellow for the issue
UserPostedImage
UserPostedImage

Is it possible to create the the chart line with two color to make the chart more clear (like below picture)
UserPostedImage

Thanks and best regard
Tran Hoang Duy Anh

Edited by user Friday, October 15, 2010 2:57:49 PM(UTC)  | Reason: Not specified

duyanhth  
#2 Posted : Friday, October 15, 2010 3:51:32 PM(UTC)
duyanhth
Rank: Member

Groups: Registered
Joined: 6/10/2010(UTC)
Posts: 14
Location: VietNam

I attached the code for quick test.
File Attachment(s):
TwoColorSample.zip (238kb) downloaded 4 time(s).

You cannot view/download attachments. Try to login or register.
alexk  
#3 Posted : Friday, October 15, 2010 7:22:16 PM(UTC)
alexk
Rank: Administration

Groups: Registered
Joined: 7/28/2009(UTC)
Posts: 55
Man
Location: Ukraine, Lviv

WARNING! Please do not include into samples your license file, also please do not include binaries. FYI bin folder contain your license file too. WARNING!

I cleanup archive from attachment.
ArtfulBits Team
Product Director
Baydalka Volodymyr  
#4 Posted : Friday, October 15, 2010 7:59:49 PM(UTC)
Baydalka Volodymyr
Rank: Member

Groups: Registered
Joined: 7/28/2009(UTC)
Posts: 447
Man

Hi,

TwoColorDrawable doesn't update itself until its bounds changed. I have updated your sample to add recalculating for each draw method call.

Best regards,

Edited by user Friday, October 15, 2010 8:01:59 PM(UTC)  | Reason: Not specified

File Attachment(s):
TwoColorSampleUpdated.zip (17kb) downloaded 8 time(s).

You cannot view/download attachments. Try to login or register.
Volodymyr Baydalka
Andriod development and support team
duyanhth  
#5 Posted : Friday, October 15, 2010 9:00:50 PM(UTC)
duyanhth
Rank: Member

Groups: Registered
Joined: 6/10/2010(UTC)
Posts: 14
Location: VietNam

Thanks for the clean up and your help, it works :).

Edited by user Monday, October 18, 2010 9:19:17 AM(UTC)  | Reason: Not specified

Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Company | Services | Practices | Technologies | Career | Contacts | Privacy
© 2005-2017 ArtfulBits. All rights reserved.