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
hennamullaji  
#1 Posted : Tuesday, February 9, 2010 5:46:49 PM(UTC)
hennamullaji
Rank: Member

Groups: Registered
Joined: 2/9/2010(UTC)
Posts: 16
Location: Earth

Hello,

I am new to Android development and have started experimenting with ArtfulBits' aiCharts. I need to display a grid of numbers as well as a pie chart in the same screen. I have tried a lot but I'm able to display either the grid of numbers or just the pie chart. Is there a way through which I can display both the numbers and chart one below the other. Any help would be most welcome, if possible please post code snippets.

Thanks in advance.
H
Baydalka Volodymyr  
#2 Posted : Tuesday, February 9, 2010 9:10:59 PM(UTC)
Baydalka Volodymyr
Rank: Member

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

I'm not sure that I understand you... however there is sample that demonstrates chart with other view on the same screen.

P.S. don't forget to setup build path and add trial license

Best regards,
File Attachment(s):
aiChartsWithGrid.zip (14kb) downloaded 24 time(s).

You cannot view/download attachments. Try to login or register.
Volodymyr Baydalka
Andriod development and support team
hennamullaji  
#3 Posted : Wednesday, February 10, 2010 4:00:15 PM(UTC)
hennamullaji
Rank: Member

Groups: Registered
Joined: 2/9/2010(UTC)
Posts: 16
Location: Earth

Hi! Thanks for the attachment.
I tried it but I am getting an error at "@xml/chart" entry in the chart.xml file in the following way...
Error: No resource found that matches the given name (at 'chart' with value '@xml/chart').
Waiting for your reply.
Baydalka Volodymyr  
#4 Posted : Wednesday, February 10, 2010 5:38:25 PM(UTC)
Baydalka Volodymyr
Rank: Member

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

That is just android plug-in bugs/problems. Try to remove "gen" folder and build once again.

Best regards,
Volodymyr Baydalka
Andriod development and support team
bambuk  
#5 Posted : Friday, October 15, 2010 5:04:17 PM(UTC)
bambuk
Rank: Newbie

Groups: Registered
Joined: 7/23/2010(UTC)
Posts: 6
Location: Bordeaul

Hi,

Related to AiChartwithGrid example : is it possible to have the same with horizontal orientation ?

The grid on the left, the chart on the right.

Every time i try to have two elements on the same screen with horizontal orientation, one of the two make the other disappear.
Baydalka Volodymyr  
#6 Posted : Friday, October 15, 2010 8:13:52 PM(UTC)
Baydalka Volodymyr
Rank: Member

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

Hi,

It seems like you don't set layout_width/height params.

Code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="horizontal"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent">
    <GridView
        android:id="@+id/dataGrid"
        android:numColumns="4"
        android:background="@android:drawable/alert_dark_frame"
        android:layout_width="wrap_content"
        android:layout_height="fill_parent"/>
    <com.artfulbits.aiCharts.ChartView
        android:id="@+id/chart"
        chart="@xml/chart"
        android:background="@android:drawable/alert_dark_frame"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:layout_weight="1" />
</LinearLayout>



Please go to there http://developer.android.com/guide/topics/ui/layout-objects.html#linearlayout to get more information about LinearLayout.

Best regards,
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.