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
p.t.  
#1 Posted : Thursday, May 26, 2011 11:00:34 AM(UTC)
p.t.
Rank: Newbie

Groups: Registered
Joined: 5/26/2011(UTC)
Posts: 8
Location: USA

Hi, I just started evaluating aiCharts. A great product! My question is: How to control a chart's height? For example, I want it to be 200 pixel (on Android), how can I do that?

A little background: I'm putting a ChartView inside a ScrollView. I noticied that using the following in the XML file doesn't work:

android:layout_height="200dp"

But to my surprise, if I include a background image in the XML file like following:

android:background="@drawable/chartBackground"


And if I change the PNG file's height, somehow the chart height changes accordingly! So, how exactly does aiChart determine a ChartView's height?

Thank you.

Edited by user Thursday, May 26, 2011 11:01:45 AM(UTC)  | Reason: Not specified

Baydalka Volodymyr  
#2 Posted : Thursday, May 26, 2011 7:51:46 PM(UTC)
Baydalka Volodymyr
Rank: Member

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

Hi,

It's problem of ScrollView. Try to use next xml-layout.

ScrollView
LinearLayout
ChartView
-android:layout_width="fill_parent"
-android:layout_height="200dp"

Best regards,

Edited by user Thursday, May 26, 2011 7:58:20 PM(UTC)  | Reason: Not specified

Volodymyr Baydalka
Andriod development and support team
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.