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 Search | Active Topics | Log In | Register

Buttons Options · View
Barthels
#1 Posted : Friday, November 26, 2010 1:48:36 AM
Rank: Newbie

Groups: Registered

Joined: 8/11/2010
Posts: 2
Location: Germany
Is it possible to place buttons in a chart (e.g. move forward and backward)?
Baydalka Volodymyr
#2 Posted : Friday, November 26, 2010 1:44:19 PM
Rank: Developers Team


Groups: Registered, Administrators

Joined: 7/28/2009
Posts: 447
Hi,

ChartView class isn't derived from ViewGroup and can't contain inner views. However you may display buttons over ChartView in other ViewGroup.

Example XML :
Code:
    <RelativeLayout
        android:layout_width="fill_parent"
        android:layout_height="fill_parent">
        <com.artfulbits.aiCharts.ChartView
            android:id="@+id/chartView"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"/>
        <Button
            android:id="@+id/bttn_forward"
            android:text="Backward"
            android:layout_alignParentLeft="true"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"></Button>
        <Button
            android:id="@+id/bttn_backward"
            android:text="Forward"
            android:layout_alignParentRight="true"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"></Button>
    </RelativeLayout>


Best regards,
Volodymyr Baydalka
Andriod development and support team
Barthels
#3 Posted : Friday, November 26, 2010 1:57:43 PM
Rank: Newbie

Groups: Registered

Joined: 8/11/2010
Posts: 2
Location: Germany
Hello Volodymyr,

thank you very much! I will try this.

Greetings!

Thomas
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.