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
couth  
#1 Posted : Wednesday, June 20, 2012 8:09:25 PM(UTC)
couth
Rank: Newbie

Groups: Registered
Joined: 6/20/2012(UTC)
Posts: 2

I know this should be easy, but I can not seem to figure out how to add multiple charts to a single dashboard view. My layout file currently consists of a LinearLayout with two embedded ChartView objects. When I view this in my app, I am only seeing the first chart. I suspected that the other chart was either overwritten, or not visible, so I added a ScrollView and my two charts displayed, but were compressed an unreadable.

Would someone please share an example of a layout file that will properly display two charts.
File Attachment(s):
dashboard_view.txt (1kb) downloaded 4 time(s).

You cannot view/download attachments. Try to login or register.
Baydalka Volodymyr  
#2 Posted : Thursday, June 21, 2012 12:41:09 PM(UTC)
Baydalka Volodymyr
Rank: Member

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

Hi,

I recommend you to read about android layout settings. Try next xml layout for add several.

Code:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="match_parent"
    android:layout_height="match_parent">
    <com.artfulbits.aiCharts.ChartView
        android:layout_weight="1"
        android:layout_width="match_parent"
        android:layout_height="match_parent"/>
    <com.artfulbits.aiCharts.ChartView
        android:layout_weight="1"
        android:layout_width="match_parent"
        android:layout_height="match_parent"/>
</LinearLayout>


Best regards,
Volodymyr Baydalka
Andriod development and support team
couth  
#3 Posted : Friday, June 22, 2012 1:12:13 AM(UTC)
couth
Rank: Newbie

Groups: Registered
Joined: 6/20/2012(UTC)
Posts: 2

Volodymyr,

Thank you for the response. I absolutely agree that I need to continue learning how to leverage the android layout settings. The problem I was having was knowing what each layout property was used for. It wasn't until you responded that I understood what the layout_weight did. Thank you for sharing this with me... it worked, and I am now off to more important issues.
Users browsing this topic
Guest (2)
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.